[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111812":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":38,"updatedAt":39,"readmeContent":40,"aiSummary":41,"trendingCount":14,"starSnapshotCount":14,"syncStatus":42,"lastSyncTime":43,"discoverSource":44},111812,"DeepSeek-V4.1-Flash-1017-FP8-abliterated-4x-RTX-PRO-6000","hanxiao\u002FDeepSeek-V4.1-Flash-1017-FP8-abliterated-4x-RTX-PRO-6000","hanxiao","Abliterated DeepSeek-V4.1-Flash-1017 (FP8 dense, FP4 experts) on 4x RTX PRO 6000 with vLLM-Moet r21, DSpark + FLy verification and top_p 1.0: 463 tok\u002Fs single-stream agent decode at 30k-120k context, 1082 tok\u002Fs over 8 streams, 1M context, Flex-start GCE VM",null,"Python",62,11,1,0,6,43.84,"Other",false,"main",true,[22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"abliterated","blackwell","deepseek","deepseek-v4","flex-start","fly","fp4","fp8","gcp","llm-inference","moe","rtx-pro-6000","speculative-decoding","vision-language-model","vllm","vllm-moet","2026-11-12 05:43:01","2026-11-16 07:36:03","# DeepSeek-V4.1-Flash-1017 abliterated on 4x NVIDIA RTX PRO 6000\n\nWe serve an abliterated DeepSeek-V4.1-Flash-1017 with vLLM-Moet r21, DSpark speculative decoding and FLy\nverification on one Compute Engine `g4-standard-192` VM, behind a TLS proxy with a Bearer key. This\nrepository holds the scripts that create the VM, prepare it, serve the model, restore it after a stop,\nand test it, plus the measurements that got the service from 371 to 463 tok\u002Fs on one stream and\n1,082 tok\u002Fs over eight streams (`work\u002F`).\n\n| | |\n| --- | --- |\n| Model | [`mrfakename\u002FDeepSeek-V4.1-Flash-1017-abliterated`](https:\u002F\u002Fhuggingface.co\u002Fmrfakename\u002FDeepSeek-V4.1-Flash-1017-abliterated) at revision `517efab9ccfef7f714dbd7d679f181a86f43ccf9`, served as `DeepSeek-V4.1-Flash-1017-abliterated` |\n| Weights | the native 1017 layout, 48 shards, 510.3 GB: FP8 E4M3 dense weights with UE8M0 32x32 block scales and FP4 routed experts (`quant_method: fp8`, `expert_dtype: fp4`) |\n| Engine | [vLLM-Moet](https:\u002F\u002Fgithub.com\u002Fkacper-daftcode\u002FvLLM-Moet) `b0dc737` on vLLM nightly `df3bd094` (image `vllm-moet-sm120:dsv41-nightly-df3bd094-r21`, built on the VM), with two tokenizer patches |\n| Speculation | DSpark, 5 draft tokens from the MTP layers of the checkpoint, **FLy verification at window 1** (`rejection_sample_method: fly`, `fly_window_size: 1`) |\n| KV cache | `fp8_ds_mla` records and an FP8 indexer cache, a pool of 4.19M tokens |\n| Sampling | temperature 1.0, **top_p 1.0** (server-side `--override-generation-config`); thinking on and `reasoning_effort: max` at the server, so every client gets the same thing by default |\n| Batching | 8 sequences, 8,192-token prefill chunks, CUDA graphs up to batch 128 |\n| GPUs | 4x RTX PRO 6000 Blackwell Server Edition (96 GB, PCIe, no NVLink), tensor parallel 4 |\n| Context | 1,048,576 tokens per request |\n| Decode, coding agent | **463.5 \u002F 460.1 tok\u002Fs** on one stream at 30k \u002F 120k tokens of context, thinking at max effort (the block-rejection predecessor measured 377.7 \u002F 358.3) |\n| Decode, aggregate | 458 (1 stream) \u002F 580 (2) \u002F 704 (3) \u002F **1,082 (8) tok\u002Fs** at 30k context, codebench shape |\n| First token | 1.40 \u002F 2.95 \u002F 5.99 s at 30k \u002F 60k \u002F 120k; 0.15 to 0.31 s on a follow-up turn over the cached prefix |\n| Features | thinking (effort max by default), parallel tool calls, image input and SSE streaming over the Anthropic Messages API; OpenAI chat completions too |\n| Host | Flex-start VM in a zone with capacity, $9.00 per hour |\n\n```bash\ncp .env.example .env            # set DS41_API_KEY, and VM_NAME for a new deployment\nbash gcp\u002Fprovision.sh           # firewall, Flex-start VM in the first of 46 zones, static IP, r21, TLS\nbash scripts\u002Fsmoke.sh           # 9 checks against https:\u002F\u002F\u003Cstatic-ip-with-dashes>.sslip.io\n```\n\n## Hardware\n\nCloud Run attaches at most one GPU to an instance, so a 4-way tensor parallel model needs a Compute Engine G4 VM.\n`g4-standard-192` has 4 RTX PRO 6000 cards, 192 vCPUs, 720 GB of memory and 16 local Titanium NVMe disks of\n375 GB, which are included in the price and must be attached as all 16 or none. The cards talk over PCIe:\n`nvidia-smi topo -m` shows two switch pairs, (0,1) and (2,3), with a NUMA hop between the pairs, so the default\nGPU order is as good as any other ring.\n\nThe VM runs `common-cu129-ubuntu-2404-nvidia-580-v20261019` (Ubuntu 24.04, driver 580.178.04-server-open,\nCUDA 13.0), to which `vm\u002Fvm-docker.sh` adds Docker and the NVIDIA container toolkit. We stay on the R580 branch,\nwhich Google recommends for G4; the release notes of 580.196, 595, 610 and 615 list no decode or prefill\nchanges for SM120.\n\nThe Server Edition cards run at their default power limit of 600 W, which is also the maximum. During\nsingle-stream decode they draw 280 to 397 W (318 W on average) at 2,400 to 2,415 MHz of a 2,430 MHz SM clock,\nwith `clocks_event_reasons` at 0x0 in every 1 s sample. The memory clock is fixed at 12,481 MHz and cannot be\noverclocked. Decode is limited by neither power nor clocks, so `nvidia-smi -pl` has nothing to raise.\nOn 2026-10-27 we turned ECC off on all four cards: decode stayed at 114 verify steps per second, codebench C1 and\nthe 4.19M-token KV pool did not change, and the driver reports the same 97,887 MiB per card, so we keep ECC on.\n\n## Checkpoint\n\nWe compared four abliterated builds of the 1017 release in its full format. Each card reports refusals on its\nown prompt set:\n\n| Build | Edit | Refusals after | KL, harmless | Format | Access |\n| --- | --- | --- | ---: | --- | --- |\n| **`mrfakename\u002F...-abliterated`** | rank-2 subspace removed from `attn.wo_b` and `ffn.shared_experts.w2` in 40 layers | chat 4\u002F100, thinking 9\u002F100 | **0.067** | native 1017 | public |\n| `pqhaz\u002F...-heretic` | one direction per block removed from `attn.wo_b` in blocks 2 to 39 | chat 1\u002F100 | 0.136 | native 1017 | public |\n| `dealignai\u002F...-UNCENSORED-FP8` | fine-tune of the base | | | FP8 | public |\n| `jcartu\u002F...-abliterated-lossless-CSF` | refusal direction inverted in `attn.wo_b` and `ffn.shared_experts.w2`, layers 4 to 36 | | | LiL CSF container | gated, no redistribution |\n\nWe serve the mrfakename build. It keeps the native file layout, which every engine here loads as is, and of\nthe builds with published numbers it has the lowest KL divergence on harmless prompts. It edits only the two\ndense residual writes. The routed experts, embeddings, Engram tables and MTP layers are bit-identical to the\nstock 1017, and the edited tensors were requantized to FP8 with their original block scales. The checkpoint\nkeeps the mixed precision of the release: dense and attention weights in FP8, routed experts in FP4. It answers\na step-by-step lock picking request, which the stock 1017 refuses.\n\n## Serving\n\n`vm\u002Fds41-start-r21.sh` starts the container with host networking, `--ipc host`, `seccomp=unconfined` and an\nunlimited `memlock`, and reads the served configuration from `\u002Fetc\u002Fds41\u002Fr21.env` (`vm\u002Fr21.env`):\n\n| Setting | Value |\n| --- | --- |\n| `--tensor-parallel-size` | 4 |\n| `--speculative-config` | `dspark`, 5 tokens, probabilistic drafts, **FLy verification at window 1**, block rejection off, drafter on b12x |\n| `--kv-cache-dtype`, indexer cache | `fp8_ds_mla`, FP8 |\n| `--max-num-seqs` | 8 |\n| `--max-num-batched-tokens` | 8192 |\n| `--max-cudagraph-capture-size` | 128 |\n| `--gpu-memory-utilization` | 0.94 |\n| `--max-model-len` | 1048576 |\n| `--moe-backend` | b12x |\n| `--default-chat-template-kwargs` | `{\"thinking\": true, \"reasoning_effort\": \"max\"}` |\n| `--override-generation-config` | temperature 1.0, **top_p 1.0** |\n| `--attention-config` | `indexer_tp_shard_min_rows` 2048 |\n| KV offload | none |\n| vLLM-Moet switches | fused b12x MoE, sparse MLA LDG, MXFP8 `lm_head`, P2P all-reduce (fused up to 8 rows), DFlash prep groups, deterministic candidate top-k, SWA decode and draft builds, MoE top-k sum add |\n| Prefix caching, usage in streams | on |\n| Listen | 127.0.0.1:8000, behind Caddy |\n\nTool calls need the encoding shipped with the checkpoint, so the start script mounts\n`encoding\u002Fencoding.py` of the checkpoint over `vllm\u002Ftokenizers\u002Fdeepseek_v41_encoding.py`. That file rejects text containing the\nimage placeholder token, while the vLLM tokenizer replaces every image part with exactly that token before it\ncalls the encoder, so `patches\u002Fencoding-1017-vllm.patch` disables the two checks (`vm\u002Fvm-encoding.sh`).\n`patches\u002Fdeepseek_v41-moet.patch` changes `vllm\u002Ftokenizers\u002Fdeepseek_v41.py` in three ways. It renders the\nplaceholder token inside text, reasoning and tool output as an ASCII look-alike, so a web page that contains the\ntoken cannot become an extra image slot that shifts every later image by one. It renders each real image as a\nunique sentinel first and reads the image order off the encoded prompt, which the 1017 encoder needs because it\ntakes no image order argument. It sets the default reasoning effort to max. With a 23-message agent request,\nthe model read the last image in 4 of 4 tries with the placeholder fix and in 0 of 4 without it.\n`vm\u002Fvm-r21.sh` builds the overlay from the image and keeps a copy on the boot disk.\n\n`\u002Fv1\u002Fmodels` answers before warm-up ends, so `vm\u002Fds41-ready.sh` waits for a real `\u002Fv1\u002Fmessages` call to\nreturn 200.\n\n\n### FLy verification at window 1, top_p 1.0: the served configuration (+22% single stream)\n\nDeployed at 2026-11-09T02:33:58Z with a wrapper that installs the config, restarts, waits up to 20\nminutes and rolls back to `\u002Fetc\u002Fds41\u002Fr21.env.pre-fast` if the container does not become ready\n(`work\u002FSTATUS.md`). It reported ready after 320 s and the KV pool is unchanged at 4,192,362 tokens.\n\nMeasured with the repo's own codebench workload, per-task matched pairs against a same-session\ncontrol on a second VM of the same type (`work\u002FRESULTS.md` has the raw runs):\n\n| config | 30k C1 tok\u002Fs | 120k C1 tok\u002Fs | accepted length | GSM8K-100 |\n| --- | ---: | ---: | ---: | ---: |\n| block rejection, top_p 0.95 (the previous config) | 377.7 | 358.3 | 3.45 \u002F 3.31 | 96% (reference) |\n| + `rejection_sample_method: fly`, `fly_window_size: 1` | 426.8 | 402.9 | 3.92 \u002F 3.76 | 97% |\n| + `top_p 1.0` | **463.5** | **460.1** | **4.24 \u002F 4.24** | **96%** |\n\nAggregate on the served config (three concurrent codebench streams per 30k context, 4,096 output\ntokens per request; per-stream decode then multiplied by the concurrency):\n\n| concurrency | per-stream tok\u002Fs | aggregate tok\u002Fs | TTFT |\n| ---: | ---: | ---: | ---: |\n| 1 | 458.3 | 458 | 1.35 s |\n| 2 | 289.8 | 580 | 2.12 s |\n| 3 | 234.7 | 704 | 2.78 s |\n| 8 | 135.2 | **1,082** | 6.13 s |\n\nAccepted length stays at 4.2-4.3 even at 8 streams, so the aggregate does not degrade with concurrency\nthe way it did with block rejection.\n\nThree settings in `vm\u002Fr21.env` do it; the launcher defaults stay at the old behaviour:\n\n    : \"${TOPP:=1.0}\"        # sampling top_p of --override-generation-config\n    : \"${REJ:=fly}\"         # block | standard | fly | synthetic\n    : \"${FLY_WIN:=1}\"       # fly_window_size, must be \u003C SPEC_TOKENS\n\nThe window is the lever. FLy's `can_defer` requires `pos + window \u003C num_draft_tokens`, so at k=5\nvLLM's default `min(6, k-1) = 4` lets only draft position 0 defer and measures -2%; window 1 lets\npositions 0-3 and measures +11 to +14% on its own. `top_p 1.0` alone is neutral (accepted 3.38) - the\n+8% it adds is an interaction with FLy: with the target's tail no longer truncated, the entropy gate\nfires on more positions. FLy is lossy, so it is gated on GSM8K-100 with thinking (96-97% in every arm\nagainst the 96% reference) and on the codebench quality pass rate.\n\nOn an essay prompt (900 tokens, no tools) the same config reads 377 tok\u002Fs decode against 264 on the\nprevious configuration, so the gain is larger on prose than on code - the target distribution is\nflatter there, which is where the top_p truncation of p costs the most.\n\nk=7 loses with and without FLy (-3 to -9%): two extra verified rows cost 1.2 ms and buy only +0.12\naccepted length. The default window and k=7 are the two traps.\n\n## Endpoint\n\nvLLM listens on 127.0.0.1:8000. Caddy terminates TLS on port 443 with a Let's Encrypt certificate for\n`\u003Cstatic-ip-with-dashes>.sslip.io`, a name that resolves to the IP it spells. It forwards a request only when\n`Authorization: Bearer \u003Ckey>` or `x-api-key: \u003Ckey>` matches, and answers 401 on every other request and path,\nincluding `\u002Fhealth` and `\u002Fmetrics`. Caddy writes no access log. The firewall rule `FIREWALL_RULE` opens TCP\n443 and 80 to the network tag `NETWORK_TAG`; port 80 serves only the ACME challenge and the redirect. A static\naddress keeps the name stable across stops. The site name is written into `\u002Fetc\u002Fcaddy\u002FCaddyfile` and\n`\u002Fetc\u002Fds41\u002Fdeploy.env`, so a new IP needs both updated.\n\n## Evaluation\n\nWe measure with three workloads. All count output tokens from `usage`, so thinking tokens are included, and\ncompute decode speed as output tokens divided by the time from the first token to the last.\n\n| Workload | Requests |\n| --- | --- |\n| codebench | the coding agent workload: `\u002Fv1\u002Fmessages` with tools, thinking at max effort, 30k \u002F 60k \u002F 120k tokens of context, 4,096 output tokens; C1 is one stream, C2 and C3 run two and three agents at once. A follow-up turn reuses the cached prefix. |\n| Fraser bench | the vLLM-Moet benchmark: one fixed 2,678-token code-generation prompt, thinking off, temperature 0, 2,048 output tokens, one stream, a cache-busting line per request |\n| bench3 \u002F `scripts\u002Fbench.mjs` | a 1,500-word essay with thinking on, the Fraser prompt with thinking on and off, and 8 or 16 concurrent essays, 2,048 output tokens each |\n\ncodebench C1 varies by about ±10% per request with the task, so we compare medians of at least six runs and\ncheck the step rate (decode speed over accepted length), and we drop runs during which other clients were\nactive.\n\nEvery table below names the configuration it was measured with. Two revisions have been served, and the\nhistorical tables predate the second, so read a number together with its revision:\n\n| revision | verification | sampling | single-stream codebench, 30k \u002F 120k |\n| --- | --- | --- | --- |\n| `pre-fast` | block rejection sampling | `top_p = 0.95` | 377.7 \u002F 358.3 |\n| **served** | **FLy, window 1** | **`top_p = 1.0`** | **463.5 \u002F 460.1** |\n\nAnything labelled \"served\" below the FLy section means the first revision; the FLy section is the\nsecond. A single-stream comparison is only valid per task: codebench task 0 is faster than tasks 1 and 2,\nso compare per-task ratios against a same-session control, never arm medians.\n\n### Reproducing a benchmark\n\nThe harness is `bench\u002F` on the serving VM (copied from the deployment) and the experiment scripts are in\n`work\u002Fvm\u002F`:\n\n- `exp.sh TAG ENVFILE PLAN [EXTRA]` installs one config file as `\u002Fetc\u002Fds41\u002Fr21.env`, restarts the\n  container, waits for ready, runs `codebench.py` and optionally `thinkbench.py`, and records the\n  environment, the KV pool, the load time and the GPU clocks in `meta.txt`.\n- `sweep.sh MANIFEST` runs a list of `TAG|ENVFILE|PLAN|EXTRA|XENV` arms unattended; `TAG\n  ENVFILE PLAN EXTRA` is one arm.\n- The quality gate is `\u002Fopt\u002Fbench\u002Fgate.sh` (smoke) plus `\u002Fopt\u002Fbench\u002Fevalq.py gsm8k ... 100`\n  (GSM8K-100 with thinking, 16 concurrent).\n\nPer-request JSONL for every arm and the full measurement log are in `work\u002FRESULTS.md` and `work\u002Fbench\u002F`.\n\n### Engines\n\nThree engines served this checkpoint on the same hardware: Local Inference Lab vLLM (LiL,\n`ghcr.io\u002Flocal-inference-lab\u002Fvllm@sha256:fd74019f...` with DSpark k = 3 and adaptive verification at cost scale\n0.5), vLLM-Moet r13 (`b522a06`) and vLLM-Moet r21 (`b0dc737`). The first table compares LiL and r13 on one VM\nwith bench3, reasoning effort high, medians of five runs:\n\n| Workload | LiL, k3 | r13, k3 | r13, k5 |\n| --- | ---: | ---: | ---: |\n| essay, 1 stream, tok\u002Fs | 209.2 | 237.5 | **252.7** |\n| code, thinking on, tok\u002Fs | 285.3 | 313.6 | **383.9** |\n| code, thinking off, tok\u002Fs | 346.8 | 395.7 | **513.2** |\n| 8 streams, total tok\u002Fs | 726.0 | **765.9** | 688.5 |\n| 16 streams, total tok\u002Fs | 1,018.4 | **1,142.6** | |\n| first token, 2,695-token prompt, s | 0.200 | **0.147** | **0.147** |\n| first token, 41,555-token prompt, s | 2.504 | 2.041 | **2.032** |\n| tokens per step, essay \u002F code | 2.08 \u002F 2.85 | 2.13 \u002F 2.79 | 2.28 \u002F 3.43 |\n| KV pool, tokens | **6,560,752** | 3,651,468 | 3,681,614 |\n\nLiL keeps the Engram tables on the local NVMe RAID (`ENGRAM_TABLE_MEMORY=disk`), which leaves 8.05 GiB of KV\nper card after 74.42 GiB of weights and gives the largest pool. On its own VM and endpoint, `scripts\u002Fbench.mjs`\nmeasured 166 to 211 tok\u002Fs on one stream and 710 to 722 tok\u002Fs at eight streams, and the smoke test found a needle\nin 109,683 tokens in 6.5 s. Our agent traffic is a few sessions at a time with thinking at max effort, so\nsingle-stream speed decides, and both Moet engines with k = 5 lead there.\n\nThe second table compares r13 and r21 on one VM with codebench (C1 medians of six runs, first token in seconds):\n\n| Config | C1 30k \u002F 60k \u002F 120k tok\u002Fs | First token 30k \u002F 60k \u002F 120k | Follow-up | C2 30k \u002F 60k \u002F 120k | KV pool |\n| --- | --- | --- | --- | --- | ---: |\n| r13, k5, FP8 KV | 367 \u002F 354 \u002F 349 | 1.40 \u002F 2.96 \u002F 5.99 | 0.15 \u002F 0.20 \u002F 0.30 | 254 \u002F 222 \u002F 193 | 4.19M |\n| r21, k7, FP4 KV, 64 GiB offload | 351 \u002F 344 \u002F 363 | 1.52 \u002F 3.23 \u002F 6.59 | 0.21 \u002F 0.25 \u002F 0.37 | 246 \u002F 202 \u002F 212 | 10.57M |\n| r21, k5, FP4 KV | 374 \u002F 369 \u002F **393** | 1.52 \u002F 3.22 \u002F 6.57 | 0.20 \u002F 0.25 \u002F 0.36 | 255 \u002F **246** \u002F 213 | **10.75M** |\n| **r21, k5, FP8 KV (served before FLy)** | 371 \u002F **375** \u002F 376 | **1.40 \u002F 2.95 \u002F 5.99** | **0.15 \u002F 0.20 \u002F 0.31** | **257** \u002F 210 \u002F **218** | 4.19M |\n\nThe served configuration decoded 1%, 6% and 8% faster than r13 at 30k, 60k and 120k with the same first-token\nlatency and the same KV pool. The FP4 KV record holds 2.5 times as many tokens and costs about 8% of prefill\nand 0.05 s per follow-up turn. With thinking off, codebench C1 runs at 507 to 516 tok\u002Fs on r13. A newer r13\nbuild, `69aa612`, measured within noise of `b522a06` (369 \u002F 360 \u002F 357 tok\u002Fs, 102 to 109 steps per second\nagainst 104 to 111). The DeepInfer-derived vLLM changes of October 2026 target SM100 and NVL72 systems; on\nthis hardware they are worth under 1% of decode (vllm#63293) and a few percent of first-token latency at 120k\n(vllm#62817), and confidence-scheduled verification, which vLLM-Moet measured on SM120, costs 14% of\nsingle-stream code decode.\n\n### Speculation and batching\n\nThese sweeps predate FLy and are what chose k = 5 and the 8-sequence limit. The served config is\nFLy at window 1, which beats the block-sampling configs at every k in the tables (see the FLy section\nabove), and it makes k = 5 win by a wider margin because FLy repairs the tail of the block rather than\nextending it. The sweep ran on r13 with codebench at 32 sequences (C1 medians of two or\nthree runs at 30k \u002F 60k \u002F 120k; C2 and C3 total tok\u002Fs at 60k):\n\n| Config | C1 tok\u002Fs | First token, s | C2 | C3 | Accepted length | KV pool |\n| --- | --- | --- | ---: | ---: | --- | ---: |\n| k3 | 304 \u002F 322 \u002F 310 | 1.42 \u002F 2.96 \u002F 6.00 | **239** | 175 | 2.83 to 2.94 | 3.68M |\n| k4 | 323 \u002F 352 \u002F 342 | 1.41 \u002F 2.96 \u002F 5.99 | 209 | 165 | 3.14 to 3.33 | 3.68M |\n| **k5** | 353 \u002F 379 \u002F 380 | 1.42 \u002F 2.96 \u002F 5.99 | 209 | 184 | 3.38 to 3.55 | 3.68M |\n| k6 | 346 \u002F 343 \u002F 359 | 1.41 \u002F 2.96 \u002F 6.00 | 194 | 161 | 3.43 to 3.55 | 3.68M |\n| k7 | 329 \u002F 356 \u002F 345 | 1.41 \u002F 2.96 \u002F 5.99 | 198 | 159 | 3.47 to 3.61 | 3.68M |\n| k5, chunk 16,384 | 353 \u002F 380 \u002F 366 | 1.35 \u002F 2.84 \u002F 5.79 | 213 | 186 | 3.35 to 3.60 | 1.98M |\n| k5, chunk 16,384, 4 sequences, graphs to 32 | 357 \u002F 366 \u002F 381 | **1.34 \u002F 2.84 \u002F 5.79** | 207 | 186 | 3.38 to 3.56 | 2.74M |\n| k5, chunk 16,384, FP4 KV | **364 \u002F 380 \u002F 387** | 1.37 \u002F 2.90 \u002F 5.90 | 204 | **187** | 3.44 to 3.53 | 2.85M |\n\nFive draft tokens give the best single stream on reasoning text. Longer drafts pay off only on predictable code:\non the thinking-off Fraser prompt, k = 7 reaches an accepted length of 5.45. A 16,384-token chunk saves 4% of\nprefill time and halves the KV pool, and a 32,768-token chunk leaves no memory for KV at all, so we keep 8,192.\nThe FlashInfer b12x MoE backend does not support the FP4 experts. The KV pool depends on the sequence limit:\n3.68M tokens at 32 sequences, 4.34M at 4 and 4.19M at 8, the limit we serve.\nOn 2026-10-27 we also tested the SubconsciousDev DSpark drafter, which retrains the attention layers of the official\none in the same format. It accepted 1-3% fewer tokens per step on reasoning text and 4% fewer on code, and decoded codebench C1\n2-6% slower, so we serve the official drafter.\n\n### Fraser bench\n\nThese rows predate FLy. They remain the reference for the Fraser shape and for the card-vs-card gap\n(the Server Edition runs 102 steps\u002Fs where the overclocked workstation cards run 127.8), but they are\nnot the served configuration's numbers.\n\nvLLM-Moet reports 680 tok\u002Fs (median of 40 runs, 741 best) on its Fraser bench for DeepSeek-V4.1-Flash on 4x RTX\nPRO 6000, at 127.8 steps per second and an accepted length of 5.34. Its recipe is r21 with DSpark k = 7, an FP4\nKV record (`nvfp4_ds_mla`) with an MXFP4 indexer cache, 64 GiB of host and disk KV offload, and workstation\ncards at 400 W with a GDDR7 overclock of +5,000 MHz. We ran the recipe and our configurations on one VM with our\nweights and tokenizer patches:\n\n| Config | Fraser tok\u002Fs | Steps\u002Fs | Accepted length | KV pool |\n| --- | ---: | ---: | ---: | ---: |\n| r13, k5, FP8 KV | 500 \u002F 517 | 107 | 4.7 | 4.19M |\n| r21 recipe: k7, FP4 KV, offload | **555** | 102 | **5.45** | 10.57M |\n| r21, k5, FP4 KV | 543 \u002F 537 | **113** | 4.7 | **10.75M** |\n| r21, k5, FP8 KV (served) | 534 \u002F 521 | 111 | 4.8 | 4.19M |\n\nDrafts are accepted as well here as on the reference host (5.45 against 5.34); the step rate is 102 against\n128 per second. The Server Edition cards already run at full clocks, and their fixed memory clock rules out the\noverclock, so 555 tok\u002Fs is the Fraser result of this hardware. The Fraser prompt with thinking on\nruns at 354 tok\u002Fs on r13 and 358 on the recipe, and our agent traffic is close to that case.\n\n### Quality\n\nThe served configuration passes the smoke test (9 of 9 over the public endpoint), needles at 110k and 214k\ntokens, a streamed thinking request, three parallel tool calls with valid JSON, an image combined with a tool\ncall, and the effort check (the prompt renders `Reasoning Effort: 100`). GSM8K-100 with thinking scores 96% on\nthe served k5 FP8 config with FLy at window 1 and threshold 0.3. It also scores 97% at threshold 0.1 and\n96% at threshold 0.5, and 96% at window 2, so the lossy verification did not move the score; it was 96%\non r13 and 97% on the FP4 KV recipe.\"\n Under greedy decoding on r13, two FP8 runs agree on 99 of 100\nfinal answers, and FP4 KV agrees with FP8 on 97. Of five multimodal tool tests, four pass on every\nengine. The fifth sends images inside tool results whose order differs from the calls: the Anthropic adapter of\nvLLM moves those images into a separate user message, so the pairing between image and call is lost.\n\n## Capacity and cost\n\nG4 capacity in the US regions was scarce. Every provisioning model we used:\n\n| Provisioning | Result |\n| --- | --- |\n| On demand, the 6 US zones where we had on-demand quota | 270 attempts over 75 min, all failed: 132 `stockout`, 131 `resource_availability`, 7 `gpu_availability` |\n| On-demand specific reservation, same zones, every 10 min | failed with `gpu_availability` and `ZONE_RESOURCE_POOL_EXHAUSTED` |\n| Calendar-mode future reservation | G4 is not supported |\n| Spot, one US zone | ran for 13 hours, then 7 preemptions, 6 of them within 73 min, followed by stockout |\n| Flex-start, one zone at a time | pending for over 2 hours |\n| **Flex-start, 46 zones at once** | capacity within minutes, in two or three zones at the same time, on both runs |\n\nFlex-start VMs run up to 7 days without preemption and then stop. They draw on the preemptible GPU quota of\nthe region and need `--discard-local-ssds-at-termination-timestamp=true` with local SSDs.\n`gcp\u002Fflex.sh` submits one request per zone, each valid for an hour and resubmitted when it expires. Because\nseveral zones can start a VM within the same minute, a coordinator keeps the first one, stops the loops, and\ndeletes the other candidates in several passes, since requests already submitted can still start. Boot disks\nare created with auto-delete, so a deleted candidate leaves nothing behind, and the disk of the winning VM is switched\nto keep.\n\nCloud Billing catalog prices for `g4-standard-192` (4 GPUs, 192 vCPUs, 720 GB), per hour:\n\n| Region | On demand | Spot | Flex-start |\n| --- | ---: | ---: | ---: |\n| us-west1 | 18.00 | 6.34 | 9.00 |\n| us-central1 | 18.00 | 6.65 | 9.00 |\n| us-west3 | 19.80 | 7.84 | 9.00 |\n| asia-south2 | 23.40 | 9.71 | 9.00 |\n| asia-southeast2 | 23.40 | 10.27 | 9.00 |\n\nFlex-start is 4 x $0.54783 per GPU + 192 x $0.024455 per vCPU + 720 x $0.002935 per GB, the same in every\nregion, or $1,512 for a full 7-day run. Committed use costs $12.42 per hour for one year and $7.92 for three\nyears in us-west1 and us-central1. The 16 local disks cost nothing on G4. The 400 GB hyperdisk-balanced boot\ndisk and the static IP add about $36 per month and remain billed while the VM is stopped.\n\nOne Flex-start VM serves this model with r21, k5, FP8 KV and 8 sequences. A second VM with r13 served as\nbackup until 2026-10-26.\n\n## Cold start and recovery\n\nOn a fresh VM, from the log timestamps:\n\n| Phase | Time |\n| --- | ---: |\n| VM create, driver, Docker, RAID0 over the 16 NVMe disks, hf cli | 1.5 min |\n| Weights, 510.3 GB (`hf download`, hf_xet high-performance mode, 48 workers, anonymous) | 261 s, 1.95 GB\u002Fs |\n| Encoding patch, Caddy and certificate | 1.8 min |\n| r21 image build from `Dockerfile.sm120-dsv41-nightly` | 12 min |\n| r21 start to ready (weights, kernel compilation, KV pool, CUDA graphs) | 7 min |\n\nLater starts take 6 to 8 minutes. The r21 kernel cache lives in `\u002Fdata\u002Fcache\u002Fr21`, mounted as `\u002Froot\u002F.cache`\nand `\u002Froot\u002F.deep_gemm`, with a 7 MB copy in `\u002Fvar\u002Flib\u002Fds41\u002Fr21-cache`.\n\nA stop discards the local disks: weights, Docker images and kernel caches. `vm\u002Fds41-boot.service` runs\n`vm\u002Fds41-boot.sh` on every boot. When the server is not up, it rebuilds the RAID, downloads the weights again,\nloads the r21 image from `\u002Fvar\u002Flib\u002Fds41\u002Fr21-image.tar.zst` (9.4 GB) on the boot disk, restores the kernel cache\nand the patched tokenizer files, and starts the engine named in `\u002Fetc\u002Fds41\u002Fengine`: `r21`, `moet` (r13) or\n`lil`. When the image of that engine is missing, it falls back to the next one, ending with the LiL image, which\n`vm\u002Fvm-download.sh` pulls from its registry. Its log is `\u002Fvar\u002Flog\u002Fds41-boot.log`.\n\n## Secrets\n\nThe scripts read two secrets from the environment, or from `.env`, which git ignores. Everything else is a\ncommitted default in `config.sh`.\n\n| Variable | Read by | Where it goes |\n| --- | --- | --- |\n| `DS41_API_KEY` | `gcp\u002Fprovision.sh`, `gcp\u002Fbootstrap.sh`, `scripts\u002Fsmoke.sh`, `scripts\u002Fbench.mjs` | over SSH stdin into `\u002Fetc\u002Fds41\u002Fenv` (`VLLM_API_KEY`, root, 0600) and `\u002Fetc\u002Fds41\u002Fcaddy.env` |\n| `HF_TOKEN` | `gcp\u002Fbootstrap.sh`, optional | `\u002Froot\u002F.hf_token` (0600), read by `vm\u002Fvm-download.sh` |\n\nOn the client side, keep the key in one place, such as the client config, and export it from there.\n\nA new deployment takes a new key, for example `echo \"sk-ds41-$(openssl rand -hex 24)\"`. The model repository\nis public, so the download needs no token.\n\n## Clients\n\npi takes a `baseUrl` and `headers` per model, so the model sits next to other models of a provider without a\nrouter:\n\n```json\n{\n  \"providers\": {\n    \"rtx\": {\n      \"api\": \"anthropic-messages\",\n      \"models\": [\n        {\n          \"id\": \"DeepSeek-V4.1-Flash-1017-abliterated\",\n          \"baseUrl\": \"https:\u002F\u002F\u003Cstatic-ip-with-dashes>.sslip.io\",\n          \"headers\": { \"Authorization\": \"Bearer \u003CDS41_API_KEY>\" },\n          \"contextWindow\": 1048576,\n          \"maxTokens\": 262144,\n          \"reasoning\": true,\n          \"input\": [\"text\", \"image\"]\n        }\n      ]\n    }\n  }\n}\n```\n\nAny Anthropic client works:\n\n```bash\ncurl https:\u002F\u002F\u003Cstatic-ip-with-dashes>.sslip.io\u002Fv1\u002Fmessages \\\n  -H \"Authorization: Bearer \u003CDS41_API_KEY>\" -H 'content-type: application\u002Fjson' \\\n  -d '{\"model\":\"DeepSeek-V4.1-Flash-1017-abliterated\",\"max_tokens\":2000,\n       \"messages\":[{\"role\":\"user\",\"content\":\"Reply with one word: pong\"}]}'\n```\n\nThinking is on by default. The reasoning effort maps low, high and max to 50, 75 and 100 on a 1-100 scale,\nthere is no xhigh, and a request that names no effort gets max; a client can ask for less with\n`output_config.effort`. On the OpenAI endpoint, `chat_template_kwargs: {\"thinking\": false}` turns thinking off.\nThe Anthropic adapter accepts a `thinking.budget_tokens` of at least 1,024 and below `max_tokens`, and answers\n400 otherwise. The model card asks for `max_tokens` of at least 256K, so the pi entry uses 262144. Usage follows\nAnthropic: a prompt splits into `cache_creation_input_tokens`, `cache_read_input_tokens` and the remaining\n`input_tokens`. A client that sends one provider-wide key in the `Authorization` header of every model needs\na separate provider for this model.\n\n## Reproduction\n\n```bash\nbash gcp\u002Fprovision.sh            # firewall rule, VM via flex.sh, static IP, then bootstrap.sh\nPROVISIONING=SPOT bash gcp\u002Fprovision.sh       # spot VM via grab.sh; STANDARD for on demand\nZONES=\"ZONE_A ZONE_B\" bash gcp\u002Fflex.sh   # only the Flex-start request loop\nbash gcp\u002Fbootstrap.sh            # copy vm\u002F, write secrets, set up, build r21, start, wait, back up the cache\nRESTART=1 bash gcp\u002Fbootstrap.sh  # the same, and recreate the container\nENGINE=lil bash gcp\u002Fbootstrap.sh # serve with the LiL image\nbash scripts\u002Fsmoke.sh            # auth, models, chat, thinking, tools, stream, image, long, refusal\nbash scripts\u002Fsmoke.sh long       # one check\nDS41_URL=https:\u002F\u002F... node scripts\u002Fbench.mjs single   # also c8, c32\nbash gcp\u002Fteardown.sh stop|start|delete\n```\n\n`gcp\u002Fprovision.sh` leaves an existing `VM_NAME` alone, so a new deployment sets `VM_NAME` to a name that does\nnot exist yet; with Flex-start the VM is named `\u003CFLEX_PREFIX>-\u003Czone>`, and that name goes into `.env`. The\nvLLM-Moet r13 image of the former backup VM is in no registry; `vm\u002Fds41-start-moet.sh` and `vm\u002Fmoet.env` document its\nconfiguration. On the VM, the files land where `vm\u002Fds41-boot.sh` expects them:\n\n| Repo | VM |\n| --- | --- |\n| `vm\u002Fvm-docker.sh`, `vm-setup.sh`, `vm-download.sh`, `vm-encoding.sh`, `vm-caddy.sh`, `vm-r21.sh`, `Caddyfile`, `r21.env`, `moet.env`, `patches\u002F*.patch` | `\u002Fopt\u002Fds41\u002F` |\n| `vm\u002Fds41-start-r21.sh`, `ds41-start-moet.sh`, `ds41-start.sh`, `ds41-boot.sh`, `ds41-ready.sh` | `\u002Fusr\u002Flocal\u002Fbin\u002F` |\n| `vm\u002Fds41-boot.service` | `\u002Fetc\u002Fsystemd\u002Fsystem\u002F` |\n| values of `config.sh` (LiL image, model, revision, domain) | `\u002Fetc\u002Fds41\u002Fdeploy.env` |\n| `vm\u002Fr21.env`, the engine name | `\u002Fetc\u002Fds41\u002Fr21.env`, `\u002Fetc\u002Fds41\u002Fengine` |\n| weights, Docker data root, kernel caches, logs | `\u002Fdata` (RAID0, wiped on stop) |\n| r21 image, tokenizer overlays, kernel cache backups | `\u002Fvar\u002Flib\u002Fds41\u002F` |\n\n```bash\ngcloud compute ssh VM_NAME --zone ZONE --project PROJECT\nsudo docker logs -f ds41              # server log\nsudo \u002Fusr\u002Flocal\u002Fbin\u002Fds41-start-r21.sh # recreate the container\nsudo \u002Fusr\u002Flocal\u002Fbin\u002Fds41-ready.sh     # 200 when it serves\n```\n\n## Speed work and the 600 tok\u002Fs target\n\nThe served model decodes at **1,082 tok\u002Fs aggregate over 8 streams** and **463 tok\u002Fs on one stream**.\nWhat is left to 600 single-stream is a step-level problem, not a configuration one. The work is tracked\nin this repository: `work\u002FSTATUS.md` (state and next steps), `work\u002FRESULTS.md` (every measurement and\nthe arms that failed), `work\u002Fengine\u002FFINDINGS.md` + `PATCHES.md` (decode-step anatomy, roofline, switch\ntable, two kernel designs), `work\u002Fleads\u002F` (external research), `work\u002Fdrafter\u002F` (speculative decoding)\nand `work\u002Fmtp\u002F` (the MTP drafter retraining pipeline).\n\nMeasured facts that bound the problem. Everything below is **exact block-rejection decoding** (top_p\n1.0, temperature 1.0, k = 5 drafts), i.e. the same distribution as the served model, not the FLy\napproximation. The instrument is `alprobe.py`'s `step_metrics` (the prefill-free one; `step_ms` includes\nthe 120k prefill on a cold prefix cache) and the codebench cells at **n >= 3** — an n=1 cell has produced\n15 % outliers three times, so n=1 is not a measurement.\n\n**The largest win in this repository is a configuration value, not a kernel: `reasoning_effort`.** The\nmodel's own released mapping is low 50 \u002F high 75 \u002F max 100 with `high` as the default, and the deployment\nwas serving `max`. Same checkpoint, same kernels, same harness:\n\n| `reasoning_effort` | C1 | C4 aggregate | C8 aggregate | GSM8K-1319 | completion tokens |\n| --- | ---: | ---: | ---: | ---: | ---: |\n| `max` (100) | 379 | 683 | 925 | 96.78 % | 647,046 |\n| **`high` (75, the model's default, now served)** | **398** | **702** | **983** | 96.74 % | **384,125** |\n| `low` (50) | 409 | 752 | 1019 | 96.89 % | 325,922 |\n\nMonotone, because less effort means shorter and more predictable answers, so the DSpark drafter accepts\nmore (accepted length 3.34 -> 3.47 -> 3.50 at C1). `high` is **+5 % at C1, +2.8 % at C4, +6.3 % at C8 and\n-41 % completion tokens at identical accuracy**; the full quality gate (214k needle, tools, images,\nrefusal) is green at every tier. That is worth more than every kernel change below combined.\n\n- One exact step is **8.84 ms at 120k context with 6 verified rows** and accepted length **2.80**.\n- The fused b12x MoE is **3.15 ms of the step (24 % of kernel time) and already at the DRAM floor**\n  (4.23 GB per rank in 3.15 ms = 1.34 TB\u002Fs). The only MoE lever is fewer bytes.\n- Within one profile the step is MoE 3.15, dense MXFP8 GEMVs 2.54, mHC 3.07 (proj 1.12 + pre_big_fuse 0.94\n  + push 0.52 + post_norm 0.50), sparse MLA 0.69, quantizers 0.56, norms 0.44, act 0.26, top-k 0.29, the\n  DSpark drafter's MoE 0.11 — 12.97 ms of kernel time against an 8.84 ms step, i.e. 32 % overlaps. **The\n  step is the main-stream kernel sum**: mHC runs on its own stream and is hidden, so its 2 ms of\n  non-critical time is not recoverable.\n- **The dense GEMV is at its practical floor.** A 9 MB matrix read by 224 blocks runs at ~0.95 TB\u002Fs\n  (short bursts do not reach the 1.36-1.6 TB\u002Fs a 130 MB stream sees) and the engine's own ablations put\n  the remaining upside for the ~250 dense GEMVs at ~0.3 ms.\n- **The 2-bit routed-expert requant is built and works** (`work\u002Fpatches\u002F`): the fused decode MoE, the CuTe\n  compact projection and b12x's prefill phase 1 all read 2 bits, the repack is done in place so no extra\n  GPU memory is needed, and the 2-bit `w2` is parked in the w13 tensor's freed second half. It cuts the\n  120k step **8.84 -> 8.25 ms (-7 %)** but at high concurrency the batch has more verified rows, the MoE\n  becomes compute-bound, and the 2-bit read's expansion costs more than the halved bytes save: **+1 % at C1\n  and -5 % at C4\u002FC8**. With the imatrix-weighted requant (`work\u002Fpatches\u002Frequant.py`, per-block scale\n  weighted by `diag(H)`) GSM8K-1319 is 97.12 % against 96.89 % at `low` effort, i.e. no measurable quality\n  loss, and the completion-token inflation falls from +20 % (at `max`) to +2.9 %.\n- **600 tok\u002Fs needs a 4.67 ms step at accepted length 2.80, or 5.66 ms at the k = 5 chain length of 3.39.**\n  Every item at its own roofline is ~5.8 ms, so 600 needs the floor *and* an accepted length near 3.4 — a\n  better drafter, which the training-free constraint excludes. The realistic ceiling with this drafter is\n  **~400-450 tok\u002Fs single stream**, and `low` effort is already most of the way there.\n\n## Credit\n\nThe serving engine is [vLLM-Moet](https:\u002F\u002Fgithub.com\u002Fkacper-daftcode\u002FvLLM-Moet), whose README defines the\nFraser bench. The LiL image, the `serve-ds41-flash.sh` recipe and the first 4x RTX PRO 6000\nsettings come from [Local Inference Lab](https:\u002F\u002Fhuggingface.co\u002Flocal-inference-lab) and the public card of\n[`jcartu\u002FDeepSeek-V4.1-Flash-1017-abliterated-lossless-CSF`](https:\u002F\u002Fhuggingface.co\u002Fjcartu\u002FDeepSeek-V4.1-Flash-1017-abliterated-lossless-CSF).\nThe abliterated weights are\n[`mrfakename\u002FDeepSeek-V4.1-Flash-1017-abliterated`](https:\u002F\u002Fhuggingface.co\u002Fmrfakename\u002FDeepSeek-V4.1-Flash-1017-abliterated),\nan edit of [`deepseek-ai\u002FDeepSeek-V4.1-Flash-1017`](https:\u002F\u002Fhuggingface.co\u002Fdeepseek-ai\u002FDeepSeek-V4.1-Flash-1017)\n(MIT). The single-card companion of this deployment is\n[`Qwen3.8-27B-abliterated-AWQ-SGLang-DFlash2-RTX-PRO-6000`](https:\u002F\u002Fgithub.com\u002Fhanxiao\u002FQwen3.8-27B-abliterated-AWQ-SGLang-DFlash2-RTX-PRO-6000).\n","该项目是一个面向生产部署的大语言模型（LLM）推理服务，基于深度优化的 DeepSeek-V4.1-Flash-1017 模型（FP8 密集层 + FP4 专家层），在 4 卡 NVIDIA RTX PRO 6000（Blackwell 架构）上通过 vLLM-Moet 实现 MoE 推理，并集成 DSpark 与 FLy 验证的推测解码技术。支持最高 1M 上下文长度、多流并行推理（8 流达 1082 tok\u002Fs）、图像输入及 Anthropic\u002FOpenAI 兼容 API。适用于需要高吞吐、长上下文与低延迟的 AI 代理（如代码生成、复杂推理）场景。",2,"2026-11-24 04:41:51","CREATED_QUERY"]