Velaapplied ai

Notes on applied AI

Short, practical write-ups from building and running model-backed systems: serving, retrieval, evaluation, and the parts that break in production.

2026

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.

servingquantizationNov 19, 2026 · 9 min read

Evaluation harnesses that catch regressions

A test suite for a model pipeline should fail loudly and cheaply. Notes on golden sets, pairwise judging and why exact-match metrics rot.

evaluationNov 12, 2026 · 7 min read

RAG is a retrieval problem, not a prompt problem

Most "the model ignores the context" complaints trace back to chunking and recall. A checklist for diagnosing retrieval before touching the prompt.

retrievalembeddingsNov 4, 2026 · 11 min read

Structured output: constrained decoding vs. retry loops

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.

toolingOct 27, 2026 · 6 min read

Small models, narrow domains

Where a 3B model with 400 curated examples beats a frontier model with a clever prompt, and where it quietly falls apart.

fine-tuningOct 15, 2026 · 8 min read

Measuring latency: p50 lies

Time-to-first-token distributions are bimodal. If you report the mean, you are reporting the cache hit path and nothing else.

performanceOct 2, 2026 · 5 min read