From 3853e3af73a0e184385fba688501492351e8a0fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Szymczyk?= Date: Mon, 24 Jun 2024 06:11:53 +0200 Subject: [PATCH] convert-hf : remove duplicated initialization of variables --- convert-hf-to-gguf.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/convert-hf-to-gguf.py b/convert-hf-to-gguf.py index 1812a9eb9..ebfc1a1f9 100755 --- a/convert-hf-to-gguf.py +++ b/convert-hf-to-gguf.py @@ -2785,10 +2785,6 @@ class T5Model(Model): 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}")