SparkModelBench runs Alex Ellis’s RigMark and RigMark Quality with the settings we use to compare Spark inference servers. Alex Ellis and OpenFaaS Ltd publish both projects under the MIT license. The serving prompts, decode and prefill measurements, quality tasks, tools, graders and upstream receipts come from their work. RigMark · RigMark Quality
Enntity adds three default lanes on top of RigMark: (1) the staggered four-request field guide from SparkGLM (four long requests arriving one second apart so we can observe the effect of arriving prefills on streams already in flight), (2) prompt-logprob distribution fidelity (fidelity, teacher-forced NLL over a frozen 46-chunk short mix plus a contiguous 32K-token codebase document), and (3) seeded multi-depth 2-hop long-context retrieval (needles, 24 queries across 16K–128K). The rest of this repository pins the upstream tools, selects parameters and prints their results together. RigMark concurrency protocol · Original SparkGLM scenario
| Source | Settings and measurements |
|---|---|
| RigMark, protocol 1.3.0 | Five code, prose and structured-output samples each. 8,192-token cap, temperature zero, low reasoning effort by default. Record decode tok/s, time to last output and completion gates. |
| RigMark prefill | Its exact token-ID workload at 8K, 32K, 64K, 128K and 256K, three first/immediate-replay pairs per depth. Include the eight-token output reserve when checking the context limit. |
| RigMark Quality (PR #8) | All 12 self-contained tasks (python-expiry, node-idempotency, go-worker-pool, go-transfer-ledger, statement-redact, stock-transfer, payment-recovery, ticket-routing, evidence-revisions, multilingual-evidence, long-context-retrieval, security-boundary). Each gets a 300-second agent budget and an 8,192-token cap per response. Report checks, conversation finish, seconds and output tokens across turns. Grading time is included in elapsed seconds. Temporarily pinned to Enntity/rigmark-quality while upstream PR #8 is open (accepts ErrMissingAccount alongside ErrInvalid for empty account names in go-transfer-ledger). |
| Enntity’s staggered C4 | Four distinct field-guide prompts of approximately 16K tokens arrive at 0, 1, 2 and 3 seconds, each with a 400-token output budget. Discard one warm-up and retain all three measured rounds, including each stream’s actual start, first token and visible stalls. |
Enntity’s fidelity (fidelity) |
Teacher-forced prompt-logprob NLL over frozen fidelity_corpus.json: 46 short code/prose chunks (≤750–850 tokens each, ~24K tokens total, compatible with engines capped at 1,024 prompt-logprob tokens) plus one contiguous ~32K-token codebase document, via /v1/completions (echo=true, logprobs=1 with automatic fallback to prompt_logprobs=0, skipping first 32 tokens). Records mean_nll, ppl, and non_finite counts; marks supported: false cleanly if an endpoint omits prompt logprobs. |
Enntity’s 2-hop needles (needles) |
Deterministic 2-hop key -> code -> 8-digit value retrieval across 16K, 32K, 64K and 128K target depths (2 unique tables × 3 stratified queries per depth = 24 queries total, serial, temperature 0, 2,048-token cap, reasoning_effort=low). Grades exact 8-digit match in visible final output only. |
Optional: RigMark concurrency. --lanes ... concurrency adds RigMark's own concurrency sweep: 1, 2, 4 and 8 code requests released together through a barrier, 256 output tokens each, three rounds per level, at the same effort as the other lanes. It reports aggregate throughput (prefill and scheduling included), per-stream decode and per-stream time to first token, and keeps RigMark's raw rounds in concurrency.json. It is RigMark's workload, not an Enntity addition, and it is not in the default suite. Name it on both contenders when you compare.
The upstream checkouts and licenses are pinned in upstream/rigmark and upstream/rigmark-quality. Enntity’s parameter choices are in protocol.json.
Python 3.10+, Git and Docker are required for the complete suite.
git clone --recurse-submodules https://github.com/enntity/sparkmodelbench
cd sparkmodelbench
docker build -t rigmark-quality-runtime:0.4 upstream/rigmark-quality/quality_suite
cp upstream/rigmark/metadata.example.json appliance.json
# Fill in the appliance metadata before running.
python3 run.py --base-url http://localhost:8000 --model MODEL --metadata appliance.json --out runs/first
Use the same fresh --trial on both contenders, the same comparison ID and the same request controls. Match checkpoint, tokenizer and quantization for engine comparisons. Record hardware, image, speculation, context limit and client placement. Set OPENAI_API_KEY for authenticated endpoints. Use a new output directory per run. The --lanes option selects individual measurements.
For chat-only endpoints use --portable --effort default on both contenders. The report marks RigMark’s exact-depth prefill as skipped when those interfaces are unavailable. Portable C4 permits natural stops and records the actual output counts.
Open CARD.md for the combined report. The original RigMark card, JSON and per-task RigMark Quality receipts sit beside it. Retain the raw repetitions and check them from the result directory with sha256sum -c SHA256SUMS. A zero cached-token count supports a cold prefill claim; missing cache evidence is labelled unverified. Compare wall time across different tokenizers on tasks both contenders finished correctly, and show the failed tasks alongside them. A nonzero runner exit signals a harness error. Model failures are recorded as outcomes.
The interactive leaderboard at enntity.github.io/sparkmodelbench is built from unedited result.json bundles under leaderboard/runs/. To submit a run, add leaderboard/runs/<slug>/ with entry.json and result.json (plus optional concurrency.json), run python3 leaderboard/build.py --check, and open a pull request.