1 write to HiddenSize
Microsoft.ML.GenAI.Phi (1)
Phi3\Config.cs (1)
20this.HiddenSize = 3072;
9 references to HiddenSize
Microsoft.ML.GenAI.Phi (9)
Module\Phi3DecoderLayer.cs (4)
93this.input_layernorm = new RMSNorm(config.HiddenSize, config.RmsNormEps, config.DType); 97this.post_attention_layernorm = new RMSNorm(config.HiddenSize, config.RmsNormEps, config.DType); 143var headDim = config.HiddenSize / config.NumAttentionHeads; 146hiddenSize: config.HiddenSize,
Module\Phi3MLP.cs (1)
27: this(config.HiddenSize, config.IntermediateSize, config.HiddenAct, config.DType)
Module\Phi3Model.cs (3)
33var headDim = config.HiddenSize / config.NumAttentionHeads; 35this.embed_tokens = nn.Embedding(config.VocabSize, config.HiddenSize, padding_idx: this._paddingIdx, dtype: config.DType); 43this.norm = new RMSNorm(config.HiddenSize, config.RmsNormEps, config.DType);
Phi3\Phi3ForCasualLM.cs (1)
35this.lm_head = new GenAILinear(config.HiddenSize, config.VocabSize, dtype: config.DType, hasBias: false);