Class: Toy::LLM::RecipeOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/toy/llm/recipe_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRecipeOptions

Returns a new instance of RecipeOptions.



61
62
63
64
65
66
67
68
69
# File 'lib/toy/llm/recipe_options.rb', line 61

def initialize
  @t_seq        = 0
  @t_batch      = 1
  @weight_dtype = 0
  @untied       = false
  @qkv_bias     = false
  @seed         = 0
  @init_scale   = 1.0
end

Instance Attribute Details

#init_scaleObject

Returns the value of attribute init_scale.



58
59
60
# File 'lib/toy/llm/recipe_options.rb', line 58

def init_scale
  @init_scale
end

#qkv_biasObject

Returns the value of attribute qkv_bias.



58
59
60
# File 'lib/toy/llm/recipe_options.rb', line 58

def qkv_bias
  @qkv_bias
end

#seedObject

Returns the value of attribute seed.



58
59
60
# File 'lib/toy/llm/recipe_options.rb', line 58

def seed
  @seed
end

#t_batchObject

Returns the value of attribute t_batch.



58
59
60
# File 'lib/toy/llm/recipe_options.rb', line 58

def t_batch
  @t_batch
end

#t_seqObject

Returns the value of attribute t_seq.



58
59
60
# File 'lib/toy/llm/recipe_options.rb', line 58

def t_seq
  @t_seq
end

#untiedObject

Returns the value of attribute untied.



58
59
60
# File 'lib/toy/llm/recipe_options.rb', line 58

def untied
  @untied
end

#weight_dtypeObject

Returns the value of attribute weight_dtype.



58
59
60
# File 'lib/toy/llm/recipe_options.rb', line 58

def weight_dtype
  @weight_dtype
end