mirror of
https://github.com/hiyouga/LlamaFactory.git
synced 2026-02-02 08:33:38 +00:00
[misc] fix import error (#9299)
This commit is contained in:
@@ -154,7 +154,17 @@ def configure_moe(config: "PretrainedConfig", model_args: "ModelArguments", is_t
|
||||
]:
|
||||
setattr(text_config, "output_router_logits", True)
|
||||
|
||||
if model_type in ["ernie4_5_moe", "granitemoe", "jamba", "llama4", "mixtral", "olmoe", "phimoe", "qwen2_moe", "qwen3_moe"]:
|
||||
if model_type in [
|
||||
"ernie4_5_moe",
|
||||
"granitemoe",
|
||||
"jamba",
|
||||
"llama4",
|
||||
"mixtral",
|
||||
"olmoe",
|
||||
"phimoe",
|
||||
"qwen2_moe",
|
||||
"qwen3_moe",
|
||||
]:
|
||||
setattr(config, "router_aux_loss_coef", model_args.moe_aux_loss_coef)
|
||||
|
||||
elif text_config and getattr(text_config, "model_type", None) in ["qwen3_moe"]:
|
||||
|
||||
Reference in New Issue
Block a user