Skip to content

Commit

Permalink
convert : fix for lint error complaining of bare except (#6470)
Browse files Browse the repository at this point in the history
  • Loading branch information
HanClinto authored Apr 4, 2024
1 parent 5fb1574 commit 72d73af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion convert-hf-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 72d73af

Please sign in to comment.