1 write to VocabSize
Microsoft.ML.GenAI.LLaMA (1)
LlamaConfig.cs (1)
37
this.
VocabSize
= 128256;
5 references to VocabSize
Microsoft.ML.GenAI.LLaMA (5)
LlamaForCausalLM.cs (3)
31
_vocabSize = config.
VocabSize
;
41
lm_head = nn.Linear(config.HiddenSize, config.
VocabSize
, hasBias: false, dtype: config.DType);
45
lm_head = nn.Linear(config.HiddenSize, config.
VocabSize
, hasBias: false, dtype: config.DType);
Module\LlamaModel.cs (2)
31
this._vocabSize = config.
VocabSize
;
33
this.embed_tokens = nn.Embedding(config.
VocabSize
, config.HiddenSize, padding_idx: this._paddingIdx, dtype: config.DType);