Nanobit commited on
Commit
4c37bd0
1 Parent(s): f144e98

Fix(tokenizer): Make sure to add pad for CodeLlamaTokenizer (#489)

Browse files
Files changed (1) hide show
  1. src/axolotl/utils/models.py +1 -0
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