Skip to content

Checking your reading list…

Retry

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Industry Insights
5 min read

Leaked Qwen4-35B-A3B Code: Separating Fact from Speculation

An analysis of a leaked SGLang code snippet suggesting a Qwen4-35B-A3B model, verifying which parameters are confirmed, which are inferred, and which remain unverified rumors, while teaching a methodology for evaluating such leaks.

A code screenshot, a whale poster, and a "caught" tweet formed the hottest AI mystery recently. The conclusion: the code is real, the model is unknown, and most parameters in the tweet lack independent verification.

1. What Was Actually Leaked

The highest-density evidence is a code diff showing three key additions:

"Qwen4-35B-A3B monokernels" (RFC #43949; SGLang's Qwen4 checkpoint)

— a new model backend called monokernels (single fused kernels).

Spec and glue code in spec directory; AMD gfx950 forward kernel in gfx950 directory — gfx950 is the architecture codename for AMD MI350/MI355 accelerators .

Qwen4-35B-A3B's text config, which the forward is built for (Qwen/Qwen4-35B-A3B-1118 config.json, text_config)

— the forward code targets a Hugging Face repo named Qwen4-35B-A3B-1118; the 1118 suffix suggests a November 18 release date .

The tweet claimed this adaptation code appeared in SGLang's AMD codebase, then the PR was reverted, the branch deleted, and the discussion locked . Checking RFC #43949 confirms the issue exists (title: [RFC] Monokernel framework for SGLang, author kevin-mii, includes AMD plugin sgl-amd-mono, gfx950 content, and a monokernel framework design). However, the current page no longer contains any Qwen4 references — only Qwen3.8-27B dense and Qwen3.8 MoE models. This matches the "reverted PR, deleted branch" narrative, but only proves adaptation work existed, not that the model is trained or imminent . Frameworks often add support for unreleased models.

2. Interpreting the 8 HF_CONFIG Parameters

The diff's HF_CONFIG block contains eight values. Transcribed verbatim:

hidden_size: 2048
num_hidden_layers: 40
num_attention_heads: 16
num_key_value_heads: 2
head_dim: 256
full_attention_interval: 4
partial_rotary_factor: 0.25
hidden_act: "silu"

Key takeaways:

full_attention_interval: 4 is the most interesting line. It implies full attention every 4 layers (10 out of 40 layers), with other layers using cheaper mechanisms (linear, local, or sparse attention) — a typical hybrid attention pattern to preserve long-context quality while reducing compute.

num_attention_heads: 16 + num_key_value_heads: 2 + head_dim: 256 is a very "thrifty" config. 16 query heads share 2 KV heads (GQA), shrinking KV cache 8× vs. 16-head models — the memory savings appear exactly when running long contexts . head_dim 256 widens per-head representation. hidden_size 2048 indicates a narrow-but-deep design: 40 layers at 2048 dimensions, not relying on width for parameters.

partial_rotary_factor: 0.25 means only 25% of dimensions use rotary position embeddings (RoPE), the remaining 75% stay rotation-free — another long-context stability tactic. hidden_act: "silu" is standard SiLU activation, no special insight.

Summary: This config describes a narrow, deep, KV-cache-frugal model base optimized for long contexts. But it does not reveal total parameters, activated parameters, or expert count — MoE expert configuration is absent from this text_config fragment.

3. Evidence Grading for the Tweet's Six Claims

The tweet listed six "key details." Ranked by evidence strength:

Only two claims have screenshot support: model codename "Qwen4-35B-A3B" (explicit in code comments) and AMD optimization (gfx950 kernel directory).

"35B total params, 3B activated" matches the known Qwen3.6-35B-A3B exactly — released April 2026, 35B total, 3B activated per token, multimodal, 262K context. This raises a reasonable suspicion: the tweet's "Qwen4-35B-A3B" might be Qwen3.6's known specs wrapped in a new codename . No proof, but the familiar "35B-A3B" suffix warrants a question mark.

"1M context", "256 experts", "N-gram + native multimodal" appear only in this tweet. The config fragment lacks expert count, context length, and multimodal fields. They could be true — but that's "alleged," not "verified."

The whale poster ("Qwen 4.0-35B-A3B", "北冥有鱼,其名为鲲 / The becoming begins.") is well-crafted but a poster is visual collateral, not a release announcement . It could be genuine pre-heat or fan creation. No official channel has published a matching announcement.

4. Practical Implications If the Model Arrives

From the config, hidden_size 2048 × 40 layers is modest; an A3B (3B activated) MoE's actual runtime memory is dominated by total parameter count . A 35B model at 4-bit quantization weighs ~20GB, plus KV cache and overhead. 64GB unified-memory Mac is a comfortable starting point, 128GB more so. Caveat: the config omits expert count, weight format, and context ceiling — the above is a "typical 35B estimate," not measured data. Wait for the official model card.

Three concrete things to watch:

Whether Qwen/Qwen4-35B-A3B-1118 on Hugging Face becomes public. That's the hardest evidence — weights either exist or not. (At publication, the repo was inaccessible in the author's network, so no conclusion.)

Whether Qwen4-related code reappears in RFC #43949. Re-merge suggests pre-release prep; permanent removal suggests internal experiment.

Whether a second independent source emerges. One tweet + one screenshot = single source. Await official blog, model card, or another outlet.

5. The Real Lesson: How to Read a Leaked Line of Code

Numbers in code are verifiable character-by-character — hidden_size 2048, 40 layers, 16/2 heads, head_dim 256 — all transcribed from the screenshot for you to cross-check.

Inferring behavior from parameter names is reasonable inference , but label it as such — e.g., full_attention_interval: 4 implies hybrid attention.

Deriving "35B/3B" from "35B-A3B" is analogy because Qwen3.6 already has that spec; it's a reference, not evidence.

Deriving "1M context, 256 experts, imminent release" from one tweet is rumor — always tag with "allegedly."

The tech world never lacks "I saw internal info." Distinguishing fact, inference, and rumor is more valuable than being first to retweet.

If you have a 64GB+ Mac, no rush — wait for the repo to actually appear and the model card to be explicit. When it does, I'll publish a hands-on benchmark: real memory usage, tokens/sec, long-context performance, data-driven.

All screenshots sourced from reader-submitted public tweets; code parameters transcribed verbatim; GitHub Issue #43949 status verified live (2026-12-01) — page currently lacks Qwen4 references; Hugging Face repo not independently verified due to network. Sections marked "inference" or "rumor" are analytical opinions, not official statements.

For attribution, corrections or content rights, contactadmin@besthub.dev

Report an issue with this article

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion