gwenedeg

Changelog

Behaviour changes and performance, per release. A release is a git tag in j3k0/gwenedeg; each entry says what changed and which published figures moved. The main page shows the current state only. The full text is CHANGELOG.md.

v0.4

2026-12-04

Full Qwen4 (qwen4exp) support, including Qwen4-35B-A3B (35B total, about 3.8B active, plus a 20B Engram n-gram table paged from SSD, native 1M context, MTP) and ThinkingCap-Qwen3.8-Flash-Next (125B, about 6B active), and AVX-512 VNNI kernels for it: Qwen4-35B-A3B UD-IQ4_XS reaches 30.5 tok/s with MTP at 128K context on a 16-vCPU Genoa VM.

Added

  • Qwen4 / Qwen3.8-Flash-Next forward pass. Multi-shard split GGUFs, 4-stream Hyper-Connections, 3:1 Gated DeltaNet + QSA sparse attention, mixture of experts with a shared expert, demand-paged Engram embeddings (the table is mapped read-only from SSD and left out of the resident-RAM admission check), MTP speculative decoding (-D mtp), and Q5_0 / Q5_1 kernels.
  • AVX-512 VNNI kernels for Qwen4 for Q8_0, Q6_K, Q5_K, Q4_K, IQ4_XS and IQ4_NL, with 8-token batching so an MTP verify pass at -G 6 reads every weight matrix once. They are checked against the FP32 path (top-1 matched on 5 of 5 prompts, cosine similarity 0.9935–0.9995); GWENEDEG_Q4E_FP32=1 selects the exact FP32 path.
  • Looped-Qwen3.8-Flash-Next adapters with --loop-adapter and --loop-passes.
  • launch-server qwen4-35b: a ready server configuration for UD-IQ4_XS (128K context, -k q8-dot, MTP -G 6 --tau 0.5, one active sequence).

Numbers

Qwen4-35B-A3B on a 16-vCPU AMD EPYC Genoa VM, 30 GiB of RAM, 12 threads, AVX-512 VNNI, warm page cache (tok/s):

Unsloth filecore in RAM / Engram on SSDplain decode, FP32 → VNNIMTP, 128K, -k q8-dot787-token prefill
UD-IQ3_XXS16.0 GiB / 11.5 GB15.1 → 18.422.671.9
UD-IQ4_XS19.2 GiB / 11.5 GB15.1 → 25.130.584.7

The KV cache costs about a third of Qwen3.8-27B’s: 11.9 KiB per token at 8 bit against 34, so a 128K slot takes about 1.5 GiB. The 27B comparison against llama.cpp and ik_llama.cpp was not re-run for v0.4. Details: BENCHMARKS.md.

v0.3

2026-12-02

Bit-identical AVX2 + F16C kernels for x86-64 CPUs without AVX-512, Inkling-2-Mini support, GWENEDEG_API_KEY for server auth, and faster long-context prefill attention. Output on AVX-512 builds is bit-identical to v0.2.

Added

  • AVX2 + F16C (+ FMA) kernels, compiled automatically on CPUs without AVX-512 VNNI. They cover all the i-quant formats (standard and --act256 activations, --repack), the K-quants Q3_K to Q6_K, and the Inkling MoE formats, and are verified bit-identical to the generic definitions.
  • Inkling-2-Mini (inkling2_loop): looped MoE forward pass, IQ4_NL / Q2_0 kernels, tokenizer, chat template, reply parser, and chat / tool-call support in gwenedeg serve.
  • gwenedeg serve reads its API key from GWENEDEG_API_KEY when --api-key is not given, so the key need not appear in ps. Set but empty, the server refuses to start rather than run without auth.

Changed

  • Prefill attention against a long cache is 5–7% faster, with bit-identical output: −4.8% time at 64k and −6.6% at 98k on Qwen3.8-27B IQ3_S, 14 threads. No change on short prompts.

Fixed

  • The test suite no longer fills /var/tmp after a killed run. Tests only; no output changes.

Numbers

Qwen3.8-27B IQ3_S on a 32-core AMD EPYC 7502P (Zen 2, no AVX-512, 68.96 GiB/s DRAM), 32 threads, gcc-12 -Ofast -march=znver2. Prefill / decode, tok/s:

mode and promptv0.2 (generic C)v0.3 (AVX2)speedup
plain, 23 tokens0.7 / 0.17529.6 / 4.042× / 23×
plain, --repack, 23 tokens0.7 / 0.17534.4 / 5.149× / 29×
--repack, MTP -G 3, 23 tokens0.7 / 0.41833.4 / 10.547× / 25×
--repack --act256, MTP -G 6 --tau 0.5, 23 tokens—33.0 / 11.3–11.4—
same, 719 tokens—33.8 / 10.6—

AVX-512 numbers are unchanged from v0.2. Details: BENCHMARKS.md.

v0.2

2026-11-25

One activation scale per 256 values replaces one per 32 as the default for the quantized files that have kernels for it.

Changed

  • The activation format is per file. A GGUF file whose matmul weights are mostly Q2_K, i-quants or Q3_K to Q6_K now runs with one scale per 256 values by default. Q8_0, F32 / BF16, NariQ and .bin files are unchanged, and so is any file whose hidden size is not a multiple of 256. The choice is read from the file, never from the build, so the same command gives the same bits on every build and CPU.
  • --act256 forces one scale per 256 and the new --no-act256 forces per 32. For a K-quant / i-quant file this changes the output compared with v0.1.
  • Faster prefill, unchanged decode, a small quality cost (below).

Added

  • Per-256 kernels for every i-quant type and Q2_K (AVX-512), and for Q3_K to Q6_K (AVX-512, rows and tiled).
  • GWENEDEG_ACT256=0|1 pins the format when no flag is given.

Fixed

  • The generic build was 3× slower with the flag; it is now at parity with the per-32 kernel.

Numbers

Measured on the same files and prompts on both sides. Prefill, tok/s:

model, file, prompt, threadsv0.1v0.2
Qwen3.5-0.8B Q3_K_M, 1,500 tokens, 82,3042,5291.10×
Qwen3.5-0.8B Q4_K_M, 1,500 tokens, 82,3992,5021.04×
Qwen3.8-27B Q3_K_M, 1,540 tokens, 1498.8111.61.13×
Qwen3.8-27B Q3_K_M, 8,040 tokens, 1496.5111.31.15×
Qwen3.8-27B IQ3_S (--repack), 1,540 tokens99.9115.01.15×

Decode is unchanged within the noise. Quality, against the per-32 definition of the same file: Qwen3.8-27B Q3_K_M, 16,384 tokens (8k prose + 8k code): top-1 agreement 97.77% / 99.51%, perplexity ×1.0014 / ×0.9994. Qwen3.8-27B IQ3_S: perplexity ×1.004 on prose, ×1.000 on code. Small files pay proportionally more: Qwen3-0.6B Q4_K_M against Hugging Face fp32, 1 − cos 0.0159 → 0.0177 (+11%).

The three-engine server benchmark of the main page was not re-run for v0.2: its two Gwenedeg prefill rows are the 2026-11-22 run scaled by the 1.17× top of the 1.12–1.17× measured on the IQ3_S file, and its prose perplexity (9.483 → 9.52) carries the format’s +0.4%. Before the scaling: short prompts 101–111 tok/s, cold 31.8k prompt 391 s; after: 113–130 tok/s and 334–349 s.

v0.1

2026-11-24

The first tag: the state every benchmark table of the repository was measured on. One activation scale per 32 values (Q8_0 and the quantized formats alike), tiled prefill GEMM for the i-quants and Q2_K, speculative decoding with an MTP drafter, quantized KV caches with a disk tier, memory-aware admission, and the OpenAI-compatible server. The per-32 default is still reachable with --no-act256.