Qwen 4 Imminent: Leaked Code & Anonymous Models Reveal Architecture Details

Community clues suggest Alibaba's Qwen 4 is near release, with inference optimizations in vLLM and llama.cpp, architectural details like a 27B dense model with 5120 hidden dim, 24 query heads, 4 KV heads, 4 residual streams, MTP, and QSA sparse attention, while anonymous Arena models Kalmia and Kerria are speculated as Qwen 4 variants showing strong code and 3D generation.

SmartApe AI
SmartApe AI
SmartApe AI
Qwen 4 Imminent: Leaked Code & Anonymous Models Reveal Architecture Details

Alibaba's next-generation Tongyi Qianwen model, Qwen 4, has not been officially announced, but a series of community discoveries indicate its release is approaching.

Inference Code Optimizations Appear

On October 23, the Intel-maintained vLLM repository merged an optimization for Qwen4-27B covering FP8 and INT4 quantization inference for single-GPU and dual-GPU configurations. The code describes the model as dense, but developers note they lack the sparse attention weights for end-to-end testing.

Shortly after, the open-source inference project llama.cpp opened an issue titled "Get ready for qwen4", signaling preparation for support.

TensorFold further began developing native CUDA kernels for Qwen4-27B targeting NVIDIA GB10 and DGX Spark platforms, adapting architecture based on leaked kernel information.

Leaked Architectural Details

From the surfaced code and community analysis, Qwen4-27B likely uses a hidden dimension of 5120, 24 query heads, 4 key-value heads, and introduces 4 residual streams. Its feed-forward network dimension may be 14336. The model may employ multi-token prediction (MTP) to generate 4 draft tokens and adopt QSA sparse attention among other new designs.

Official Hints at Dual Release

On October 10, the official Qwen X account posted an image of two capybaras with the caption "big or small?" and later commented "alright guys, let's do both!", fueling speculation that both a 27B model and a larger flagship Max variant will launch together.

Anonymous Arena Models Kalmia and Kerria

Two anonymous models, Kalmia and Kerria, appeared on the LMSYS Chatbot Arena. Kalmia emerged on October 21 and showed strong performance in code generation and 3D interactive applications. User Unicorn shared a pirate-ship Three.js demo generated by Kalmia that ran without DOM leaks or Canvas crashes, reportedly outperforming Kimi 3.1 Pro. Another developer, after 10 tests, found Kalmia's 3D generation promising but noted DeepSeek V4.1 Flash still performed better in some cases, estimating Kalmia roughly on par with MiniMax 3.1 Flash.

Kerria appeared shortly after Kalmia. Tests show it exhibits similar behavior on special tokens characteristic of the Qwen family, leading to speculation it is a newer checkpoint with improved performance. User Synopsis observed Kerria appears to be a post-Kalmia checkpoint with performance gains. User Jaycee demonstrated creative writing from Kerria, comparing it favorably against Fable 5, and another user praised a Hogwarts-themed Three.js page generated by Kerria, noting its superior music taste and soundtrack quality.

As code clues and anonymous model evaluations accumulate, anticipation for Qwen 4 grows. Whether large and small models release simultaneously and their exact capabilities remain to be officially confirmed.

vLLM Qwen4-27B optimization merge screenshot
vLLM Qwen4-27B optimization merge screenshot
llama.cpp Get ready for qwen4 issue screenshot
llama.cpp Get ready for qwen4 issue screenshot
TensorFold CUDA development for Qwen4-27B screenshot
TensorFold CUDA development for Qwen4-27B screenshot
Qwen X post big or small screenshot
Qwen X post big or small screenshot
Kalmia Arena appearance screenshot
Kalmia Arena appearance screenshot
Kalmia code generation discussion screenshot
Kalmia code generation discussion screenshot
Kalmia 3D demo screenshot
Kalmia 3D demo screenshot
Kalmia vs DeepSeek comparison screenshot
Kalmia vs DeepSeek comparison screenshot
Kerria Arena appearance screenshot
Kerria Arena appearance screenshot
Kerria token test screenshot
Kerria token test screenshot
Kerria creative writing comparison screenshot
Kerria creative writing comparison screenshot
Kerria Hogwarts Three.js demo screenshot
Kerria Hogwarts Three.js demo screenshot
Kerria music generation praise screenshot
Kerria music generation praise screenshot
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

AlibabaInference OptimizationvLLMLLM architectureMTPFP8 quantizationsparse attentionllama.cppTongyi QianwenArena benchmarkINT4 quantizationTensorFoldKalmiaKerriaQwen 4
SmartApe AI
Written by

SmartApe AI

SmartApe's AI technology content account, focusing on cutting-edge AI developments and open-source frontlines.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.