1 write to _originalMaxPositionEmbeddings
Microsoft.ML.GenAI.Phi (1)
Module\Phi3SuScaledRotaryEmbedding.cs (1)
33this._originalMaxPositionEmbeddings = config.OriginalMaxPositionEmbeddings;
3 references to _originalMaxPositionEmbeddings
Microsoft.ML.GenAI.Phi (3)
Module\Phi3SuScaledRotaryEmbedding.cs (3)
45if (seqLen > this._originalMaxPositionEmbeddings) 64var scale = (1.0 * this._maxPositionEmbeddings) / this._originalMaxPositionEmbeddings; 72scalingFactor = Math.Sqrt(1 + Math.Log(scale) / Math.Log(this._originalMaxPositionEmbeddings));