mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-11-11 13:30:35 +00:00
convert : fix for lint error complaining of bare except (#6470)
This commit is contained in:
parent
5fb1574c81
commit
72d73af651
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user