Update src/axolotl/utils/models.py
Browse filesCo-authored-by: NanoCode012 <[email protected]>
src/axolotl/utils/models.py
CHANGED
@@ -41,7 +41,7 @@ def load_tokenizer(
|
|
41 |
if tokenizer_type:
|
42 |
tokenizer = getattr(transformers, tokenizer_type).from_pretrained(
|
43 |
base_model_config,
|
44 |
-
trust_remote_code=
|
45 |
)
|
46 |
else:
|
47 |
tokenizer = AutoTokenizer.from_pretrained(
|
|
|
41 |
if tokenizer_type:
|
42 |
tokenizer = getattr(transformers, tokenizer_type).from_pretrained(
|
43 |
base_model_config,
|
44 |
+
trust_remote_code=cfg.trust_remote_code or False,
|
45 |
)
|
46 |
else:
|
47 |
tokenizer = AutoTokenizer.from_pretrained(
|