Fix argument name in LlamaTokenizer constructor (#421)

This PR addresses an oversight in the LlamaTokenizer class by changing the constructor argument from filepath to tokenizer_file.
This commit is contained in:
ROHAN WINSOR 2024-10-30 04:31:36 +05:30 committed by GitHub
parent e8c2f962e9
commit cd24a27161
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1216,7 +1216,7 @@
"\n",
"\n",
"class LlamaTokenizer:\n",
" def __init__(self, filepath):\n",
" def __init__(self, tokenizer_file):\n",
" sp = spm.SentencePieceProcessor()\n",
" sp.load(tokenizer_file)\n",
" self.tokenizer = sp\n",