You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* remove need for toktoken flag
* can't pass self to a function
* remove toktoken cli flag
* eliminate need to load entire model when we only need model.config
Copy file name to clipboardExpand all lines: build/builder.py
+21-13Lines changed: 21 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -173,7 +173,6 @@ def __post_init__(self):
173
173
self.t=None
174
174
return
175
175
176
-
177
176
defvalidate_model(
178
177
self,
179
178
model: Transformer,
@@ -186,7 +185,7 @@ def validate_model(
186
185
187
186
ifcondition:
188
187
raiseRuntimeError(
189
-
"test"# f"model-specified tokenizer ({tokenizer_setting_to_name(model.config.use_tiktoken)} does not match provided tokenizer ({tokenizer_setting_to_name(self.is_tiktoken)} for {model_description}"
188
+
f"model-specified tokenizer ({tokenizer_setting_to_name(model.config.use_tiktoken)} does not match provided tokenizer ({tokenizer_setting_to_name(self.is_tiktoken)} for {model_description}"
0 commit comments