MEASURED·EXPERIMENTAL·2 min read·Nov 27, 2026

Inkling-2-Small on 4× DGX Spark with long-context tool-call fix (experimental)

The Inkling-2-Small 4-bit KV cache recipe with a gated server-side hook that keeps tool-call and system-prompt rules active past 200K tokens. Model weights stay stock, short single-turn prompts are untouched, and turns 61–70 batching rises from 0% to 60%.

4× DGX Spark GB10 · TP4/EP4 · SGLang experimental-1.10 · aidendle94/sparkrun-sglang-inkling2-gb10:experimental-1.10 · measured Nov 27, 2026

  • Inkling-2-Small
  • SGLang
  • multi-node
  • TP4
  • DGX Spark
  • NVFP4
  • MoE
  • speculative decoding
3,248 / 2,840tok/sPrefill · cold, 30K / 120K tokensSame 4-bit KV cache and 8,192-token prefill chunks as the NVFP4 recipe
56.9tok/sDecode · one stream, temperature 1.0Same stock weights and 4-bit KV cache
524KtokensContextPer request
1.41MtokensKV pool4-bit (NVFP4) KV cache, target and draft pools

01Overview

What you need
  • Four DGX Spark nodes with nothing else on their GPUs, linked by a RoCE network
  • ssh without a password from one node to the other three, and Docker usable without sudo
  • About 130 GB free in the home directory of every node

This recipe serves Inkling-2-Small on four DGX Spark nodes with stock weights, a 4-bit (NVFP4) KV cache of 1,409,000 tokens, and a server-side fix for long-session tool calling. On stock serving, 40 of the model's 48 layers only read the last 1,024 tokens, so system-prompt tool rules fade after the first turn.

A gated request hook repeats a short summary of the active system instructions at the end of long or multi-turn prompts without saving it to history. On a 70-turn repository coding benchmark, parallel tool-call batching at turns 61–70 rose from 0% to 60% and shell-lookup rule violations fell from 67 to 27, while short single-turn prompts stay bit-identical to stock.

02Build

Run it

  1. Find each node's fabric address. It is the address on the 200G port: ip -br addr lists it next to an interface named like enp1s0f0np0.
  2. Let the first node log in to the others. On the first node, run ssh-copy-id <address> once for each of the other three.
  3. Let your user run Docker on every node. Run sudo usermod -aG docker $USER, then log out and in again.
  4. Run the script on the first node. It checks every node, pulls the image, downloads each node’s 93 GB of weights, starts the fleet with SYSTEM_REINFORCE=user enabled, verifies the hook loaded, and sends a first request. If a step fails, it says what to fix; run the same command again.
setup · the first node
git clone https://github.com/aidendle94/sparkrun-recipes
cd sparkrun-recipes/recipes/inkling-2-small/sglang-tool-fix
./quickstart.sh <node-0> <node-1> <node-2> <node-3>   # your four fabric addresses, this node first

# Only the checks, nothing changed:
./quickstart.sh --check

# First request (port 8210 on the first node).
curl -s http://<first-node>:8210/v1/chat/completions -H 'content-type: application/json' \
  -d '{"model":"inkling-2-small","messages":[{"role":"user","content":"Is 91 prime?"}],"max_tokens":400}'
day to day
./quickstart.sh --status                # serving? KV cache and system-reinforce status?
./quickstart.sh --stop                  # stop the fleet and its watchdog
launch/relaunch.sh                      # start or restart with the tool-call fix
SYSTEM_REINFORCE= launch/relaunch.sh    # disable the hook (stock serving)
KV_NVFP4= launch/relaunch.sh            # switch to the 8-bit (FP8) KV cache

03Performance

Measured2026-11-27, stock weights with SYSTEM_REINFORCE=user against stock serving on the same fleet. Experimental: the Inkling-2-Small 4-bit KV cache recipe with gated transient system-prompt reinforcement, measured at temperature 1.0 with high thinking effort. Image: aidendle94/sparkrun-sglang-inkling2-gb10:experimental-1.10.

Prefill · cold, 30K / 120K tokens3,248 / 2,840tok/sSame 4-bit KV cache and 8,192-token prefill chunks as the NVFP4 recipe
Decode · one stream, temperature 1.056.9tok/sSame stock weights and 4-bit KV cache; short single-turn prompts are untouched
Context524KtokensPer request
KV pool1.41Mtokens4-bit (NVFP4) KV cache, target and draft pools
Tool batching · turns 61–7060.0%Up from 0.0% on stock serving (2.20 vs 1.00 calls/turn at 205K–249K tokens)
Tool batching · turns 41–7066.7%Up from 0.0% on stock serving across the final 30 turns of DSH-lite
Shell-lookup violations27 / 3all / T31–70Down from 67 / 39 on stock serving across 70 turns
Coding regression check24 / 24tests83.3% batchable turns in turns 16–35 (4.17 calls/turn), 1 shell violation
DSH-lite 70-turn parallel tool batching by turn window% of turns with ≥ 2 parallel tool calls · higher is better
Stock servingThis recipe (SYSTEM_REINFORCE=user)
Turns 31–400%40%
Turns 41–500%70%
Turns 51–600%70%
Turns 61–70 (205K–249K tok)0%60%

Pi coding scaffold, temperature 1.0, high thinking effort, system-prompt-only batching policy, direct on port 8210.

Shell-lookup rule violations during the 70-turn DSH-lite runviolations · lower is better
Stock servingThis recipe (SYSTEM_REINFORCE=user)
All 70 turns67272.5×
Turns 31–7039313×
Turns 61–7010110×

Dedicated read, grep, find and ls calls instead of shell lookup commands in bash.

Across recipes

Single-stream decode, by recipetok/s · higher is better
Inkling-2-Small · 4-bit KV cache (experimental)56.9
Inkling-2-Small · SGLang (experimental)55.6
DeepSeek-V4.1-Flash · SGLang (1.8)96.5
DeepSeek-V4.1-Flash (1.1, DCP2)60.8
GLM-5.3-Flash (1.2)89.7
DeepSeek-V4-Flash (3.76.1)71.0
DeepSeek-V4-Flash-Vision (3.73)67.9

One request at a time. Inkling-2-Small at temperature 1.0, the others at temperature 0.

Cold prefill, by recipetok/s · unique content · higher is better
Inkling-2-Small · 4-bit KV cache (experimental)2,840
Inkling-2-Small · SGLang (experimental)2,615
DeepSeek-V4.1-Flash · SGLang (1.8)4,892
DeepSeek-V4.1-Flash (1.0)2,143
GLM-5.3-Flash (1.2)2,070
DeepSeek-V4-Flash (3.76.1)2,200
DeepSeek-V4-Flash-Vision (3.73)2,380

Prompts the server has not seen.

70-turn DSH-lite benchmark, 2026-11-27Stock servingThis recipe (SYSTEM_REINFORCE=user)
Batched turns (≥ 2 calls), turns 61–700.0% (1.00 calls/turn)60.0% (2.20 calls/turn)
Batched turns (≥ 2 calls), turns 41–700.0% (1.00 calls/turn)66.7% (2.17 calls/turn)
Batched turns (≥ 2 calls), all 70 turns0.0% (1.00 calls/turn)35.7% (1.60 calls/turn)
Shell-lookup violations, all 70 turns (lower is better)6727
Shell-lookup violations, turns 31–70 (lower is better)393
Maximum context reached118,858 tokens248,774 tokens
CJK characters cleaned across the repository2,887,6822,891,826

Pi coding scaffold, temperature 1.0, high thinking effort, system-prompt-only batching policy, direct against port 8210 with no proxy.

Coding regression check (ledger_service), 2026-11-27Stock servingThis recipe (SYSTEM_REINFORCE=user)
Unit tests passed24 / 2424 / 24
Turns to completion2526
Batchable turns, all turns78.3% (3.04 calls/turn)77.8% (3.89 calls/turn)
Batchable turns, turns 16–3575.0% (3.00 calls/turn)83.3% (4.17 calls/turn)
Shell-lookup violations (lower is better)21

Same fleet and Pi scaffold, temperature 1.0, high thinking effort. Model weights and short single-turn prompts are unchanged.

04Notes

Client notes

  • Works on all three APIs:the hook runs inside the Inkling message renderer, so /v1/chat/completions, /v1/messages and /v1/responses all use it.
  • Short single-turn prompts stay bit-identical:the hook skips requests with no assistant turns and under 3,600 prompt characters, requests with no system message, and assistant prefills.
  • Prefix caching stays intact:the reminder is transient and never stored in client history, so earlier turns still reuse the prefix cache.
  • Tuning the reminder:set SPARK_SYSTEM_REINFORCE_MAX_CHARS (default 1200) or SPARK_SYSTEM_REINFORCE_MIN_CHARS (default 3600) in NCCL_EXTRA.

If the script stops

  • Cannot log in without a password:run ssh-copy-id <user>@<address> from the first node.
  • Docker does not answer:add the user to the docker group on that node and log in again.
  • No RDMA device:the 200G port of that node is not set up for RoCE.
  • Not enough disk:free about 130 GB in that node’s home directory.
  • Not an address of this node:run the script on the node you list first.

Known problems

  • The open problems of the base recipe apply here too:see Inkling-2-Small on SGLang.
  • Transient token cost:active multi-turn requests add up to about 300 tokens of condensed system instructions at the end of the prompt on each turn.
  • Weight-only edits were not adopted:lowering log_scaling_n_floor and scaling 33 global retrieval heads gave 0% batching on DSH-lite and dropped coding batching from 78.3% to 10.5%.