Qwen4 MoE model added to Hugging Face Transformers documentation
The Transformers documentation now has a page for the Qwen4 MoE model, which the page says was contributed to Hugging Face Transformers on 3 December. Qwen4 MoE uses the mixture-of-experts[1] and per-layer embedding architecture described in Qwen4-Exp. Qwen4MoeForCausalLM is used for text generation, and Qwen4MoeForConditionalGeneration for image and video inputs.
The page also documents two configuration classes, Qwen4MoeConfig and Qwen4MoeTextConfig, which hold the model's settings. By default, the text configuration uses a vocabulary of 248320 tokens, a hidden size of 2048, 40 hidden layers and 16 attention heads. It also sets 2 key-value heads, 512 experts, and 10 experts used per token.
Repository Qwen4 MoE github.com
Qwen4 MoE is a mixture-of-experts language model in Hugging Face Transformers, built on the Qwen4-Exp architecture for text and image/video input.
Read the original moon-ci-docs.huggingface.coDiscussion
Discussion
Most commenters joke about waiting for the release and say they have been disappointed before. One estimates from AA scores that Qwen4 Max is about 25% more intelligent than its predecessor, and another recalls that Qwen 4 Max was fairly mediocre.
Sources
-
moon-ci-docs.huggingface.co
Qwen 4 added to transformers docs





