Record Class DeepSeekTinyStoriesConfig
java.lang.Object
java.lang.Record
io.github.kirstenali.deepj.examples.DeepSeekTinyStoriesConfig
public record DeepSeekTinyStoriesConfig(DeepSeekTinyStoriesConfig.FilesConfig files, DeepSeekTinyStoriesConfig.Architecture architecture, DeepSeekTinyStoriesConfig.Training training, DeepSeekTinyStoriesConfig.TokenizerConfig tokenizer, long seed)
extends Record
Configuration for the bounded-memory TinyStories DeepSeek training example.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionDeepSeekTinyStoriesConfig(DeepSeekTinyStoriesConfig.FilesConfig files, DeepSeekTinyStoriesConfig.Architecture architecture, DeepSeekTinyStoriesConfig.Training training, DeepSeekTinyStoriesConfig.TokenizerConfig tokenizer, long seed) Creates an instance of aDeepSeekTinyStoriesConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearchitecturerecord component.final booleanIndicates whether some other object is "equal to" this one.files()Returns the value of thefilesrecord component.static DeepSeekTinyStoriesConfigfinal inthashCode()Returns a hash code value for this object.modelConfig(int vocabSize) longseed()Returns the value of theseedrecord component.Returns the value of thetokenizerrecord component.final StringtoString()Returns a string representation of this record class.training()Returns the value of thetrainingrecord component.
-
Constructor Details
-
DeepSeekTinyStoriesConfig
public DeepSeekTinyStoriesConfig(DeepSeekTinyStoriesConfig.FilesConfig files, DeepSeekTinyStoriesConfig.Architecture architecture, DeepSeekTinyStoriesConfig.Training training, DeepSeekTinyStoriesConfig.TokenizerConfig tokenizer, long seed) Creates an instance of aDeepSeekTinyStoriesConfigrecord class.- Parameters:
files- the value for thefilesrecord componentarchitecture- the value for thearchitecturerecord componenttraining- the value for thetrainingrecord componenttokenizer- the value for thetokenizerrecord componentseed- the value for theseedrecord component
-
-
Method Details
-
fromSystemProperties
-
modelConfig
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
files
Returns the value of thefilesrecord component.- Returns:
- the value of the
filesrecord component
-
architecture
Returns the value of thearchitecturerecord component.- Returns:
- the value of the
architecturerecord component
-
training
Returns the value of thetrainingrecord component.- Returns:
- the value of the
trainingrecord component
-
tokenizer
Returns the value of thetokenizerrecord component.- Returns:
- the value of the
tokenizerrecord component
-
seed
public long seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-