DeepSeek-V4.1-Flash-1017-U312-Thor

This is DeepSeek-V4.1-Flash-1017 cut to 312 of 384 routed experts per layer. The kept experts are quantized to about 1.77 bits per weight, and the dense weights are served from an NVFP4 overlay. It is stored in the thor-v1 layout for one 128 GB NVIDIA Jetson AGX Thor, with the Engram tables read per token from NVMe.

It is the recommended Thor build, replacing REAP192-Thor. It traded fewer bits per expert for more experts kept, at about the same bytes. In the pre-registered S10 evaluation it is closer to the unpruned model than REAP192-Thor on every measure, and it passes more of the 21-suite task set. Its one measured regression is looping on long code generation (see Limitations).

Update 2026-12-03: GPTQ overlay (lever 1). The repository now also ships overlay_nvfp4_gptq/, the same NVFP4 format and bytes with GPTQ-rounded codes. In a pre-registered A/B on the same 69 held-out rows it is closer to the unpruned model than the original RTN overlay (kl32 0.4730 vs 0.4901, d −0.0172, 95% CI [−0.0244, −0.0103]) at the same speed (8K decode 25.08 vs 25.16 tok/s). It is the recommended overlay; see Lever 1: GPTQ overlay. The S10 numbers below were measured with the RTN overlay (overlay_nvfp4/), which stays in the repository unchanged.

Every number on this card was measured on a Jetson AGX Thor and is copied from the reports linked below.

Model overview

Base model deepseek-ai/DeepSeek-V4.1-Flash-1017 at 1bae0e1088993b9b82de08f59de5be5a34e42170
Routed experts 312 of 384 per layer, 6 active, plus 1 shared expert. Keep-set fingerprint 3c866f2d… (keepset.json; the server reports the model as U312@3c866f2d)
Routed experts, precision 12,480 kept expert slots: 12,359 IQ1_M, 77 MXFP4 (bit-exact from the source), 27 IQ2_XXS, 13 IQ2_XS, 4 Q3_K. 97,564,262,400 bytes (90.9 GiB), 1.767 bpw on average. The per-layer allocation is in thor.json
Dense path the base checkpoint's FP8/BF16 tensors in layer-NN.safetensors, served from an NVFP4 overlay (40 layer files, 3.42 GiB each set): overlay_nvfp4_gptq/ (GPTQ-rounded, recommended, lever 1) or overlay_nvfp4/ (RTN, 3,668,904,096 bytes; all S10 results below use it)
Speculative-decoding layers the base model's 3 DSpark/MTP layers, unchanged (mtp-0..2.safetensors)
Vision the base model's ViT and aligner, BF16, unchanged (vision.safetensors)
Size on disk build 116,322,645,220 bytes (108.3 GiB), plus 3.42 GiB per overlay (only one is loaded)
Healing none (unhealed; no gain folded in)
Licence MIT, inherited from the base model

thor.json is the layout manifest: per-file bytes and sha256, per-tensor types, and the per-layer pools. overlay_nvfp4/MANIFEST.json and overlay_nvfp4_gptq/MANIFEST.json list each overlay's files, bytes and sha256. d2-tables.safetensors holds the codebook tables for the IQ1_M/IQ2 expert pools. reap_keepset.json is a byte-identical copy of keepset.json under the name the start script expects.

Evaluation (S10, measured)

These comparisons were all registered before their data. Full write-up: docs/S10_WRITEUP.md. Raw per-token and per-item scores: DeepSeek-V4.1-Flash-1017-U312-eval-scores. A192 is REAP192-Thor; FA206 is an alternative 206-expert build that was not published.

L1: teacher-forced closeness to the unpruned model. 69 held-out text rows, 521,895 tokens. kl32 is KL(teacher ‖ build) over the teacher's top-32 tokens; lower is closer.

U312 A192 FA206
kl32 0.490 0.764 0.648
top-1 agreement 0.793 0.743 0.755

d(U312 − A192) = −0.274 [−0.371, −0.186] (95% row-cluster CI). U312 is better or tied in every bucket; the largest gain is multilingual (0.437 vs 1.658).

L1b: tool-call decision tokens. 130 held-out rows, 2,122 tool calls, scored on the tokens that decide the call.

tokens U312 kl32 / top-1 A192 kl32 / top-1 d (U312 − A192)
all decision tokens (38,561) 0.0649 / 0.9447 0.1469 / 0.9198 −0.0820 [−0.1102, −0.0527]
tool name 0.0012 / 0.9989 0.0033 / 0.9983 −0.0021 [−0.0041, −0.0007]
argument key 0.0117 / 0.9925 0.0185 / 0.9923 −0.0068 [−0.0110, −0.0031]
argument value 0.1022 / 0.9122 0.2328 / 0.8721 −0.1306 [−0.1644, −0.0893]
end of call 0.0065 / 0.9979 0.0139 / 0.9959 −0.0074 [−0.0131, −0.0025]

L2: free-running answers. 21 suites, 2,472 items per build, served by v41_server, chat mode, greedy, max_tokens 4,096.

pool U312 A192 FA206
domain (1,922 binary items) 0.460 0.407 0.411
guard (250 items: IFEval, MMLU-Pro, tool-call format) 0.816 0.744 0.780
truncated at max_tokens (2,464 items with a finish reason) 0.163 0.116 0.155
  • U312 vs A192: domain McNemar p = 8.4e-08; guard p = 0.0064.
  • Significantly better per suite (q < 0.05): CTIBench RCM 0.64 vs 0.40, CTIBench VSP 0.32 vs 0.15, MedCalc 0.393 vs 0.247, MedXpertQA 0.313 vs 0.127, Qiskit HumanEval 0.355 vs 0.138.
  • Significantly worse per suite: KernelBench L1, 0.18 vs 0.32 (q = 0.017).

Lever 1: GPTQ overlay (measured)

The gate was registered before any data (docs/levers/LEVER1_GPTQ_OVERLAY.md): keep it only if the 95% CI of the held-out kl32 difference is below zero and 8K AR decode stays at or above 24.0 tok/s. Codes are GPTQ-rounded with the RTN scales kept, so the format, bytes and kernels are unchanged. Hessians came from 49,152 tokens of 6 held-in calibration rows, token-disjoint from every scored row. Both arms were re-run fresh on the same engine over all 69 S10 L1 held-out rows (521,895 tokens); the control reproduced the S10 U312 kl32 (0.4901) exactly. Result: docs/levers/LEVER1_RESULT.md.

RTN overlay (control) GPTQ overlay d (GPTQ − RTN) [95% CI]
kl32 vs the unpruned model, 69 rows 0.4901 0.4730 −0.0172 [−0.0244, −0.0103]
top-1 agreement 0.7928 0.7984
8K AR decode, tok/s 25.16 25.08 floor 24.0

Per bucket (5–9 rows each, informational only), 9 of 11 buckets favour GPTQ; the largest gain is on the general bucket (−0.057). Math (+0.006 [−0.001, +0.013]) and the one-row knowledge bucket are flat. The task-level suites (L1b, L2) were not re-run with the GPTQ overlay.

Speed (measured, Jetson AGX Thor, one stream, greedy)

context plain decode DSpark speculation, K=3
8K 24.9 tok/s 29.0 tok/s
200K 23.4 tok/s 28.0 tok/s
  • Speculative output was token-identical to plain decoding in these runs.
  • Prefill: 324 tok/s at 8K, and 360 tok/s on the 200K prompt. Prefill is slower than REAP192-Thor's K-quant experts (about 556 tok/s at 8K).

Quickstart

The server and its start script are in cuda/ of the pipeline repository. The engine targets sm_110a (Jetson AGX Thor) only and needs CUDA 13 and liburing.

# 1. this repository (weights, NVFP4 overlay, tokenizer)
hf download patrickbdevaney/DeepSeek-V4.1-Flash-1017-U312-Thor --local-dir ~/models/DeepSeek-V4.1-Flash-1017-U312-Thor

# 2. Engram row files on local NVMe (see below), at $CKPT/engram_rows or ENGRAM_DIR

# 3. build and start
git clone https://github.com/patrickbdevaney/deepseek-v4.1-flash-reap-thor && cd deepseek-v4.1-flash-reap-thor/cuda
scripts/build_v41.sh v41_server
CKPT=~/models/DeepSeek-V4.1-Flash-1017-U312-Thor ./start.sh   # GPTQ NVFP4 overlay on, DSpark K=3 on, 32K context

The evaluation launched v41_server directly with the arguments that start.sh passes (--ckpt, --keepset, --engram, --spec 3, DSV4_NVFP4_OVERLAY set), at --seqmax 65536. start.sh picks overlay_nvfp4_gptq/ when it is present (set OVERLAY_DIR=$CKPT/overlay_nvfp4 to reproduce S10 exactly). start.sh itself was not re-run against this build. The server provides an OpenAI-style /v1/chat/completions endpoint with streaming, tool calls and image input. Don't start it beside another model-loading process: on Thor's unified memory that can hard-reboot the board.

Engram row files (required, not included)

The two Engram tables are not pruned and are not in this repository. They are the same row files that REAP192-Thor uses: two .v41rows files, 202,758,040,592 bytes together, on a local NVMe drive. They are built once from the base model's shards 47 and 48 with ops/s09_engram_rowfile.py. The REAP192-Thor card lists the shard hashes and the steps.

Limitations

  • Loops on long code generation. U312 truncates more often than A192 (0.163 vs 0.116). All of the excess is in code-generation suites, which had 270 truncations, 155 of them repetitive-tail loops, against A192's 100 and 40 over 882 items. That costs it KernelBench L1. Outside code generation it truncates less than A192 (132 vs 187). For long code output, use a repetition stop or a lower max_tokens. A recovery adapter is planned but has not been run.
  • What L1 and L1b measure. They are teacher-forced, so they measure closeness to the unpruned model, not task success. 73% of the L1b tool calls come from short tool episodes, not long agentic traces.
  • How L2 was run. Chat mode only (no thinking), one greedy sample per item, a 4,096-token cap. The loop count uses a heuristic.
  • Long context. Speed was measured to 200K. Quality was not evaluated past the held-out rows' lengths.
  • Runtime lock-in. Only the CUDA server above reads the thor-v1 layout with IQ1_M/IQ2 expert pools, and it targets Jetson AGX Thor (sm_110a). The older standalone deepseek-v4.1-flash-cuda-server repository is not known to load this build. There is no GGUF.
  • No config.json; the architecture lives in thor.json.

License & attribution

MIT, the same as the base model. The weights are derived from DeepSeek-V4.1-Flash-1017 by DeepSeek-AI. Its licence is copied unchanged in LICENSE.

Citation

@misc{devaney2026dsv41u312thor,
  title        = {DeepSeek-V4.1-Flash-1017-U312-Thor: a 312-of-384 expert DeepSeek-V4.1-Flash-1017 at 1.77 bpw for one Jetson AGX Thor},
  author       = {Patrick Devaney},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/patrickbdevaney/DeepSeek-V4.1-Flash-1017-U312-Thor}}
}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for patrickbdevaney/DeepSeek-V4.1-Flash-1017-U312-Thor

Quantized
(263)
this model

Dataset used to train patrickbdevaney/DeepSeek-V4.1-Flash-1017-U312-Thor