K2-Horizon-375B-A23B (379.17B parameters, 23B active, 192 experts × top-8, native 524,288-token context) with its 367.8B routed-expert weights vector-quantized to 13 bits per 8 weights by hVQ and a Q8_0 backbone: 81.2 GiB of parts that serve on one 128 GB DGX Spark (GB10) through ds4-dfm-rs with an NVFP4 K/V cache of up to 425,984 tokens.
[!NOTE] Status, 2026-11-25: converted, verified, uploaded and served on DGX Spark. 60 parts (87,197,637,632 bytes, 81.21 GiB), each checked against its SHA-256 in
release.jsonwhen the engine loads it. Measured against the original BF16 model (held-out, teacher-forced, 32,768 tokens): with BF16 K/V the release weights keep the same top-1 token on 87.6% of positions with KL 0.116 (NLL 1.311 → 1.373); with the recipe's NVFP4 K/V in all 61 layers, 86.8% and KL 0.132 (NLL 1.389). On DGX Spark (GB10), the released files through ds4-dfm-rs: the same positions score KL 0.134 against the original and 0.022 against the reference forward of the same bytes (NLL 1.390); 2K–64K runs at 711.9 prefill / 13.96 decode tok/s, and 8K + 64 at 1,063 / 15.5 against the MQ87 release's 645 / 13.3; the serving checklist and every API surface pass (below). The native 524,288 tokens do not fit beside the host's own memory on a 128 GB Spark: one serves 425,984 tokens, where a 417,942-token prompt returned both of its planted codes.
[!NOTE] Experimental low-bit release. The routed experts are stored at 1.63 bits per weight. The measurements below describe teacher-forced fidelity; sampled generation was checked on a small seeded set only, and no task benchmark has been run. The files load in ds4-dfm-rs's
k2_horizon_vqfamily (PR #160), never in llama.cpp, Ollama or Transformers; FORMAT.md is the byte contract. The previous release of this model for the same runtime is the mixed-quant MQ87 GGUF.
release.json is the entry point; the parts are independent GGUF v3 files, not numbered splits.
| Part | Storage | GiB | Residency on GB10 |
|---|---|---|---|
layer-03-experts.gguf … layer-60-experts.gguf: routed experts, 58 layers × 192 × gate/up/down |
GVQ1 13-bit (K = 8,192, one E4M3 codebook per layer shared by all experts and projections, F16 row gain), hVQ | 69.80 | device |
body-nonexpert.gguf: attention q/k/v/o (61 layers), the dense MLPs of layers 0–2, the shared expert of every MoE layer, the output head; router weights and bias, every norm |
Q8_0 matrices; router and norms F32 | 9.89 | device |
embed-tokens-q8_0.gguf: token embedding [250624, 6144] |
Q8_0 | 1.52 | device, or host rows (one 6,528-byte row per token) |
| Tensor group | MQ87 (previous) | This release |
|---|---|---|
| Routed gate / up, layers 3–60 | IQ1_S (1.5625 bpw), IQ1_M (1.75) on layers 3–6 and 57–60 | GVQ1 13-bit hVQ, 1.630 bpw |
| Routed down, layers 3–60 | IQ2_XXS (2.0625 bpw), IQ2_XS (2.3125) on layers 3–6 and 57–60 | GVQ1 13-bit hVQ, 1.630 bpw |
| Attention, shared experts, dense MLPs, embedding, head | Q8_0 | Q8_0 |
| Router, norms | F32 | F32 |
| Size | 86.70 GiB (1.96 bpw overall) | 81.21 GiB (1.84 bpw overall) |
One execution path replaces four IQ types: every routed-expert projection of every layer is the same index-lookup kernel over a 64 KiB codebook (8,192 × 8 E4M3), which is what the FP8 tensor-core VQ prefill and the shared-memory VQ decode kernels of ds4-dfm-rs are built around. All three matrix shapes have an input dimension divisible by 256 ([1792, 6144] ×2, [6144, 1792]).
K2-Horizon is full GQA attention in all 61 layers (48 query / 8 KV heads × 128, no indexer and no sliding window), so the context, not the weights, is the memory problem: BF16 K/V is 249,856 bytes per token, 122 GiB at the native 524,288 tokens. The recipe therefore fixes two things together:
| Context | BF16 K/V | NVFP4 K/V | Weights (trunk) + NVFP4 K/V |
|---|---|---|---|
| 32K | 7.63 GiB | 2.14 GiB | 81.8 GiB |
| 128K | 30.50 GiB | 8.58 GiB | 88.3 GiB |
| 256K | 61.00 GiB | 17.16 GiB | 96.8 GiB |
| 524,288 (native) | 122.00 GiB | 34.31 GiB | 114.0 GiB |
Trunk = expert parts + body (79.69 GiB); the embedding part adds 1.52 GiB when it is kept on the device instead of being read as host rows. On DGX Spark the open itself takes 81.34 GiB (the trunk plus the CUDA runtime), which leaves 36.3 GiB of what a 128 GB Spark reports available: the native context's 34.31 GiB bank fits the byte budget but not beside the host's own memory and its reclaim reserve, so one Spark serves up to 425,984 tokens (measured below). Without an indexer every decode step reads all cached K/V, so there is no SSD tier for K/V in this recipe.
VQ → iVQ → hVQ, as in DeepSeek-V4.1-Flash-1017-hVQ-GGUF
and Inkling-2-Small-VQ-GGUF. Every 8 consecutive
input-axis weights of an expert row are one index into a per-layer book of 8,192 E4M3 codewords, times one F16
gain per row; the source is the original BF16 checkpoint at d33e3ae4.
K2HorizonDecoderLayer
(layers 0 and 3). 64 further sequences of the
same mix are held out.R ([6144²] for gate / up, which
share an input; [1792²] for down) and the column weights D give H = D½ R D½; the 8-column blocks of every
row are assigned in order and each block's error is fed forward into the blocks not yet assigned (GPTQ / GPTVQ
error feedback through the factor of H), then the row gains are refit by least squares under H. t = 1, no
damping, a 4,096-token shrink: the settings measured for the DeepSeek release, not re-swept here.A layer's second moments (29.3 GiB) live on the GPUs only: collected, used and dropped, one MoE layer at a time
on 3 × RTX PRO 6000 Blackwell. RECIPE.md has every setting; conversion-receipts/ has every layer's
record (codebook training, in-sample output error of hVQ against the iVQ baseline at the same codebook, timings).
Teacher-forced on 64 held-out sequences of the calibration mix (32,768 tokens, five domains), against the original BF16 model run by the same reference forward; the student is rebuilt from the release parts alone. Full tables, the per-layer record and the protocol: EVALUATION.md.
| vs the original BF16 model | KL, mean | KL, median | Same top-1 | NLL | Router top-8 overlap (mean of 58 layers) | Final-state cosine |
|---|---|---|---|---|---|---|
| Original | 0 | 0 | 100% | 1.311 | 100% | 1 |
| Release weights, BF16 K/V | 0.1157 | 0.0338 | 87.57% | 1.373 | 84.3% | 0.9596 |
| Release weights, FP8 K/V | 0.1191 | 0.0357 | 87.34% | 1.376 | 83.6% | 0.9588 |
| Release weights, FP8 K + NVFP4 V | 0.1208 | 0.0363 | 87.21% | 1.377 | 83.4% | 0.9582 |
| Release weights, NVFP4 K/V (the recipe) | 0.1316 | 0.0412 | 86.78% | 1.389 | 81.4% | 0.9549 |
The tables above run the release's bytes through the reference forward in PyTorch. These run the released
files on one DGX Spark (GB10, CUDA 13.5, clocks 300–2,200 MHz) through ds4-dfm-rs's k2_horizon_vq family
(PR #160, code c089901f): the loader, the GVQ1 and
Q8_0 kernels, the NVFP4 K/V and the engine's own arithmetic are included.
The same 64 held-out sequences (32,768 positions), scored through the release's norm and Q8_0 head:
| Engine on DGX Spark, against | Positions | KL, mean | Same top-1 | NLL |
|---|---|---|---|---|
| The reference forward of the same bytes (NVFP4 K/V) | 32,768 | 0.022 | 94.4% | 1.390 (reference 1.389) |
| The original BF16 model | 32,768 | 0.134 | 86.7% | 1.390 (original 1.311) |
Decoded token by token instead of prefilled (six sequences, 3,072 positions), the engine stays at KL 0.014 and 94.7% same top-1 against the reference forward. The engine therefore serves the conversion's quality: its distance to the original is the reference forward's (KL 0.132, 86.8%).
ds4 --serving-check (prefix reuse, rewind and continue, disk and snapshot sessions, and the banks' warm, fork,
partial, disk and width checks) passes 10 / 10 on a 9,000-token prompt. Behind ds4-server -c 425984, one request
per surface, 12 / 12 as expected: chat, thinking, SSE streaming, a tool call and its follow-up with the tool's
result, /v1/messages, /v1/responses, /v1/completions, Korean, a 24,995-token prompt with one planted fact
(27.9 s), the same prompt again from the live state (24,994 tokens cached, 0.6 s) and a second turn that
re-renders the first answer (24,994 of 25,022 cached).
A seeded set at temperature 1.0 (top_p 1.0):
| 14 requests | Result |
|---|---|
Thinking arithmetic (en, ko): exact answer, thinking closed, stop |
6 / 6 |
| Tool call valid (name, city, unit) | 4 / 4 |
Chat en / ko, code, translation with thinking off: stop |
4 / 4 |
It shows no gross failure, not a ranking.
| 2K–64K sweep, three fresh runs | Prefill tok/s | Decode tok/s |
|---|---|---|
| Median of the runs' means over 32 frontiers | 711.9 | 13.96 |
| 2K frontier | 994.2 | 15.82 |
| 8K frontier | 988.0 | 15.47 |
| 16K frontier | 855.8 | 14.95 |
| 32K frontier | 681.2 | 13.94 |
| 48K frontier | 565.2 | 13.07 |
| 64K frontier | 485.5 | 12.29 |
Every frontier prefills 2,048 new tokens of Italian prose in one chunk over the cached prefix and decodes 128 forced greedy tokens, all K/V resident; per-frontier cells are medians of three fresh processes, and a frontier's rate is its last chunk's (attention grows with the frontier). Run means span 711.7–712.1 prefill and 13.94–14.09 decode. Three matched runs of the first serving build give 619.4 / 12.26: the optimization rounds (shared Q8_1 quantization, a ping-pong NVFP4 attention tile, tensor-core decode attention, grouped decode GEMVs) add +14.9% / +13.9%. One GB10, CUDA 13.5.37, 300–2,200 MHz clock policy; PSI 0 throughout. Raw runs and protocol, optimization report.
Against the MQ87 release (8K + 64: the first 8,192 tokens prefilled whole, then 64 greedy tokens, fresh processes): this release runs 1,060.8–1,064.6 prefill / 15.40–15.72 decode tok/s, MQ87 641.94–644.78 / 13.07–13.34, 1.65× prefill and 1.16× decode. Decode is bound by what a token reads: 10.35 GB of Q8_0 backbone (the same as MQ87's), 3.11 GB of routed experts and the K/V of every cached position.
After the open the trunk and the CUDA runtime hold 81.34 GiB of the ~117.6 GiB a 128 GB Spark reports available.
The native 524,288-token bank (34.31 GiB) is refused at the default 4 GiB floor; with the floor lowered to 1 GiB
both of ds4-dfm-rs's memory quotes pass, but allocating the bank's pages pushed the host into reclaim (memory PSI
41%) before it finished. One Spark serves 425,984 tokens in one bank (-c 425984, 2.25 GiB spare after the
open): a 417,942-token prompt with two codes planted at 15% and 85% of the text came back with both, in order
(cold prefill 32 min at 215.9 tok/s, then 5.3 tok/s decode at that depth), and the same request again from the
live state cached 417,941 tokens and answered in 0.45 s. Available memory stayed at or above 6.95 GiB with memory
PSI 0 throughout.
| File | |
|---|---|
release.json |
parts, roles, residency, sizes, SHA-256, the K/V contract |
layer-LL-experts.gguf ×58, body-nonexpert.gguf, embed-tokens-q8_0.gguf |
the parts |
config.json, tokenizer.json, tokenizer_config.json, special_tokens_map.json, generation_config.json |
the source revision's files, unchanged |
chat_template.jinja |
IFM's at 7a17b47a (main after the weights' d33e3ae4: the same template with a text-part normalization macro), unchanged |
tensor-manifest.json |
every stored tensor and every source tensor's disposition |
FORMAT.md, RECIPE.md, SOURCE.md, EVALUATION.md, memory-budget.json |
byte contract, recipe, provenance, measurements, the byte budget |
evaluation/ |
the held-out summary and the reference-output index |
conversion-receipts/, calibration/, tools/ |
per-part records, the calibration manifest, the scripts that produced everything |
assets/ |
the DGX Spark speed plot |
SHA256SUMS |
every file |
set -e
# 1. Download and verify the release (about 88 GB)
hf download Baekpica/K2-Horizon-375B-A23B-hVQ-GGUF --local-dir K2-Horizon-375B-A23B-hVQ-GGUF
(cd K2-Horizon-375B-A23B-hVQ-GGUF && sha256sum -c SHA256SUMS)
# 2. Build ds4-dfm-rs and serve the largest context one 128 GB Spark holds
git clone https://github.com/Baekpica/ds4-dfm-rs.git && (cd ds4-dfm-rs && make cuda-spark)
./ds4-dfm-rs/ds4-server --cuda -m K2-Horizon-375B-A23B-hVQ-GGUF -c 425984 --host 0.0.0.0 --port 8000
The server provides OpenAI-style /v1/chat/completions, /v1/completions and /v1/responses, and
Anthropic-style /v1/messages, with tool calls. Requests think unless they set reasoning_effort: "none" (or
Anthropic thinking: {"type": "disabled"}). Other plans:
# Two concurrent banks at 131,072 tokens (three fit with --max-seqs 3)
./ds4-dfm-rs/ds4-server --cuda -m K2-Horizon-375B-A23B-hVQ-GGUF -c 131072
# Disk KV across restarts; or print the memory quote only
./ds4-dfm-rs/ds4-server --cuda -m K2-Horizon-375B-A23B-hVQ-GGUF -c 425984 --kv-disk-dir ~/.cache/ds4/k2h-kv
./ds4-dfm-rs/ds4-server --cuda -m K2-Horizon-375B-A23B-hVQ-GGUF -c 425984 --check-config
The ds4-dfm-rs K2-Horizon hVQ guide has the memory plan, every flag and the measurements behind them.
reasoning_effort low and medium render the template's high prompt in ds4-dfm-rs.The weights are derived from K2-Horizon-375B-A23B, released by IFM under the
Apache License 2.0; this conversion keeps that license (LICENSE).
IFM/K2-Horizon-375B-A23B