Record Class DeepSeekTinyStoriesConfig.Training
java.lang.Object
java.lang.Record
io.github.kirstenali.deepj.examples.DeepSeekTinyStoriesConfig.Training
- Enclosing class:
DeepSeekTinyStoriesConfig
public static record DeepSeekTinyStoriesConfig.Training(int steps, int batchSize, float peakLearningRate, float minimumLearningRate, int warmupSteps, int logEvery, int checkpointEvery, int releaseEvery)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTraining(int steps, int batchSize, float peakLearningRate, float minimumLearningRate, int warmupSteps, int logEvery, int checkpointEvery, int releaseEvery) Creates an instance of aTrainingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebatchSizerecord component.intReturns the value of thecheckpointEveryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlogEvery()Returns the value of thelogEveryrecord component.floatReturns the value of theminimumLearningRaterecord component.floatReturns the value of thepeakLearningRaterecord component.intReturns the value of thereleaseEveryrecord component.intsteps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thewarmupStepsrecord component.
-
Constructor Details
-
Training
public Training(int steps, int batchSize, float peakLearningRate, float minimumLearningRate, int warmupSteps, int logEvery, int checkpointEvery, int releaseEvery) Creates an instance of aTrainingrecord class.- Parameters:
steps- the value for thestepsrecord componentbatchSize- the value for thebatchSizerecord componentpeakLearningRate- the value for thepeakLearningRaterecord componentminimumLearningRate- the value for theminimumLearningRaterecord componentwarmupSteps- the value for thewarmupStepsrecord componentlogEvery- the value for thelogEveryrecord componentcheckpointEvery- the value for thecheckpointEveryrecord componentreleaseEvery- the value for thereleaseEveryrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
steps
public int steps()Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-
batchSize
public int batchSize()Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-
peakLearningRate
public float peakLearningRate()Returns the value of thepeakLearningRaterecord component.- Returns:
- the value of the
peakLearningRaterecord component
-
minimumLearningRate
public float minimumLearningRate()Returns the value of theminimumLearningRaterecord component.- Returns:
- the value of the
minimumLearningRaterecord component
-
warmupSteps
public int warmupSteps()Returns the value of thewarmupStepsrecord component.- Returns:
- the value of the
warmupStepsrecord component
-
logEvery
public int logEvery()Returns the value of thelogEveryrecord component.- Returns:
- the value of the
logEveryrecord component
-
checkpointEvery
public int checkpointEvery()Returns the value of thecheckpointEveryrecord component.- Returns:
- the value of the
checkpointEveryrecord component
-
releaseEvery
public int releaseEvery()Returns the value of thereleaseEveryrecord component.- Returns:
- the value of the
releaseEveryrecord component
-