From f626b7175c4f2938a59d0924ce64abe3869ecc6b Mon Sep 17 00:00:00 2001 From: XingXing Qiao Date: Fri, 24 May 2024 14:13:36 +0800 Subject: [PATCH] fix lint error Signed-off-by: XingXing Qiao --- convert-hf-to-gguf.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/convert-hf-to-gguf.py b/convert-hf-to-gguf.py index 01422eefb..59e25cb58 100755 --- a/convert-hf-to-gguf.py +++ b/convert-hf-to-gguf.py @@ -2726,8 +2726,6 @@ class ChatGLMModel(Model): vocab_size = hparams.get("padded_vocab_size", len(tokenizer.get_vocab())) assert max(tokenizer.get_vocab().values()) < vocab_size - reverse_vocab = {id_: encoded_tok for encoded_tok, id_ in tokenizer.get_vocab().items()} - for token_id in range(vocab_size): piece = tokenizer._convert_id_to_token(token_id) if token_id == 0: