mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-12 11:40:17 +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):
|
def set_vocab(self):
|
||||||
try:
|
try:
|
||||||
self._set_vocab_gpt2()
|
self._set_vocab_gpt2()
|
||||||
except:
|
except Exception:
|
||||||
|
# Fallback for SEA-LION model
|
||||||
self._set_vocab_sentencepiece()
|
self._set_vocab_sentencepiece()
|
||||||
self.gguf_writer.add_add_bos_token(False)
|
self.gguf_writer.add_add_bos_token(False)
|
||||||
self.gguf_writer.add_pad_token_id(3)
|
self.gguf_writer.add_pad_token_id(3)
|
||||||
|
Loading…
Reference in New Issue
Block a user