Fix(tokenizer): Make sure to add pad for CodeLlamaTokenizer (#489)
Browse files
src/axolotl/utils/models.py
CHANGED
@@ -59,6 +59,7 @@ def load_tokenizer(cfg):
|
|
59 |
in [
|
60 |
"LlamaTokenizer",
|
61 |
"LlamaTokenizerFast",
|
|
|
62 |
]
|
63 |
and hasattr(tokenizer, "pad_token")
|
64 |
and not tokenizer.pad_token
|
|
|
59 |
in [
|
60 |
"LlamaTokenizer",
|
61 |
"LlamaTokenizerFast",
|
62 |
+
"CodeLlamaTokenizer",
|
63 |
]
|
64 |
and hasattr(tokenizer, "pad_token")
|
65 |
and not tokenizer.pad_token
|