Skip to content

Commit f4f93de

Browse files
committed
fix typo
1 parent 156676c commit f4f93de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert_hf_to_gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ def set_gguf_parameters(self):
12071207
self.gguf_writer.add_audio_block_count(self.find_aparam(self.n_block_keys))
12081208
self.gguf_writer.add_audio_head_count(self.find_aparam(["num_attention_heads"]))
12091209

1210-
else:
1210+
if not self.has_vision_encoder and not self.has_audio_encoder:
12111211
raise ValueError("MmprojModel must have either vision or audio encoder")
12121212

12131213
def write_vocab(self):

0 commit comments

Comments
 (0)