Inkling-2-Small on 4× DGX Spark with a 4-bit KV cache (experimental)
The Inkling-2-Small recipe with its KV cache stored in 4 bits: the same memory holds 1.8 times the tokens, quality unchanged, and decode behind long contexts is faster. One script sets up all four nodes.
4× DGX Spark GB10 · TP4/EP4 · SGLang experimental-1.6 · aidendle94/sparkrun-sglang-inkling2-gb10:experimental-1.6 · measured Nov 23, 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 its KV cache, the model's memory of the conversation, stored in 4 bits (NVFP4) instead of 8. The same memory holds 1,409,000 tokens instead of 793,000.
Quality is unchanged on held-out text, and one request writes its answer at 56.9 tok/s at temperature 1.0. Behind 500K tokens of context it writes 52.2 tok/s, against 47.6 with the 8-bit cache.
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 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-nvfp4-kv
./quickstart.sh 192.0.2.11 192.0.2.12 192.0.2.13 192.0.2.14 # 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? which KV cache on each node?
./quickstart.sh --stop # stop the fleet and its watchdog
launch/relaunch.sh # start or restart
KV_NVFP4= launch/relaunch.sh # the same stack with the 8-bit (FP8) KV cache03Performance
Measured2026-11-23, one boot each, against the 8-bit cache on the same day. Experimental: the Inkling-2-Small recipe with its KV cache in 4 bits (NVFP4), at temperature 1.0. Image: aidendle94/sparkrun-sglang-inkling2-gb10:experimental-1.6.
The same stack and fleet on the same day.
Lower of two prompts per length on an idle fleet. The 8-bit cache prefills the same.
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.
| Measured 2026-11-23, one boot each | 8-bit (FP8) KV cache | 4-bit (NVFP4) KV cache |
|---|---|---|
| KV cache, same memory | 793,000 tokens | 1,409,000 tokens |
| Held-out text, average loss (lower is better) | 1.4437 | 1.4437 |
| Lookups in a 130K-token context, 40 questions | 36 right | 35 right |
| One stream, short prompts | 54.0 tok/s | 56.9 tok/s |
| One stream, behind 130K tokens | 54.1 tok/s | 55.7 tok/s |
| One stream, behind 500K tokens | 47.6 tok/s | 52.2 tok/s |
| Cold prefill of 120K tokens, the same settings | 2,615 tok/s | 2,615 tok/s |
| Cold prefill of 120K tokens, this recipe’s larger prefill chunks | not measured | 2,840 tok/s |
The same stack and fleet on the same day, decode at temperature 1.0.
| Measured 2026-11-24, timed at the client | Greedy | Temperature 1.0 |
|---|---|---|
| One stream, 21 short prompts | 64.3 tok/s | 57.2 tok/s |
| Two streams at once, total | 85.4 tok/s | 85.8 tok/s |
| Eight streams at once, total | 164.1 tok/s | 148.4 tok/s |
| One stream behind 130K tokens | 49.0 tok/s | 49.2 tok/s |
| One stream behind 500K tokens | 47.2 tok/s | 42.2 tok/s |
Chat requests through the OpenAI-style endpoint, decode timed from the first to the last output. A cold 129K-token prompt took 46 s and a cold 498K-token prompt 276 s.
04Notes
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 8-bit recipe apply here too:see Inkling-2-Small on SGLang.
- About one long lookup in ten ends without an answeron either cache, because the model re-reads the context until it runs out of tokens.