Python class
Llama3RopeScalingParams
Llama3RopeScalingParams
class max.nn.Llama3RopeScalingParams(factor, low_freq_factor, high_freq_factor, orig_max_position)
Bases: object
Scaling parameters for Llama3’s frequency-based context extension.
factor
factor: float
Main scaling factor for the frequency components of the rope.
high_freq_factor
high_freq_factor: float
Factor to scale the high frequency components of the rope.
low_freq_factor
low_freq_factor: float
Factor to scale the low frequency components of the rope.
orig_max_position
orig_max_position: int
The original maximum position length supported by the model.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!