mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-10-28 16:30:07 +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
2b24a7ef30
commit
e85d154522
@ -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