mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	convert : fix for lint error complaining of bare except (#6470)
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Clint Herron
					Clint Herron