1 write to HiddenSize
Microsoft.ML.GenAI.Mistral (1)
MistralConfig.cs (1)
19this.HiddenSize = 4096;
8 references to HiddenSize
Microsoft.ML.GenAI.Mistral (8)
MistralConfig.cs (1)
34this.HeadDim = this.HiddenSize / this.NumAttentionHeads;
MistralDecoderLayer.cs (3)
81_hiddenSize = config.HiddenSize; 91var headDim = config.HiddenSize / config.NumAttentionHeads; 94hiddenSize: config.HiddenSize,
MistralForCausalLM.cs (1)
33lm_head = new GenAILinear(config.HiddenSize, config.VocabSize, hasBias: false);
MistralMLP.cs (1)
26this._hiddenSize = config.HiddenSize;
MistralModel.cs (2)
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);