fix bf16 and add comments (#4106)

This commit is contained in:
bukejiyu
2025-09-15 17:23:07 +08:00
committed by GitHub
parent 69aa2781a1
commit 113e330030
4 changed files with 8 additions and 4 deletions

View File

@@ -240,7 +240,7 @@ def rename_offline_ckpt_suffix_to_fd_suffix(
}
moe_quant_type = ""
dense_quant_type = ""
if fd_config.quant_config is None:
if fd_config.quant_config is not None:
if fd_config.quant_config.name() == "mix_quant":
moe_quant_type = fd_config.quant_config.moe_quant_type
dense_quant_type = fd_config.quant_config.dense_quant_type