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
01Overview
- 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
- Find each node's fabric address. It is the address on the 200G port:
ip -br addrlists it next to an interface named likeenp1s0f0np0. - 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. - Let your user run Docker on every node. Run
sudo usermod -aG docker $USER, then log out and in again. - 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=userenabled, verifies the hook loaded, and sends a first request. If a step fails, it says what to fix; run the same command again.
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}'./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 cache03Performance
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.
Pi coding scaffold, temperature 1.0, high thinking effort, system-prompt-only batching policy, direct on port 8210.
Dedicated read, grep, find and ls calls instead of shell lookup commands in bash.
Across recipes
One request at a time. Inkling-2-Small at temperature 1.0, the others at temperature 0.
Prompts the server has not seen.
| 70-turn DSH-lite benchmark, 2026-11-27 | Stock serving | This recipe (SYSTEM_REINFORCE=user) |
|---|---|---|
| Batched turns (≥ 2 calls), turns 61–70 | 0.0% (1.00 calls/turn) | 60.0% (2.20 calls/turn) |
| Batched turns (≥ 2 calls), turns 41–70 | 0.0% (1.00 calls/turn) | 66.7% (2.17 calls/turn) |
| Batched turns (≥ 2 calls), all 70 turns | 0.0% (1.00 calls/turn) | 35.7% (1.60 calls/turn) |
| Shell-lookup violations, all 70 turns (lower is better) | 67 | 27 |
| Shell-lookup violations, turns 31–70 (lower is better) | 39 | 3 |
| Maximum context reached | 118,858 tokens | 248,774 tokens |
| CJK characters cleaned across the repository | 2,887,682 | 2,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-27 | Stock serving | This recipe (SYSTEM_REINFORCE=user) |
|---|---|---|
| Unit tests passed | 24 / 24 | 24 / 24 |
| Turns to completion | 25 | 26 |
| Batchable turns, all turns | 78.3% (3.04 calls/turn) | 77.8% (3.89 calls/turn) |
| Batchable turns, turns 16–35 | 75.0% (3.00 calls/turn) | 83.3% (4.17 calls/turn) |
| Shell-lookup violations (lower is better) | 2 | 1 |
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/messagesand/v1/responsesall 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(default1200) orSPARK_SYSTEM_REINFORCE_MIN_CHARS(default3600) inNCCL_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
dockergroup 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_floorand scaling 33 global retrieval heads gave 0% batching on DSH-lite and dropped coding batching from 78.3% to 10.5%.