Serving a 7B model on a single consumer GPU
What actually decides throughput when the card is small: KV cache layout, batch scheduling and the surprisingly large cost of the tokenizer.
Short, practical write-ups from building and running model-backed systems: serving, retrieval, evaluation, and the parts that break in production.
2026
What actually decides throughput when the card is small: KV cache layout, batch scheduling and the surprisingly large cost of the tokenizer.
A test suite for a model pipeline should fail loudly and cheaply. Notes on golden sets, pairwise judging and why exact-match metrics rot.
Most "the model ignores the context" complaints trace back to chunking and recall. A checklist for diagnosing retrieval before touching the prompt.
Grammar-constrained sampling removes the retry tax but hides failure modes. When a plain retry loop with a strict validator is the better engineering choice.
Where a 3B model with 400 curated examples beats a frontier model with a clever prompt, and where it quietly falls apart.
Time-to-first-token distributions are bimodal. If you report the mean, you are reporting the cache hit path and nothing else.