A 88.00 GiB GVQ1 conversion of Sage-S2.1-Flash for ds4-dfm-rs on DGX Spark. The checkpoint has 45 trunk blocks, 288 experts per routed block, a 24-block vision tower, a one-layer MTP drafter and a configured context of 1,048,576 tokens. All nine original scientific projectors are included. The serving guide covers projected prompts and the upstream CIF workflow. Upstream model
| Weights | Storage |
|---|---|
| Routed experts in layers 3–17, 22, 27, 41 and 44 | R13+8, 2.625 index bits per weight |
| Other 23 routed layers | R13, 1.625 index bits per weight |
| Selected nonexpert matrices | Q4_K on 316 matrices |
| Other language, routing and state tensors | Dedicated GVQ1 tensors |
| Vision and MTP | Full vision tower and the separate draft layer 45 |
Layer indices start at zero. The allocation follows the earlier GLM sensitivity study. Each checkpoint learns its own codebooks. hVQ uses its routed inputs from 566,932 tokens across 828 sequences to estimate full input correlations. Two sequential assignment passes propagate each block’s error to later input columns and refit the stored row gains. Calibration record · Conversion recipe · GLM layer selection
On 34 held-out sequences, hVQ's mean next-token KL was 20.4% lower than vanilla VQ's. hVQ had lower KL on 33 of the 34 sequences. hVQ had higher perplexity, and the paired 95% interval for the NLL difference lies above zero.
| Metric | Vanilla VQ | hVQ | hVQ − vanilla (paired 95% interval) |
|---|---|---|---|
| Next-token KL vs source ↓ | 0.9009 | 0.7169 | -0.1840 [-0.2511, -0.1249] |
| Source top-1 agreement ↑ | 73.84% | 78.54% | +4.70 pp [+4.00, +5.36] |
| Next-token NLL ↓ | 2.4214 | 2.7428 | +0.3214 [+0.1868, +0.4617] |
| Perplexity ↓ | 11.262 | 15.531 | +4.269 [+1.599, +10.232] |
| Final hidden-state cosine ↑ | 0.8200 | 0.8748 | +0.0547 [+0.0498, +0.0602] |
| Routed-output relative L2 error ↓ | 0.4335 | 0.3581 | -0.0754 |
The reference is the original Sage-S2.1-Flash checkpoint. Both complete 56-part GGUF directories passed the ds4 loader. They contain the same 56,297 tensor layouts and 94,483,348,344 bytes of tensor payload. Both use 19 R13+8 layers, 23 R13 layers, identical nonexpert parts and the same BF16 reference forward. Vanilla retrains its E4M3 codebooks solely on this checkpoint’s weights using the historical GLM recipe. hVQ trains its own codebooks and applies calibration-based correlated error feedback. The scorer uses natural logarithms and weights every one of the 24,724 next-token positions equally. Top-1 is the fraction of positions where the predicted token matches the source. The original's NLL is 2.6734 and perplexity is 14.489. Hidden cosine averages the pre-normalization final state over 24,758 positions. Intervals are percentiles of 10,000 paired whole-sequence bootstrap resamples. Routed error fixes the original inputs, top-8 IDs and gates, takes the median relative L2 error on every token in a layer, and averages across 42 layers. Its delta is descriptive. These measurements cover teacher-forced fidelity on this corpus. Per-case results, counts and uncertainty
| Held-out group | Cases | Scored tokens | Vanilla KL | hVQ KL | Vanilla top-1 | hVQ top-1 |
|---|---|---|---|---|---|---|
| General text | 9 | 6,217 | 1.153 | 0.994 | 69.2% | 73.3% |
| Chat and instructions | 8 | 5,542 | 0.491 | 0.347 | 77.7% | 82.4% |
| Math, science and reasoning | 7 | 5,258 | 0.649 | 0.543 | 80.5% | 84.0% |
| Code and SWE | 7 | 5,150 | 1.314 | 1.035 | 69.3% | 75.1% |
| Tool use and agent prompts | 3 | 2,557 | 0.862 | 0.561 | 72.5% | 78.6% |
Sage served on one DGX Spark at its native 1,048,576-token context with --mtp-mode on --mtp-draft 3 --mem-floor-gb 4. Its serial text and image session used 2,048-row prefill chunks. It passed all 11 HTTP checks, including Korean streaming, separate reasoning, a tool call and its follow-up, image input and the completions, messages and responses endpoints. A 641-token follow-up reused 633 tokens. At an 8,192-token context, the CLI serving checklist passed all ten tested reuse, disk, snapshot and bank items.
A separate chat request sent 900,068 prompt tokens with zero cached tokens. Sage returned the identifier planted in the middle verbatim, ORCHID-7324, and stopped after seven tokens. Time to first token was 873.9 seconds.
Text and equivalent BF16 input rows produced the same 12 greedy tokens. All three high-margin text probes matched the reference top-1. The client-projected video reproduced the conversion-host 24-token continuation. The server also accepted the projected silicon CIF but generated a different continuation. The embedded tower recognized the colored shapes in the HTTP test and called a solid blue square black on a separate 112-pixel probe.
Build and serve · Release checksums
The median run improved by 12.0% in incremental prefill and 8.6% in decode across 2K–64K. Decode improved at 23 of 32 frontiers.
Each of three fresh processes per build read the same text in 2,048-token increments. Each frontier generated 128 greedy tokens, then restored the prompt state for the next increment. The graph shows all 32 frontiers, with the observed run range shaded.
| Context¹ | Prefill before (tok/s) | Prefill after (tok/s) | Decode before (tok/s) | Decode after (tok/s) |
|---|---|---|---|---|
| 2K–64K, median of run means | 1,098.0 | 1,230.3 | 29.94 | 32.51 |
| 2K | 991.8 | 1,071.4 | 28.00 | 29.24 |
| 8K | 1,126.0 | 1,247.2 | 33.92 | 33.92 |
| 16K | 1,121.8 | 1,239.9 | 33.66 | 35.40 |
| 32K | 1,104.2 | 1,241.8 | 36.85 | 30.55 |
| 64K | 1,075.0 | 1,225.1 | 26.66 | 33.56 |
¹ All throughput values and the graph on this card were measured on Sage-S2.1-Flash hVQ. Swift1.5-GLM-5.3-Flash hVQ and Nex-N2.6 hVQ share its tensor shapes and execution kernels. Draft acceptance and absolute decode speed depend on the model and generated text.
The host was one GB10 with CUDA 13.5 and clocks limited to 300–2,200 MHz. The original media-enabled build used two fixed MTP drafts. The measured build used at most 3 drafts and the default margin of 3.0. Measured runtime · Rounds, long-context curve and raw sweep data
Prefill uses warp-specialized routed experts, skips unused mHC output, and scores and selects attention pools on the GPU. For comparison, DS4_GLMVQ_MMA8W=0, DS4_GLMVQ_SPLIT_CUR=1, DS4_GLMVQ_INDEX_WALK=0 and DS4_GLMVQ_TOPK_RADIX=0 select the earlier paths. DS4_GLMVQ_Q4_GROUP=0 separates the one-row Q4_K projections. --mtp-margin 0 restores fixed draft depth.
Each build extended one Sage session to 1,040,384 tokens with 2,048-row native chunks and no generated tokens. Each row reports the added prompt tokens at that frontier.
| Context tokens¹ | Added tokens | Prefill before (tok/s) | Prefill after (tok/s) |
|---|---|---|---|
| 65,536 | 65,536 | 1,094.3 | 1,231.3 |
| 262,144 | 65,536 | 962.9 | 1,134.6 |
| 524,288 | 65,536 | 745.9 | 1,015.5 |
| 786,432 | 65,536 | 635.1 | 927.5 |
| 1,040,384 | 57,344 | 556.6 | 856.7 |
Cumulative prefill time across all 16 increments fell from 1,399.1 to 1,032.0 seconds. These times exclude model loading and tokenization.
All 56 GGUF parts passed ds4's directory validation, including part hashes, embedded codebook and tensor payload checks, and binding against the GLM topology. On an RTX PRO 6000 Blackwell, the released GGUF served greedy text, two still images and a two-second video projected by the client, plus a projected silicon CIF. A plain text request and its BF16 input embeddings returned the same generated token IDs. With a 512-token context and MTP draft depth two, the server proposed 96 draft tokens and accepted 68. Native greedy top-1 matched the dequantized hVQ reference on 3 of 3 prespecified high-margin text probes. RunPod serving measurements
Shanghai Artificial Intelligence Laboratory declares MIT for the source model. The repository includes the GLM and YoungAi notices. Source license statement · GLM notice · YoungAi notice
projectors/sage-s2.1-flash/protein-seq/mpbind/projector.safetensors 27 MiBprojectors/sage-s2.1-flash/rna/ncrna/projector.safetensors 24 MiBprojectors/sage-s2.1-flash/ecg/phu01/projector.safetensors 19 MiBprojectors/sage-s2.1-flash/eeg/neu06/projector.safetensors 18 MiBprojectors/sage-s2.1-flash/xrd/simxrd/projector.safetensors 18 MiBprojectors/sage-s2.1-flash/protein-struct/psr/projector.safetensors 18 MiBprojectors/sage-s2.1-flash/cif/jarvis/projector.safetensors 16 MiBprojectors/sage-s2.1-flash/spectra/qm9s/projector.safetensors 16 MiBprojectors/sage-s2.1-flash/dna/splice/projector.safetensors 4 MiBinternlm/Sage-S2.1-Flash