pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::WeightMapping Struct Reference

One entry of a name-mapping manifest. More...

#include <causal_lm.hpp>

Public Attributes

std::string source
 The checkpoint tensor's name.
 
std::string target
 The model parameter's (or buffer's) name.
 
WeightTransform transform = WeightTransform::Identity
 
int64_t row_begin = 0
 Take only these rows of the source's first axis, before the transform: one part of a fused tensor such as a qkv_proj. row_count < 0 takes them all.
 
int64_t row_count = -1
 

Detailed Description

One entry of a name-mapping manifest.

Member Data Documentation

◆ row_begin

int64_t pulsatrix::WeightMapping::row_begin = 0

Take only these rows of the source's first axis, before the transform: one part of a fused tensor such as a qkv_proj. row_count < 0 takes them all.

◆ row_count

int64_t pulsatrix::WeightMapping::row_count = -1

◆ source

std::string pulsatrix::WeightMapping::source

The checkpoint tensor's name.

◆ target

std::string pulsatrix::WeightMapping::target

The model parameter's (or buffer's) name.

◆ transform

WeightTransform pulsatrix::WeightMapping::transform = WeightTransform::Identity

The documentation for this struct was generated from the following file: