Typed, calibrated decisions on one NVIDIA DGX Spark. Send a state and a
set of typed questions. Each question is yes/no (noul), one of named options
(choice) or an ordinal level (score). You get back one probability
distribution per question, from one forward pass of the engine. Nothing is
generated, so there is nothing to parse and nothing to hallucinate.
SparkScore serves d3-ultra (27B, by
the vLLM Semantic Router team) quantized to NVFP4, on the native
Glitter C++20/CUDA SM121 inference engine
(building on SM121 GDN and paged-attention kernel work from
Atlas). The API has the
shape of TypeSafe's Jev decision API, and it accepts the model name
jev-latest, so a Jev client needs only a new base URL. It runs on your own hardware, so the data you score stays
on the box.
JevBench v1.6.1, the 231 public items, latency per question measured at the endpoint:
| Engine | Accuracy | Brier | ECE | p50 | p95 |
|---|---|---|---|---|---|
| SparkScore (Glitter), d3-ultra NVFP4 W4A4 (default) | 90.9% | 0.119 | 0.027 | 107 ms | 0.80 s |
SparkScore (Glitter), d3-ultra NVFP4 W4A8 (--precision w4a8) |
91.3% | 0.113 | 0.042 | 145 ms | 1.24 s |
| SparkScore (Atlas, previous), d3-ultra NVFP4 W4A4 | 90.9% | 0.118 | 0.029 | 146 ms | 1.05 s |
| d3-ultra, d3's own BF16 runtime, same Spark | 91.3% | 0.117 | 0.029 | 633 ms | 3.07 s |
| KnowLine-35B-A3B NVFP4, SparkScore (historical) | 87.4% | 0.165 | — | 176 ms | 1.21 s |
- Same model, 5.9× faster than BF16 (1.36× faster than Atlas). d3's own
runtime scores the same items within one point at 633 ms. Glitter runs a
single native C++20/CUDA process (
glitter serve-sparkscore, zero Python proxy hop), reading the state and every question in one pass over cuBLASLt NVFP4 All4 tensor cores. - ~1.4 s cold start. After a one-time
.glitpack cached in$MODEL_ROOT/.glitter-packs, Glitter loads the 16.02 GiB 27B + ViT bundle in ~0.6 s and listens in ~1.4 s (vs ~60 s on Atlas). - W4A4 or W4A8. W4A4 (default) quantizes MLP, attention, and GDN projections
to NVFP4 (49-q BF16 oracle mean KL
0.01170, 20.7% below Atlas W4A4's0.01475).--precision w4a8keeps E4M3 activations (48/49 oracle agreement, mean KL0.00680, JevBench91.3%, Brier0.1135, p50145 ms). - Many questions cost little more than one. Twelve questions about one
1,300-token claim file take 440 ms (
4.7 ms/questionincremental); one question about the same file takes 384 ms. - Engine. One score pass over 288 rows (the JevBench median) takes 104 ms (vs 139 ms on Atlas), and 4,128 rows take 1,145 ms (vs 1,579 ms on Atlas).
Every number has receipts: results/2026-12-01-glitter-engine (current Glitter default & W4A8), plus the historical Atlas baselines 2026-11-07-d3-ultra-w4a4, final-latency, final-accuracy, and activation-formats. docs/REPRODUCE.md reruns them.
For public context: on the Jev Decision Index text board d3-ultra ranks 7th (full score 70.18, a submission by its authors). That is the model's placement, not a SparkScore measurement.
You need one DGX Spark (GB10, DGX OS with Docker and the NVIDIA Container Toolkit), about 45 GB of free disk and an internet connection for the first run.
git clone https://github.com/Enntity/sparkscore.git
cd sparkscore
./start.shThe first run downloads the image and 22 GB of weights and performs a one-time
2.5-minute .glit pack cached in ~/models/sparkscore/.glitter-packs. Every
subsequent ./start.sh boots and serves in about 1.4 seconds.
- Image. It pulls or builds the SparkScore image (
ghcr.io/enntity/sparkscore): Glitter built at the commit pinned in install/glitter-source.json (~30 s from source). - Weights. It downloads the NVFP4 weights (Enntity/d3-ultra-NVFP4, 22 GB, Apache-2.0) at a pinned revision, and checks every file against install/d3-ultra-nvfp4.sha256.
- Pack, serve and smoke-test. On first launch
install/serve.pypacks a 256B-aligned.glitbundle, thenexecsglitter serve-sparkscoreon127.0.0.1:8015and sends one smoke request.
To build everything yourself: FROM_SOURCE=1 ./start.sh compiles Glitter
from source (~30 seconds, C++20 + CUDA 13.0 only, no Rust or CUTLASS). It also
downloads d3-ultra and the ModelOpt format reference at pinned revisions and
converts d3-ultra to NVFP4 (about 96 GB of disk, 15 minutes). The conversion is
deterministic, so the result matches the published weights byte for byte.
Then ask it something:
curl -s http://127.0.0.1:8015/v1/systemone -H 'content-type: application/json' -d '{
"model": "sparkscore-d3",
"state": "Refund policy: refunds within 30 days; annual plans are refunded pro rata.\n\nTicket from Mina (annual plan, bought 5 months ago): \"We barely use it anymore. I would like a refund for the rest of the year.\"",
"questions": {
"team": {"type": "choice", "instructions": "Which team should handle this?",
"criteria": {"billing": "Billing", "infrastructure": "Infrastructure", "sales": "Sales"}},
"urgency": {"type": "score", "instructions": "How urgent is this?",
"criteria": ["Can wait", "This week", "Today", "Right now"]},
"refund": {"type": "noul", "instructions": "Is a refund allowed under the policy?"}
}
}'{
"answers": {
"team": {"type": "choice", "choice": "billing",
"probabilities": {"billing": 0.9943, "infrastructure": 0.0001, "sales": 0.0055}},
"urgency": {"type": "score", "score": 0.4831, "confidence": 0.5169,
"probabilities": {"0": 0.5414, "1": 0.4386, "2": 0.0155, "3": 0.0045}},
"refund": {"type": "noul", "noul": 0.9542}
}
}(Abridged. The full response shape is in docs/API.md.) Each
response carries a Server-Timing header with the time spent rendering,
in the engine and in total. X-SparkScore-Passes: 1 says the whole request
went to the engine as one score request.
| Command | What it does |
|---|---|
./start.sh stop, status, logs |
Manage the server. |
./start.sh --precision w4a8 |
Serve the W4A8 alternative. |
BIND=0.0.0.0 ./start.sh serve |
Serve on your network. Set SPARKSCORE_API_KEY to require a bearer key. |
python3 demo/serve.py |
Open the live demo at http://127.0.0.1:8780. |
KNOWLEDGE_DIR=~/handbooks ./start.sh |
Load every *.md / *.txt there as named knowledge (see below). |
PACKS=0 ./start.sh |
Turn knowledge packs off (default: up to 8 held). |
STORE_GB=20 STORE_DIR=~/sparkscore-store STORE_DISK_GB=300 ./start.sh |
Keep every photo's encoding (20 GiB of device memory, then NVMe), so a photo asked a new question skips it. |
The demo has five scenes:
- inbox triage;
- a guardrail that checks an agent's tool calls against a written policy;
- live review of a reply as you type;
- twelve decisions about an insurance claim file in one pass;
- a 12K-token support handbook as a knowledge pack: every ticket follows its house rules at full speed.
All their data is fictional, and all timings are live.
The same serve.py also serves:
- demo/hn.html: the last 24 hours of Hacker News (live titles and domains from HN's public search API), read by four typed judgements per post (~20 ms/judgement, ~49 judgements/s on Glitter), plus your own yes/no question of every post and a reading profile as a knowledge pack;
- demo/village.html: 300 autonomous villagers in 3D whose every move is a live SparkScore decision (~44 ms/decision plain, ~57 ms with the 10.5K-token village charter held as a knowledge pack).
Most decisions depend on your own rules: a routing policy, a refund policy, a support handbook. Give SparkScore the document once and every request follows it, at almost the cost of a request without it.
# Register a document by name (or put it in KNOWLEDGE_DIR before ./start.sh).
curl -s -X PUT http://127.0.0.1:8015/v1/knowledge/acme-handbook \
-H 'content-type: application/json' --data "$(jq -Rs '{text: .}' handbook.md)"
# Use it by name.
curl -s http://127.0.0.1:8015/v1/systemone -H 'content-type: application/json' -d '{
"model": "sparkscore-d3",
"knowledge_name": "acme-handbook",
"state": "Ticket from Diego at Ferro (customer tier: Kestrel): \"Please switch our Helios payment method to bank transfer.\"",
"questions": {"team": {"type": "choice", "instructions": "Which team should handle this ticket?",
"criteria": {"billing": "Billing", "infrastructure": "Infrastructure", "sales": "Sales"}}}
}'The engine encodes the document once, as a knowledge pack: its attention keys and its recurrent state. Every
request on it reads that state in place and never recomputes the document. A request can also send the text
itself as "knowledge"; the pack is built on first use and held for later requests.
| One DGX Spark, 40 tickets × 3 questions | House rules followed | p50 (Glitter) | p50 (Atlas) |
|---|---|---|---|
| No handbook | 6/35 | 109 ms | 167 ms |
| 1.2K-token handbook in every request | 35/35 | 374 ms | 533 ms |
| The same handbook as a knowledge pack | 35/35 | 111 ms | 165 ms |
| 3.3K-token handbook as a knowledge pack | 35/35 | 118 ms | 155 ms |
| 12K-token handbook in every request | 35/35 | 4.02 s | 5.43 s |
| The same handbook as a knowledge pack | 35/35 | 151 ms | 191 ms |
Receipts are in results/2026-12-01-glitter-engine and results/2026-11-08-knowledge-packs, and the research behind the feature is in docs/paperlets/knowledge-packs.md.
Details:
- API:
knowledge,knowledge_nameand/v1/knowledgeare in docs/API.md. - Packs held: Glitter holds up to 8 packs in UMA pinned memory by default (
PACKSchanges it;STORE_GBswitches to byte-budgeted mode with optional NVMe spillover) and evicts the least recently used first.
d3-ultra reads images. Send them as base64 data URLs in images, the way d3-ultra's own server takes them, and
every question in the request reads the same encoding:
curl -s http://127.0.0.1:8015/v1/systemone -H 'content-type: application/json' -d "{
\"model\": \"sparkscore-d3\", \"state\": \"\",
\"images\": [\"data:image/jpeg;base64,$(base64 < photo.jpg | tr -d '\n')\"],
\"questions\": {
\"dog\": {\"type\": \"noul\", \"instructions\": \"Is there a dog in the photo?\"},
\"setting\": {\"type\": \"choice\", \"instructions\": \"Where was this taken?\",
\"criteria\": {\"indoors\": null, \"street\": null, \"nature\": null}}}
}"A photo is encoded once, as an image pack, and a new question about it reads that encoding. With a pack store, every photo's encoding is kept, so a whole library re-sorts by any new question at full speed:
STORE_GB=20 STORE_DIR=~/sparkscore-store STORE_DISK_GB=300 ./start.shThat keeps 20 GiB in device memory (about 400 photos at 640x480) and 300 GiB on NVMe behind it. Packs on NVMe are read ahead of their passes.
| One DGX Spark, 120–250 COCO photos (~640x480), 1q each, 16 in flight | Glitter | Atlas (previous) |
|---|---|---|
| First question (every photo encoded + saved to store) | 7.0–7.7 photos/s | 5.3–6.0 photos/s |
| A new question, photos in device memory (UMA RAM) | 58–60 photos/s | 33–37 photos/s |
| A new question, photos spilled to NVMe (cold-SSD read-ahead) | 52.4 photos/s | 31.5–34 photos/s |
Video, ten questions a frame ("remember": false, Tears of Steel) |
4.6 frames/s (218 ms lag) | 3.0–3.7 frames/s (~600 ms lag) |
Answers are bit-identical (max |Δp| = 0.000000) whether a photo's encoding comes from memory or from NVMe.
Receipts are in results/2026-12-01-glitter-engine and
results/2026-11-18-image-scoring.
Four image demos (demo/IMAGES.md):
- a camera programmed by a sentence (6.4 fps, 154 ms lag, 4 questions/frame);
- a photo library sorted by a question (120 COCO photos in ~16 s fresh);
- a photo firehose: photos stream in at full speed and 125–250 re-sort live in 2.1–4.3 s (58+ photos/s), the top matches shown large;
- a film read live, ten questions a frame (emotion, action, setting, tension and five flags at 4.6 fps).
Details:
- API:
imagesandrememberare in docs/API.md. - Credits: the photos are COCO val2017 under CC BY / CC BY-SA, the film is Tears of Steel (Blender
Foundation, CC BY 3.0); the fetch scripts in
demo/download them.
A decision request is a long state followed by short questions. Most servers
run each question as its own prompt, so the state is read once per question.
Glitter (glitter serve-sparkscore) handles HTTP/1.1, BPE tokenization,
d3-ultra prompt rendering, pack storage, vision encoding, and scoring in a
single native C++20/CUDA process using one score pass:
- Rows. The state's rows come first, followed by every question's branch with zero tail replay (partial tail KV blocks are copied on-device).
- State. Gated DeltaNet layers fork each head's recurrent state into its slotless branches in place, without allocating per-branch SSM slots.
- Attention. Full-attention layers share the head's paged KV blocks via TMA-backed 128-row GQA tiles.
- Prefix-bidirectional attention. Within the state block, attention is bidirectional, matching d3-ultra's training mask.
- Head. The GPU gathers only each branch's final row and computes exact FP32 dot products against the candidate option readout vectors.
So the weights are read once per request, however many questions it has, and
concurrent requests coalesce into shared passes with bit-exact merged-vs-solo
invariance (max |Δp| = 0.000000).
The dense 27B prefill path uses Blackwell cuBLASLt NVFP4 (All4: MLP,
attention, and GDN projections quantized to block-16 NVFP4 with coalesced
warp-row quantizers) for W4A4, and SM121 W4A8 + FP8 kernels for --precision w4a8.
The details, cost model and roofline are in docs/ENGINE.md.
- Hardware. One DGX Spark (GB10, SM121) only. The kernels are written for its tensor cores and unified memory architecture.
- Input. Text and images: up to 8 images per request as base64 data URLs
in d3-ultra's own
imagesfield, read by every question (see Images). TypeSafe'sassetsfield,boxand track questions are not served; a video is read as frames, each an image (demo/watch.html). - Length. A question's prompt may be up to 32,768 tokens, a request up to 65,536 tokens and 256 questions. Longer requests are refused, not truncated. Glitter splits requests exceeding 16,384 tokens or 128 branches into multiple passes automatically while reusing the prefix pack across chunks.
- Latency under load. Latency grows with load. 16 concurrent 460-row
requests finish in 1.97 s (vs 2.98 s on Atlas), against 132 ms for
one, with
max |Δp| = 0.000000. - Calibration. The readout temperatures are fitted on held-out kev data.
For your own task, check calibration on your own labels before choosing
thresholds (
tools/sparkscore/calibrate.py). - Knowledge packs. A pack is one block that never reads the ticket, which is
a small change to d3's attention. Its answers follow 35/35 handbook rules and
match d3 BF16 on 118/120 questions (mean KL
0.0079). Packs live in UMA pinned host memory (directly GPU-readable on GB10) with optional NVMe spillover, so they do not consume finite sequence slots. - Precision. W4A4 All4 shifts d3-ultra's probabilities slightly against its
BF16 runtime: mean KL
0.01170on the 49-question reference set (47/49exact agreement). If you need the closest match to BF16, use--precision w4a8(48/49, mean KL0.00680, JevBench91.3%, Brier0.1135).
SparkScore ships its model plugin (sparkle/libglitter_sparkle_sparkscore.so)
as an out-of-tree Glitter Sparkle built
against the Glitter core SDK pinned in
install/glitter-source.json (install/repin.sh
moves the pin). The SparkScore Sparkle implements clean-room Apache-2.0 SM121
CUDA kernels inspired by GDN, paged-attention, and W4A8/FP8 ideas from
Atlas alongside Blackwell cuBLASLt
NVFP4 All4 projections, slotless branching, UMA+NVMe FP8 pack storage, and a
native 27-layer ViT encoder.
| Path | Contents |
|---|---|
sparkle/ |
Out-of-tree Glitter Sparkle (libglitter_sparkle_sparkscore.so): SM121 CUDA kernels, ViT encoder, FP8 pack store, native HTTP server, and .glit packer. |
start.sh, install/ |
Install, Glitter core + Sparkle Docker build, weight fetch/conversion, entrypoint and smoke test. |
tools/sparkscore/ |
Reference Python harness, prompt templates, answer math, calibration and benchmark runners. |
tools/nvfp4_convert.py |
A bit-exact reproduction of ModelOpt's NVFP4/FP8 weight quantization. |
demo/ |
The live demo and its recorder. |
results/ |
Dated results, each with raw receipts and SHA256SUMS. |
docs/ |
API, engine, reproduction and competitor notes. |
- Model. d3-ultra is by the vLLM Semantic Router team (Apache-2.0). Its
NVFP4 format follows NVIDIA ModelOpt through the
a2genesis/Qwen3.8-27B-NVFP4reference (Apache-2.0). - Engine. Glitter (
Enntity/glitter) is Apache-2.0. - API shape. It follows TypeSafe's Jev API.
- Benchmarks. JevBench, the Decision Index and kev-suites are by their respective authors; see docs/COMPETITORS.md.
SparkScore's code is licensed under Apache-2.0 (LICENSE, NOTICE). The converted weights you produce stay under the model's Apache-2.0 license.






