Skip to content

Commit 2ad6538

Browse files
committed
fix python coding style
1 parent 45ff609 commit 2ad6538

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

convert_hf_to_gguf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3368,8 +3368,8 @@ def set_gguf_parameters(self):
33683368
self.gguf_writer.add_file_type(self.ftype)
33693369
self.gguf_writer.add_rope_freq_base(hparams.get("rope_theta", 1_000_000.0)) # for global layers
33703370
# both attn_logit_softcapping and final_logit_softcapping are removed in Gemma3
3371-
assert hparams.get("attn_logit_softcapping") == None
3372-
assert hparams.get("final_logit_softcapping") == None
3371+
assert hparams.get("attn_logit_softcapping") is None
3372+
assert hparams.get("final_logit_softcapping") is None
33733373
self.gguf_writer.add_sliding_window(hparams["sliding_window"])
33743374
self.gguf_writer.add_head_count_kv(hparams.get("num_key_value_heads", 4))
33753375
if hparams.get("rope_scaling") is not None:

0 commit comments

Comments
 (0)