Qwen4-35B-A3B TokenWing (UD-Q4_K_XL)
A TokenWing repack of Qwen4-35B-A3B, Unsloth UD-Q4_K_XL, for TokenWing expert streaming. 40-layer, all-MoE (256 experts, top-8 per token), qwen4exp architecture; a separate engram (per_layer_token_embd.weight, iq4_nl) shard.
This is not a re-quantization. The weights are the original UD-Q4_K_XL bytes; TokenWing only converts/repacks the experts and adds optional sidecars. Small rounding differences between execution paths are possible; output validity is checked with fixed-text/identity, not model changes.
Requirements
- TokenWing with Qwen4-35B-A3B support i.e. including the Qwen4 model + chat support (tokenwing PR #96:
qwen4tokenizer,n_layer=40→LLM_TYPE_35B_A3B, optionalper_layer_token_embd.scale,Qwen4-35B-A3B.jinja,reasoning_effort="off"). Stockllama.cppwithout that support will failunknown pre-tokenizer type: 'qwen4'. - Rebuilt all targets after the engine change.
Files
| File | What |
|---|---|
Qwen4-35B-A3B-UD-Q4_K_XL.tokenwing-00001-of-00002.gguf |
Shard 1: experts + model tensors, TokenWing-repacked (24.7 GB) |
Qwen4-35B-A3B-UD-Q4_K_XL-00002-of-00002.gguf |
Shard 2: engram-only per_layer_token_embd.weight, iq4_nl, [128,160003584] (~10.7 GB); untouched, read lazily/mmap'd |
…tokenwing-00001-of-00002.gguf.correction.bin |
optional --moe-stream-correction router-correction |
…tokenwing-00001-of-00002.gguf.vram-experts.json |
optional --moe-stream-vram-experts-file |
…tokenwing-00001-of-00002.gguf.layer-order.json |
optional --moe-stream-layer-order |
…tokenwing-00001-of-00002.gguf.usage.json / …usage-seed.json |
usage statistics / seed used to build ordering + VRAM lists |
correction-kinds.json, correction-train.txt |
inputs used to train correction.bin |
Shard rules (important)
- Do not merge shards. Shard 1 is the exporter output; shard 2 is engram-only.
- Run the TokenWing exporter on shard 1 only; leave shard 2 untouched.
- Keep shard 2 next to shard 1 with the exact name above. The engram is not loaded into RAM; only used rows are read.
- No external
--pleengram-swap in this build.
Usage (TokenWing llama-server)
# minimal:
llama-server -m Qwen4-35B-A3B-UD-Q4_K_XL.tokenwing-00001-of-00002.gguf --moe-stream model -c 4096
# with optional sidecars:
llama-server \
-m Qwen4-35B-A3B-UD-Q4_K_XL.tokenwing-00001-of-00002.gguf \
--moe-stream model -c 4096 \
--moe-stream-correction Qwen4-35B-A3B-UD-Q4_K_XL.tokenwing-00001-of-00002.gguf.correction.bin \
--moe-stream-vram-experts-file Qwen4-35B-A3B-UD-Q4_K_XL.tokenwing-00001-of-00002.gguf.vram-experts.json \
--moe-stream-vram-experts 8 --moe-stream-idle-load 1 --moe-stream-gpu-layers-mode hot --moe-stream-pred-shared 1
--moe-stream modelstreams routed experts from the GGUF directly; or point--moe-streamat a repacked.experts.jsonsidecar.- The sidecars are optional; the model runs without them. No launch script is included (
run.bat/run-optimized.cmdexcluded) — adjust paths/flags for your machine. - CPU works too (
-ngl 0,--moe-stream-gpu-layers 0); not GPU-only.
Chat
Qwen4 chat uses the Qwen4-35B-A3B template + Qwen3-Coder-style tool calls; compact <think></think>. reasoning_effort="off" (or "none") disables thinking. See PR #96.
Base model, quantization & license
Base model: Qwen4-35B-A3B. Source quantization: Unsloth UD-Q4_K_XL (Qwen4-35B-A3B-UD-Q4_K_XL, split shards 1+2); not re-quantized here. Qwen4-35B-A3B is split; engram shard 2 is part of this package, unmodified. License follows the base model's; TokenWing (the engine) is MIT, which does not change the model's license. Verify the current base-model license before redistribution.
Caveats
- Qwen4-35B-A3B needs a TokenWing build with PR #96; this repo is the model + optional sidecars, not the engine.
- Not a speed bundle; no speed claim. Memory/speed depend on your machine, quant, context, and
--moe-stream*flags. CPU behavior kept working; GPU optional. - check.py-style identical-text checks target a small single-file routed-MoE model; on this large split mixed-quant Qwen4, small rounding differences can change greedy output while staying sensible.
- Downloads last month
- -
4-bit
Model tree for RandumbPerson/qwen4-35b-tokenwing
Base model
Qwen/Qwen4-35B-A3B