Record Class DeepSeekTinyStoriesConfig.Architecture
java.lang.Object
java.lang.Record
io.github.kirstenali.deepj.examples.DeepSeekTinyStoriesConfig.Architecture
- Enclosing class:
DeepSeekTinyStoriesConfig
public static record DeepSeekTinyStoriesConfig.Architecture(int sequenceLength, int dModel, int heads, int layers, int dFF, int qRank, int kvRank, float initScale, float gradClipNorm)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionArchitecture(int sequenceLength, int dModel, int heads, int layers, int dFF, int qRank, int kvRank, float initScale, float gradClipNorm) Creates an instance of aArchitecturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdFF()Returns the value of thedFFrecord component.intdModel()Returns the value of thedModelrecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of thegradClipNormrecord component.final inthashCode()Returns a hash code value for this object.intheads()Returns the value of theheadsrecord component.floatReturns the value of theinitScalerecord component.intkvRank()Returns the value of thekvRankrecord component.intlayers()Returns the value of thelayersrecord component.intqRank()Returns the value of theqRankrecord component.intReturns the value of thesequenceLengthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Architecture
public Architecture(int sequenceLength, int dModel, int heads, int layers, int dFF, int qRank, int kvRank, float initScale, float gradClipNorm) Creates an instance of aArchitecturerecord class.- Parameters:
sequenceLength- the value for thesequenceLengthrecord componentdModel- the value for thedModelrecord componentheads- the value for theheadsrecord componentlayers- the value for thelayersrecord componentdFF- the value for thedFFrecord componentqRank- the value for theqRankrecord componentkvRank- the value for thekvRankrecord componentinitScale- the value for theinitScalerecord componentgradClipNorm- the value for thegradClipNormrecord 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 '=='. -
sequenceLength
public int sequenceLength()Returns the value of thesequenceLengthrecord component.- Returns:
- the value of the
sequenceLengthrecord component
-
dModel
public int dModel()Returns the value of thedModelrecord component.- Returns:
- the value of the
dModelrecord component
-
heads
public int heads()Returns the value of theheadsrecord component.- Returns:
- the value of the
headsrecord component
-
layers
public int layers()Returns the value of thelayersrecord component.- Returns:
- the value of the
layersrecord component
-
dFF
public int dFF()Returns the value of thedFFrecord component.- Returns:
- the value of the
dFFrecord component
-
qRank
public int qRank()Returns the value of theqRankrecord component.- Returns:
- the value of the
qRankrecord component
-
kvRank
public int kvRank()Returns the value of thekvRankrecord component.- Returns:
- the value of the
kvRankrecord component
-
initScale
public float initScale()Returns the value of theinitScalerecord component.- Returns:
- the value of the
initScalerecord component
-
gradClipNorm
public float gradClipNorm()Returns the value of thegradClipNormrecord component.- Returns:
- the value of the
gradClipNormrecord component
-