Class: Toy::LLM::RecipeOptions
- Inherits:
-
Object
- Object
- Toy::LLM::RecipeOptions
- Defined in:
- lib/toy/llm/recipe_options.rb
Instance Attribute Summary collapse
-
#init_scale ⇒ Object
Returns the value of attribute init_scale.
-
#qkv_bias ⇒ Object
Returns the value of attribute qkv_bias.
-
#seed ⇒ Object
Returns the value of attribute seed.
-
#t_batch ⇒ Object
Returns the value of attribute t_batch.
-
#t_seq ⇒ Object
Returns the value of attribute t_seq.
-
#untied ⇒ Object
Returns the value of attribute untied.
-
#weight_dtype ⇒ Object
Returns the value of attribute weight_dtype.
Instance Method Summary collapse
-
#initialize ⇒ RecipeOptions
constructor
A new instance of RecipeOptions.
Constructor Details
#initialize ⇒ RecipeOptions
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_scale ⇒ Object
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_bias ⇒ Object
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 |
#seed ⇒ Object
Returns the value of attribute seed.
58 59 60 |
# File 'lib/toy/llm/recipe_options.rb', line 58 def seed @seed end |
#t_batch ⇒ Object
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_seq ⇒ Object
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 |
#untied ⇒ Object
Returns the value of attribute untied.
58 59 60 |
# File 'lib/toy/llm/recipe_options.rb', line 58 def untied @untied end |
#weight_dtype ⇒ Object
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 |