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 25, 2024
1 parent 6bb0dce commit 75d564d
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 @@ -2747,10 +2747,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 75d564d

Please sign in to comment.