Record Class RopeScaling.Llama3
java.lang.Object
java.lang.Record
ai.beestream.jitnn.RopeScaling.Llama3
- All Implemented Interfaces:
RopeScaling
- Enclosing interface:
RopeScaling
public static record RopeScaling.Llama3(double factor, double lowFreqFactor, double highFreqFactor, int originalContext)
extends Record
implements RopeScaling
Llama 3.1's rescaling; see
RopeScaling.llama3(double, double, double, int).-
Nested Class Summary
Nested classes/interfaces inherited from interface RopeScaling
RopeScaling.Linear, RopeScaling.Llama3 -
Constructor Summary
ConstructorsConstructorDescriptionLlama3(double factor, double lowFreqFactor, double highFreqFactor, int originalContext) Creates an instance of aLlama3record class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleapply(double frequency) The frequency used in place offrequency(radians per position).final booleanIndicates whether some other object is "equal to" this one.doublefactor()Returns the value of thefactorrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thehighFreqFactorrecord component.doubleReturns the value of thelowFreqFactorrecord component.intReturns the value of theoriginalContextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Llama3
public Llama3(double factor, double lowFreqFactor, double highFreqFactor, int originalContext) Creates an instance of aLlama3record class.- Parameters:
factor- the value for thefactorrecord componentlowFreqFactor- the value for thelowFreqFactorrecord componenthighFreqFactor- the value for thehighFreqFactorrecord componentoriginalContext- the value for theoriginalContextrecord component
-
-
Method Details
-
apply
public double apply(double frequency) Description copied from interface:RopeScalingThe frequency used in place offrequency(radians per position).- Specified by:
applyin interfaceRopeScaling
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
factor
public double factor()Returns the value of thefactorrecord component.- Returns:
- the value of the
factorrecord component
-
lowFreqFactor
public double lowFreqFactor()Returns the value of thelowFreqFactorrecord component.- Returns:
- the value of the
lowFreqFactorrecord component
-
highFreqFactor
public double highFreqFactor()Returns the value of thehighFreqFactorrecord component.- Returns:
- the value of the
highFreqFactorrecord component
-
originalContext
public int originalContext()Returns the value of theoriginalContextrecord component.- Returns:
- the value of the
originalContextrecord component
-