halocline

The dive · Qwen4 sparse

Qwen4-35B-A3B

Three Unsloth tiers on one card, each scored against the same full-precision base.

Qwen's first Qwen4 release runs on the sparse path as a second shape of the same model code. This page follows it from UD-IQ4_XS to UD-Q8_K_XL: what each tier costs in memory and speed, and how far each sits from the BF16 weights.

  • Parameters35Bdoc
  • Active3Bdoc
  • Experts256doc
  • Base perplexity7.5364eval

The tiers

KLD to the BF16 base: 100eval wikitext chunks of 512eval tokens, Halocline with its int8 cache. The share of experts the card holds is at the full served context.

TierPackExperts on the cardMean KLDTail (p99)Same first choicePPL
UD-IQ4_XS31.54 GiB88.00%eval0.06587eval0.75740eval89.72%eval7.6005eval
UD-Q6_K_XL50.03 GiB78.00%eval0.02690eval0.28990eval93.33%eval7.5236eval
UD-Q8_K_XL61.29 GiB56.00%eval0.02164eval0.24002eval93.98%eval7.5387eval

UD-Q6_K_XL cuts the mean KLD of UD-IQ4_XS by more than half and keeps its tail under two fifths of it. UD-Q8_K_XL stores every attention, GDN and shared-expert projection in BF16, and the engine reads them on their full-precision activations. It takes about a fifth off UD-Q6_K_XL's mean KLD and is the tier the engine serves by default.

Halocline against llama.cpp

One base, one GGUF (UD-Q6_K_XL), two engines. Unsloth's own figure for this tier comes from a different evaluation mix, so it is left out of the comparison.

EngineMean KLDTail (p99)Same first choicePPL
llama.cpp (f16 cache)0.03053eval0.32380eval92.95%eval7.5244eval
Halocline (int8 cache)0.02690eval0.28990eval93.33%eval7.5236eval
Halocline (fp16 cache)0.02755eval0.29890eval93.02%eval7.5291eval

On the same weights Halocline lands closer to the base than llama.cpp, and its int8 and fp16 caches differ by about one standard error of llama.cpp's mean.

Decode

The bench's three fixtures, tokens per second with the drafter on. Each table compares arms built from one tree.

Release builds, alternating runs
TierConversationStructuredProsePrefill
UD-IQ4_XS208.6eval246.5eval198.3eval11,550eval
UD-Q6_K_XL177.2eval207.6eval161.4eval10,669eval
One branch with the fused paths at this shape
ArmConversationStructuredProseOne-token windowLossy flags
UD-Q6_K_XL223.2eval273.3eval205.2eval6.1 msevalnone
UD-Q8_K_XL171.3eval216.9eval161.5eval8.3 msevalnone
UD-Q8_K_XL, tensor cores145.8eval191.2eval130.5eval10.6 mseval--bf16-tc

Each step up in tier trades speed for fidelity. UD-Q8_K_XL's extra cost is its BF16 projections: nearly twice the bytes of the eight-bit ones, read on every pass, which the one-token window shows as a fixed extra time. The tensor-core option rounds the activations to BF16 and still decodes slower here, because these products wait on memory, not arithmetic. It stays an option, off by default.

Long context

UD-Q8_K_XL on the long profile: 500,000eval cells of k8v4 cache.

A prompt of 375,799eval tokens of source code hides one passphrase at 40.00%eval of its length. The answer is exact. Prefill runs at 8,049eval tokens a second and decode at 134.1eval at that depth.

Cache formats

Measured on the UD-IQ4_XS pack. Memory and expert residency at the long profile, then how far each format moves the next-token distribution from the most precise cache that fits.

CacheCache sizeExperts on the cardDecode at the long profileCache hit
int85.71 GiBeval86.00%eval119.0eval95.10%eval
k8v44.59 GiBeval93.00%eval124.6eval97.70%eval
q4_03.47 GiBeval98.00%eval135.6eval99.50%eval
DepthAgainstCacheSame argmaxMean KL
250Kfp16int810/12eval0.097eval
250Kfp16k8v412/12eval0.132eval
250Kfp16q4_010/12eval0.289eval
500Kint8k8v410/12eval0.191eval
500Kint8q4_08/12eval0.257eval

int8 and k8v4 sit within noise of each other; the rotated four-bit format costs two to three times their divergence and buys the most residency. The long profile serves k8v4.