Qwen4 4B Runs on Intel Arc, But Weights Unreleased & QSA Kernels Absent from llama.cpp
Intel's ipex-llm and vllm-xpu-kernels repositories reveal Qwen4-4B and 27B architectural details (5120 hidden dim, 640 low-rank, 4 hyper-connected residuals) and show 4B running INT4 on Arc Battlemage via QSA kernels, but weights remain unreleased and QSA is not yet implemented in llama.cpp or MLX, making Mac inference impossible for now.
Reading font

Four Layers of Evidence from Intel Code Repositories
The article organizes leaked information into four credibility tiers:
Layer 1 – PR comment validation: In the intel/ipex-llm PR "[GPU]QSA: SparseAttention and PagedSparseAttention lowering", contributor riverlijunjie states: "Validated on BMG with Qwen4-4B-Base-1113-ov-int4-gsadj, stateful output matches previous branch; paged (7/16 / 8 / 4 KV) state cache persists across decode steps, cosine ≥ 0.9995 (f16 / i8), u4 ≈ 0.98." This confirms a Qwen4-4B INT4 model ran on Intel Battlemage (BMG) GPU with correct paged-attention cache behavior.
Layer 2 – Earlier kernel preparation: On October 23, the vllm-xpu-kernels repo merged a PR adding INT4 single/dual-GPU and FP8 dual-GPU kernel paths for Qwen4-27B dense, specifying 24 query heads and 4 KV heads. The PR explicitly noted: "Weights not provided, no end-to-end validation on real checkpoints." This was a pre-production step, not a full run.
Layer 3 – Blogger retelling: SuSu 酥酥 (@NFT_Chen) combined both events, claiming 27B has hidden dimension 5120, 4 hyper-connected residual streams, low-rank 640, supports INT4, tested on Arc Pro B70 with logits matching CPU FP32; 4B uses QSA + INT4 with paged attention running on Intel Arc. The article cautions that "Arc Pro B70 logits match CPU FP32" appears only in the tweet, not in the PR screenshots.
Layer 4 – Official statement: The November 16 Qwen4-Max announcement (2.4T total params, 71B activated per token, 1M context, native vision) promised "small and medium sizes to be open-sourced gradually" but never mentioned 4B or 27B specifically.
Figure 1: Screenshot from intel/ipex-llm PR showing Qwen4-4B validation info and Qwen4-27B geometry parameter test. Note the repo is ipex-llm (Intel Extension for PyTorch for LLM), not OpenVINO.
Two Numbers Require Careful Reading
A code comment reads // Qwen4-27B: D = 5120 (C+D = 20480), L = 640.
20480 ÷ 5120 = 4 – the "4 hyper-connected residual streams" is a reverse-engineered inference from this comment, not an official architecture spec. L = 640 is labeled "low-rank 640" by the blogger, but the code only shows a single letter L; interpreting it as low-rank dimension is the blogger's semantic assignment.
The code proves the numbers, not the names. Cite as "test comments show D=5120, L=640" rather than "officially confirmed 27B uses 5120 hidden dim + 640 low-rank."
Table 1: Four-layer evidence cross-reference for Qwen4-4B/27B leaked information.
27B Memory Arithmetic: 13.5 GB Weights, 32 GB Mac Theoretically Fits
For a 27B dense model:
INT4 (0.5 bytes/param) → ~13.5 GB
BF16 (2 bytes/param) → ~54 GB
Table 2: Qwen4-27B memory estimates across precisions and devices (calculated from param count, not measured).
Two critical caveats:
13.5 GB and 54 GB are pure arithmetic estimates; real GGUF sizes vary with quantization scheme, embedding layer, and granularity. Use for budgeting, not as spec.
KV cache must be added separately. The vllm-xpu-kernels PR notes 24 query heads and 4 KV heads with QSA sparse attention. Four KV heads is relatively few, so cache should be smaller than standard dense attention, but no public numbers exist – do not assume zero . Long-context KV remains a memory black hole.
For 4B: INT4 weight ~2 GB (estimate), fitting even 8 GB machines. But both sizes hit the same kernel barrier.
"Runs On" ≠ "You Can Run": QSA Is the Blocker
The 4B validation succeeded because Intel wrote new kernels, not because the model is inherently hardware-friendly. File names in the PR reveal: src/kernels/gated_residual_fusion_kernel.cuh – new gated residual fusion kernel tests/unit_tests/gpu/support_check_tests.cpp – commit message says "on Arc GPU (systolic DPAS)", meaning it targets Intel Arc's systolic array, not a generic implementation.
The attention mechanism is QSA (SparseAttention + PagedSparseAttention) , the exact operators the PR lowers. It is not standard FlashAttention, nor the attention stack in llama.cpp.
Consequences:
llama.cpp / MLX currently have no QSA implementation. Even if weights drop tomorrow, LM Studio, Ollama, and other front-ends will likely fail to run the original attention.
Community porting takes time. 4B's 2 GB size creates incentive; an MLX port may appear in weeks. 27B involves 4 residual streams + QSA + INT4 – timeline unpredictable.
"Runs on Intel Arc" does not extrapolate to "Runs on Mac." The two code paths are completely separate. Precedent: Hy4 Flash's EXLR8 + gr8 kernels hit 1.88M tokens/sec on DGX Spark, but that didn't make them instantly usable in llama.cpp on Mac.
Figure 3: Circulated Qwen 4.0 27B/4B promotional image. Only proves the two model sizes existed; contains no params, dates, or license.
Timeline: From Kernel Prep to On-Device Run in Five Weeks
Oct 23: vllm-xpu-kernels merges 27B dense kernel PR; explicitly states weights not provided, no end-to-end validation.
Nov 16: Qwen4-Max launches; official promise of gradual open-source for smaller sizes, no model names given.
~Nov 29: ipex-llm PR shows 4B validation comment – stateful output matches, paged cache persists.
Today: Weights still unreleased, but multiple vendors have inference optimizations in place.
Five weeks from kernel prep to silicon validation. The engineering pipeline is largely done; remaining steps are Alibaba's weight release, repo choice, and license. This supports the judgment "will open-source, but not today" – based on code velocity, not speculation.
Three Decision Rules for You
Do not upgrade hardware now. No weights, no license, no Mac-side kernels. Buying RAM or a GPU today bets on two non-existent cards. Hardware prices won't drop because you bought two weeks early.
Future "can it run?" checks: QSA first, param count second. Historically we looked at total params and activated params. For Qwen4-generation models, add a gate: check if llama.cpp / MLX has the corresponding attention kernel first. Without QSA support, even 4B cannot run the original attention – param size becomes irrelevant. This criterion decides success more than "27B vs 4B".
If choosing between 32 GB and 64 GB Mac: At ~13.5 GB INT4 weights (estimate) plus KV and system overhead, 32 GB theoretically fits 27B but with tight headroom ; 64 GB is comfortable, provided kernel support lands. 16 GB should not target 27B – wait for 4B MLX port. Bottom line: don't spend extra today, but keep the 32 GB threshold in mind.
Leaked code won't tell you how smart the model is, but it honestly reveals how far the engineering has progressed.
Verdict: Qwen4 4B and 27B will open-source, but not today; your Mac doesn't need an upgrade, but it's worth tracking llama.cpp's QSA support progress.
About this article
For attribution, corrections or content rights, contact



