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

    Constructors
    Constructor
    Description
    Architecture(int sequenceLength, int dModel, int heads, int layers, int dFF, int qRank, int kvRank, float initScale, float gradClipNorm)
    Creates an instance of a Architecture record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    dFF()
    Returns the value of the dFF record component.
    int
    Returns the value of the dModel record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    float
    Returns the value of the gradClipNorm record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the heads record component.
    float
    Returns the value of the initScale record component.
    int
    Returns the value of the kvRank record component.
    int
    Returns the value of the layers record component.
    int
    Returns the value of the qRank record component.
    int
    Returns the value of the sequenceLength record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Architecture record class.
      Parameters:
      sequenceLength - the value for the sequenceLength record component
      dModel - the value for the dModel record component
      heads - the value for the heads record component
      layers - the value for the layers record component
      dFF - the value for the dFF record component
      qRank - the value for the qRank record component
      kvRank - the value for the kvRank record component
      initScale - the value for the initScale record component
      gradClipNorm - the value for the gradClipNorm record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sequenceLength

      public int sequenceLength()
      Returns the value of the sequenceLength record component.
      Returns:
      the value of the sequenceLength record component
    • dModel

      public int dModel()
      Returns the value of the dModel record component.
      Returns:
      the value of the dModel record component
    • heads

      public int heads()
      Returns the value of the heads record component.
      Returns:
      the value of the heads record component
    • layers

      public int layers()
      Returns the value of the layers record component.
      Returns:
      the value of the layers record component
    • dFF

      public int dFF()
      Returns the value of the dFF record component.
      Returns:
      the value of the dFF record component
    • qRank

      public int qRank()
      Returns the value of the qRank record component.
      Returns:
      the value of the qRank record component
    • kvRank

      public int kvRank()
      Returns the value of the kvRank record component.
      Returns:
      the value of the kvRank record component
    • initScale

      public float initScale()
      Returns the value of the initScale record component.
      Returns:
      the value of the initScale record component
    • gradClipNorm

      public float gradClipNorm()
      Returns the value of the gradClipNorm record component.
      Returns:
      the value of the gradClipNorm record component