convert : fix for lint error complaining of bare except (#6470)

This commit is contained in:
Clint Herron 2024-04-04 02:32:53 -04:00 committed by GitHub
parent 5fb1574c81
commit 72d73af651
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)