Setup guide · Tools and services
The Quillmoor triage kit
Download the schema, tools, tickets, GPU table, benchmark and research fixtures that Serving Open-Weight Models and Think Like a PhD Student start from, and check the gold records validate.
Serving Open-Weight Models serves one thing from start to finish: Quillmoor's ticket triage model, which reads a support ticket and returns a JSON record. Its exercises share a small kit of fixtures, so the schema you serve, the tickets you evaluate on, the GPU table you size with and the benchmark files you analyse are the same in every lesson and every answer. Think Like a PhD Student runs a small study on the same triage agent and adds four research fixtures to the kit: past resolved tickets to retrieve over, pilot traces to annotate and a flawed report to review. This guide downloads the kit and shows what is in it. Quillmoor is fictional and every ticket, account, trace and number is synthetic; the kit is for evaluation, calibration and research exercises only, never for training.
Before you start
Any OS with curl (macOS and Linux have it; Windows 10 and later ship curl.exe). The check at the end needs Python 3.12 or newer through uv. The whole kit is about 600 KB.
1. Download the kit
In the folder of the exercise you are working on:
mkdir -p kit && cd kit
for f in README.md triage_schema.json tools.json accounts.json help_center.json system_prompt.md \
eval_tickets.jsonl calibration_tickets.jsonl load_shape.json gpus.json make_fixtures.py \
resolved_tickets.jsonl traces_pilot.jsonl traces_pilot_key.jsonl report_to_review.md report_to_review_key.md make_research_fixtures.py \
bench-c1-mnbt2048.json bench-c4-mnbt2048.json bench-c8-mnbt2048.json bench-c16-mnbt2048.json bench-c32-mnbt2048.json \
bench-c1-mnbt8192.json bench-c4-mnbt8192.json bench-c8-mnbt8192.json bench-c16-mnbt8192.json bench-c32-mnbt8192.json; do
curl -fsSL -o "$f" "https://codersinhoods.dev/downloads/quillmoor-triage/$f"
done
cd ..On Windows, in PowerShell:
New-Item -ItemType Directory -Force kit | Out-Null
$files = "README.md","triage_schema.json","tools.json","accounts.json","help_center.json","system_prompt.md",
"eval_tickets.jsonl","calibration_tickets.jsonl","load_shape.json","gpus.json","make_fixtures.py",
"resolved_tickets.jsonl","traces_pilot.jsonl","traces_pilot_key.jsonl","report_to_review.md","report_to_review_key.md","make_research_fixtures.py"
$files += foreach ($c in 1,4,8,16,32) { foreach ($m in 2048,8192) { "bench-c$c-mnbt$m.json" } }
foreach ($f in $files) { curl.exe -fsSL -o "kit\$f" "https://codersinhoods.dev/downloads/quillmoor-triage/$f" }Don't edit the files: the exercises' checks and the answers' expected output assume them as published. make_fixtures.py and make_research_fixtures.py regenerate the generated ones byte for byte if you ever want to look at how they were made.
2. Know what's in it
| File | What it is | Used by |
|---|---|---|
triage_schema.json | JSON Schema (2020-12) of the triage record | Structured outputs, the capstone, every eval |
tools.json | OpenAI-format definitions of lookup_account and search_help_center, with example results | Structured outputs and tool calls, Serving your adapter |
accounts.json, help_center.json | What a stub tool server answers from: 16 accounts, 25 articles | The same two lessons |
system_prompt.md | The triage system prompt, about 1,500 tokens, which every request shares | Inside an inference engine (prefix caching), the benchmarks |
eval_tickets.jsonl | 40 tickets with hand-written gold records and a one-line rationale | Quantisation with evidence, Structured outputs, Deployment and rollout, the capstone |
calibration_tickets.jsonl | 200 unlabelled tickets, 30 to 400 words, 15% with pasted logs or quoted threads | Quantisation calibration, load generation |
load_shape.json | Quillmoor's traffic numbers, the SLO and the derived arithmetic | GPU sizing, benchmarks, Observability and operations |
gpus.json | Seven GPUs: memory, bandwidth, dense BF16 TFLOPS, FP8 and INT4 support, each with its source page | GPU sizing arithmetic |
bench-c{1,4,8,16,32}-mnbt{2048,8192}.json | Ten synthetic vllm bench serve --save-result --save-detailed files: a concurrency sweep at two --max-num-batched-tokens settings | Latency, throughput and honest benchmarks |
resolved_tickets.jsonl | 78 past tickets, each with its resolution, final_category, final_priority, escalated, resolver and resolved_at; six carry a note because their resolution predates the July 2026 policy refresh | Think Like a PhD Student: the retrieval condition of the experiment, the datasheet |
traces_pilot.jsonl, traces_pilot_key.jsonl | 30 synthetic triage traces over the eval tickets (condition, retrieved, steps of thoughts, tool calls, tool results and the final record), and the answer key naming the 18 planted failures and the 3 ambiguous traces | Think Like a PhD Student: open coding, the annotation pilot |
report_to_review.md, report_to_review_key.md | A deliberately flawed internal report, "Retrieval reduces escalations by 41%", and the list of its planted flaws by line | Think Like a PhD Student: the checklist audit, the review exercise |
The triage record has six fields, the same names and enums as the record you trained on in Fine-Tuning and RL for Agents, so an adapter trained there produces records this schema accepts:
| Field | Type |
|---|---|
category | one of billing, refund, account-access, plan-change, bug-report, how-to, feature-request, cancellation, security |
priority | P1, P2, P3 or P4 |
account_id | acct_ plus five capitals or digits, or null when nothing confirms one |
needs_human | boolean |
reason | one sentence, at most 300 characters |
reply_outline | 2 to 5 strings of at most 200 characters |
Each eval ticket carries ticket_id, channel, from_email, subject and body; 32 of the 40 also carry the account_id the help desk already knows, and 8 don't, so the model has to look the sender up or return null. The gold labels follow Quillmoor's policies: refunds over $500, owner changes, chargeback threats and Enterprise cancellations need a human; outages, data loss and anything security-related are P1. Six tickets are deliberately hard (two issues in one message, a feature request that the product already supports, a polite phishing attempt from an @example.test address), and the rationale says why the gold is what it is.
The SLO the course works to, from load_shape.json: time to first token p95 at most 1.0 s and inter-token latency p95 at most 60 ms at 20 concurrent requests, with goodput (the share of requests meeting both) at 0.95 or better. The benchmark files were generated from a model of one L4 serving Qwen3-4B-Instruct-2507 in bf16, not from a real run; they say so in their synthetic key, and the lesson's analysis finds a knee between 16 and 32 concurrent on them.
The research fixtures are evaluation material too. The traces were written by hand to read like agent runs, with failures planted so that a taxonomy has something to recover; code them before you open the key, because the key spoils the exercise. The resolved tickets are the precedent the retrieval condition appends to the prompt, and six of them are a confound a careful researcher should find without being told: their resolutions follow policy wording from before July 2026, and each says so in a note field. Nothing in the kit, new or old, is for training a model.
Check it works
Validate every gold record against the schema:
uv run --with jsonschema python -c "
import json, jsonschema
v = jsonschema.Draft202012Validator(json.load(open('kit/triage_schema.json')))
rows = [json.loads(l) for l in open('kit/eval_tickets.jsonl')]
bad = [r['ticket_id'] for r in rows if next(v.iter_errors(r['gold']), None)]
print(f'{len(rows) - len(bad)} of {len(rows)} gold records valid', bad or '')
"Expected output:
40 of 40 gold records validTroubleshooting
curl: (22) The requested URL returned error: 404. A filename in the loop is misspelt. The names are exact, including bench-c16-mnbt2048.json with no zero padding; copy the loop as it is.
No module named jsonschema. You ran plain python instead of uv run --with jsonschema python. The --with flag installs the validator into a throwaway environment for that one command.
0 of 40 gold records valid with Additional properties are not allowed. You validated the whole ticket rather than its gold field. The schema describes the record the model returns, not the ticket around it.
The benchmark numbers don't match a run of your own. They aren't meant to: the ten files are synthetic, from a simple model of an L4, so that the analysis exercise works without a GPU. Your own vllm bench serve results will have the same keys and a different shape.
Going further
- Serve a model with vLLM, the GPU path the course's exercises use
- Install llama.cpp, the CPU path
- Hugging Face account and CLI, for the adapter and the GGUF files
Sources
- JSON Schema specificationDocs · JSON SchemaThe current 2020-12 dialect the triage schema declares in `$schema`, with its core and validation specs.
- vLLM benchmark CLIDocs · vLLM`vllm bench serve`, `--save-result`, `--save-detailed`, `--max-concurrency` and `--request-rate`, the run the ten `bench-*.json` fixtures imitate.
- vLLM serve benchmark sourceDocs · vLLMWhere the result JSON's keys come from, including the per-request arrays that `--save-detailed` keeps and the `p<N>_<metric>_ms` naming.
Exercises that use this
- Simulate static versus continuous batching with a paged KV cacheServing Open-Weight Models · Inside an inference engine
- Measure what prefix caching saves on a real serverServing Open-Weight Models · Inside an inference engine
- A GPU budget calculator from any config.jsonServing Open-Weight Models · GPU sizing arithmetic
- Compare the calculator with the engine's own KV sizingServing Open-Weight Models · GPU sizing arithmetic
- Two adapters, one serverServing Open-Weight Models · Serving your adapter
- Quantise and prove itServing Open-Weight Models · Quantisation with evidence
- FP8 KV cache: tokens gained against evidenceServing Open-Weight Models · Quantisation with evidence
- Turn ten result files into a benchmark reportServing Open-Weight Models · Latency, throughput and honest benchmarks
- Reproduce the chunk-budget trade on a GPUServing Open-Weight Models · Latency, throughput and honest benchmarks
- n-gram speculation on a real serverServing Open-Weight Models · Speculative decoding in practice
- Build a guided sampler, then use the server'sServing Open-Weight Models · Structured outputs and tool calls
- Tool calls on an open modelServing Open-Weight Models · Structured outputs and tool calls
- Write the service record and lint the launch commandServing Open-Weight Models · What self-hosting makes you responsible for
- Deploy with a runbook: shadow, promote, roll backServing Open-Weight Models · Deployment and rollout
- Kubernetes manifests, validated without a clusterServing Open-Weight Models · Deployment and rollout
- Dashboard, alerts and a capacity plan, with no GPUServing Open-Weight Models · Observability and operations
- Simulate prefix-aware routing across two replicasServing Open-Weight Models · Observability and operations
- Start the lab notebook and write the hypothesesThink Like a PhD Student · The cycle and the question
- Write metrics.py and the metric panelThink Like a PhD Student · Measuring what matters
- Build the experiment harnessThink Like a PhD Student · Designing the experiment
- Does an open model vary the same way?Think Like a PhD Student · Designing the experiment
- Write and tag the pre-registrationThink Like a PhD Student · Pre-registration and trials
- Build a blind paired reviewThink Like a PhD Student · Pre-registration and trials
- Build a failure taxonomy from the pilot tracesThink Like a PhD Student · Open coding of failures
- Test whether the taxonomy saturatesThink Like a PhD Student · Open coding of failures
- Pilot the codebook with two annotatorsThink Like a PhD Student · Running an annotation study
- Build the reproducibility packageThink Like a PhD Student · Reproducibility and research hygiene
- Run the pre-registered analysisThink Like a PhD Student · Analysis and honest reporting
- Run the multiverseThink Like a PhD Student · Analysis and honest reporting
- Write the report and review anotherThink Like a PhD Student · Writing it up and peer review
