mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-10-14 17:39:51 +00:00
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:
parent
e8c2f962e9
commit
cd24a27161
@ -1216,7 +1216,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"class LlamaTokenizer:\n",
|
"class LlamaTokenizer:\n",
|
||||||
" def __init__(self, filepath):\n",
|
" def __init__(self, tokenizer_file):\n",
|
||||||
" sp = spm.SentencePieceProcessor()\n",
|
" sp = spm.SentencePieceProcessor()\n",
|
||||||
" sp.load(tokenizer_file)\n",
|
" sp.load(tokenizer_file)\n",
|
||||||
" self.tokenizer = sp\n",
|
" self.tokenizer = sp\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user