1 write to HiddenSize
Microsoft.ML.GenAI.LLaMA (1)
LlamaConfig.cs (1)
24this.HiddenSize = 4096;
9 references to HiddenSize
Microsoft.ML.GenAI.LLaMA (9)
LlamaForCausalLM.cs (2)
41lm_head = nn.Linear(config.HiddenSize, config.VocabSize, hasBias: false, dtype: config.DType); 45lm_head = nn.Linear(config.HiddenSize, config.VocabSize, hasBias: false, dtype: config.DType);
Module\LlamaDecoderLayer.cs (3)
87_hiddenSize = config.HiddenSize; 97var headDim = config.HiddenSize / config.NumAttentionHeads; 100hiddenSize: config.HiddenSize,
Module\LlamaMLP.cs (1)
35this._hiddenSize = config.HiddenSize;
Module\LlamaModel.cs (3)
32var headDim = config.HiddenSize / config.NumAttentionHeads; 33this.embed_tokens = nn.Embedding(config.VocabSize, config.HiddenSize, padding_idx: this._paddingIdx, dtype: config.DType); 40this.norm = new RMSNorm(config.HiddenSize, config.RmsNormEps, config.DType);