mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-10-26 23:39:53 +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",
|
||||
"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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user