Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

PEFT MoE conversion snapshot: add beam, which transformers main now fuses as qwen2_moe (#14005)

Daniel Han955e2eb77da7
diff --git a/unsloth/import_fixes.py b/unsloth/import_fixes.py
index bf0ccc38e75..1bd664b9c29 100644
--- a/unsloth/import_fixes.py
+++ b/unsloth/import_fixes.py
@@ -9056,6 +9056,7 @@ _PEFT_MOE_CONVERSION_PATTERNS = {
"minimax": "mixtral",
"minimax_m2": "mixtral",
"afmoe": "qwen2_moe",
+ "beam": "qwen2_moe",
"cohere2_moe": "qwen2_moe",
"deepseek_v2": "qwen2_moe",
"deepseek_v3": "qwen2_moe",