File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
keras_hub/src/models/smollm3 Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ def __init__(
112
112
self .rotary_embedding = RotaryEmbedding (
113
113
max_wavelength = rope_theta ,
114
114
scaling_factor = rope_scaling ,
115
- dtype = self .dtype_policy
115
+ dtype = self .token_embedding . dtype_policy
116
116
)
117
117
118
118
# === Functional Model ===
@@ -161,6 +161,7 @@ def __init__(
161
161
self .max_position_embeddings = max_position_embeddings
162
162
self .rope_theta = rope_theta
163
163
self .partial_rotary_factor = partial_rotary_factor
164
+ self .rope_scaling = rope_scaling
164
165
165
166
def get_config (self ):
166
167
config = super ().get_config ()
@@ -181,6 +182,7 @@ def get_config(self):
181
182
"max_position_embeddings" : self .max_position_embeddings ,
182
183
"rope_theta" : self .rope_theta ,
183
184
"partial_rotary_factor" : self .partial_rotary_factor ,
185
+ "rope_scaling" : self .rope_scaling
184
186
}
185
187
)
186
188
return config
You can’t perform that action at this time.
0 commit comments