Skip to content

Commit

Permalink
convert-hf : remove duplicated initialization of variables
Browse files Browse the repository at this point in the history
  • Loading branch information
sszymczy committed Jun 24, 2024
1 parent 8a30bd0 commit 3853e3a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions convert-hf-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2785,10 +2785,6 @@ def set_vocab(self):

tokenizer_path = self.dir_model / 'spiece.model'

tokens: list[bytes] = []
scores: list[float] = []
toktypes: list[int] = []

if not tokenizer_path.is_file():
raise FileNotFoundError(f"File not found: {tokenizer_path}")

Expand Down

0 comments on commit 3853e3a

Please sign in to comment.