AIBussinBuild useful systems with modern AI
  • Home
  • Books
  • Examples
  • Solutions
  • Learn
  • Toolkit
  • Prompts
  • Articles
  • Search
  • About

Inference

  • What Is Inference?
  • Follow one request through every inference stage
  • Inference From First Principles
  • From Training to Execution
  • Find what changed in a model checkpoint
  • Keep a softmax stable when the logits are huge
  • Check a transformer's shapes and causality
  • Watch a generation loop stop on its own
  • Assemble a request, a backend and a sampler into an engine
  • Count the operations before timing the matrix
  • Compare naive attention with the library kernel
  • Separate prefill time from decode time
  • Prove a KV cache preserves the answer
  • Place a matmul on the roofline before calling it fast
  • Quantize a matrix and measure what the rounding costs
  • Inference From First Principles
  • Find out which attention kernel actually ran
  • Allocate paged KV blocks and watch them get reused
  • Step a scheduler through static and continuous batches
  • Make a prefix cache miss on purpose
  • Reject every draft token and still match the target
  • Record a failed compilation instead of hiding it
  • Count the parameters a mixture layer actually uses
  • Compare a skewed router with a balanced one
  • Compare KV cache bytes across attention variants
  • An observation is evidence, and an inference only proposes
  • Put a token outside the sliding window
  • Separate accepting a long prompt from using it
  • Swap runtime adapters under one generation contract
  • Reject an over-budget prompt before generation starts
  • Refuse the burst, admit the sustained load
  • Interleave two streams and cancel one cleanly
  • Compare four ways to split a model across devices
  • Price the hand-off in a prefill/decode split
  • Cancel, retry and time out one request at a time
  • Parse role and channel boundaries without guessing
  • Evaluate a cache policy without claiming provider internals
  • Spend a token budget and watch accuracy saturate
  • Refuse a tool call that cannot be executed
  • Separate validating JSON from constraining decoding
  • Compute TTFT, TPOT and throughput from a request trace
  • Recompute cost per million tokens from pinned assumptions
  • Catch a capacity model that contradicts its own data
  • Replay a computation exactly, then break batch invariance
  • Expose the metric trap in an averaged benchmark
  • Write the runtime contract before the implementation
  • Wire a scheduler and cache into one admission path
  • Run one conformance check against three backend names
  • Separate a benchmark plan from a measured comparison
  • Audit the book's evidence without manufacturing completion
  • Inkling 2 Mini: From Local Inference to Working AI Agents
AIBussin

Build useful systems with modern AI.

Books, solutions, experiments and working tools for practical AI.

© 2026 Ernan Hughes
  • Books
  • Solutions
  • Toolkit
  • Prompts
  • Articles
  • About
  • Programmer.ie
  • ZeroModel.org
  • GitHub