From 72d73af65132792a52433952ca4729b01c36cde2 Mon Sep 17 00:00:00 2001 From: Clint Herron Date: Thu, 4 Apr 2024 02:32:53 -0400 Subject: [PATCH] convert : fix for lint error complaining of bare except (#6470) --- convert-hf-to-gguf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/convert-hf-to-gguf.py b/convert-hf-to-gguf.py index c34bccaac3d4f..7e601170e925a 100755 --- a/convert-hf-to-gguf.py +++ b/convert-hf-to-gguf.py @@ -513,7 +513,8 @@ class MPTModel(Model): def set_vocab(self): try: self._set_vocab_gpt2() - except: + except Exception: + # Fallback for SEA-LION model self._set_vocab_sentencepiece() self.gguf_writer.add_add_bos_token(False) self.gguf_writer.add_pad_token_id(3)