Skip to content

Commit

Permalink
Fix argument name in LlamaTokenizer constructor
Browse files Browse the repository at this point in the history
This PR addresses an oversight in the LlamaTokenizer class by changing the constructor argument from filepath to tokenizer_file.
  • Loading branch information
rohanwinsor authored Oct 28, 2024
1 parent e8c2f96 commit 2cc5853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch05/07_gpt_to_llama/converting-gpt-to-llama2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2cc5853

Please sign in to comment.