Author · person

Pallavi Ahuja

Writes most about inference providers and serving reliability and teaching materials and glossaries.

inferenceinference-costprompt-cachingteachingbenchmarks

Field guides

Entries by Pallavi Ahuja are sources in these guides:

Entries

  1. 2026-11-26R330The checkpoint size is not the budget: accounting for GPU memory in training and servingA walk through where GPU memory actually goes in training and serving, showing that parameter count or checkpoint size is a small fraction of the real footprint once optimizer state, activations and the KV cache are counted.
    inference-servingkv-cachegpu-memorycapacity-planningtraining-infrastructuremeasurement
  2. 2026-11-25R295One basis, three fields: spherical harmonics in atomic orbitals, Gaussian splatting and equivariant networksThree problems that look unrelated — describing an atomic orbital's angular structure, representing how a 3D scene's colour changes with viewing angle, and building a network whose features transform predictably when its input rotates — are the same problem, representing a function on the surface of a sphere, and all three are solved with spherical harmonics. The working mental model is Fourier analysis one dimension up: sines and cosines form an orthonormal basis for functions on a circle indexed by frequency, and spherical harmonics form an orthonormal basis for square-integrable functions on the 2-sphere indexed by degree and order, describing how a quantity varies with <em>direction</em> rather than over <em>time</em>. The instances follow from that one sentence. The angular factor of a separated hydrogenic wavefunction is a spherical harmonic, and the familiar s, p and d orbital lobes are the nodal structure of successive degrees rather than a chemical fact bolted on afterwards. 3D Gaussian splatting stores per-Gaussian harmonic coefficients per colour channel so that apparent colour can depend on view direction, with the reference implementation at degree 3 giving (3+1)² = 16 basis functions per channel. And tensor-field networks use harmonics as the angular part of their filters, so that rotating the input transforms features under a known representation of the rotation group rather than arbitrarily — which is why they suit molecular property prediction, where there is no canonical orientation and the alternative is spending capacity on learning rotation invariance from augmented data. The cost the original omits is the part worth carrying: in splatting the coefficients dominate the payload, at 48 floats per Gaussian against roughly a dozen for position, scale, rotation and opacity combined, so degree is a quality knob production pipelines prune rather than a constant of nature; and in equivariant networks the tensor products that combine degrees scale badly, which is the family's central performance problem and the reason much recent work trades exact equivariance for throughput. Key caveat: this is teaching material rather than news — no paper, no release and no measurement — and its value is the bridge for a reader who did not already have the connection.
    teachingfundamentalsmodel-architectureresearch
  3. 2026-11-20R180Serving Trace Lab: an interactive simulator for LLM batching and KV-cache memoryTeaching tool: step an LLM server iteration by iteration to see prefill vs decode, static vs continuous batching, whole vs chunked prefill, and reserved vs paged KV allocation under memory pressure. Teach it by predicting finish times on one workload, then switching each policy.
    teachinginferenceserving
  4. 2026-11-19R153sharedFreeToken: serving frontier MoE models on consumer GPUsEdge-native MoE engine that treats GPU, CPU, host RAM and PCIe as one pool: double-buffered layer streaming in prefill, a q* policy splitting decode cache misses between GPU cache fill and direct CPU execution by measured host bandwidth, shared LRU expert cache, VRAM moved between experts and KV at runtime, and state checkpoints anchored at thinking/tool-call boundaries so harness context edits resume instead of recompute. Reported: 1.5-2.3x decode over llama.cpp/Ollama/KTransformers on an RTX 5090, worst TTFT under 44 s vs 150 s+ baselines, 35B at 39 tok/s on an 8 GB laptop, 284B on a gaming desktop, 753B GLM-5.2 on one workstation GPU.
    inferenceopen-modelsprompt-cachingbenchmarksinference-cost
  5. 2026-11-12R051Six LLM serving techniques that leave the model aloneServing speed and cost are mostly won around the model: six exact techniques, each removing one waste. Prefix caching (shared-prefix KV reuse; pays only when prompts repeat), continuous batching (iteration-level admit/retire), PagedAttention (block-table KV memory, the enabler for the rest), chunked prefill (stops one long prompt from stalling decode; chunk size trades TTFT vs inter-token latency), speculative decoding (draft then verify; distribution-preserving, gain set by acceptance rate, can lose at high batch), and prefill/decode disaggregation (separate compute-bound and bandwidth-bound pools, paid for in KV transfer). Commenters: head-of-line blocking from long prefills is the common production failure; batching, paging and prefix caching cover most workloads. A primer with no numbers or citations; the summary maps each idea to its paper and adds failure modes and a review checklist.
    llm-servinginference-costprompt-cachingdev-infra

Credits come from each entry's byline. How reputation is scored.