Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Topics AI & ML

Inference & serving

Serving models: batching, KV cache, quantization, GPU efficiency.

Search within Inference & serving, or combine it with other topics →

November 2026

Hugging Face

Hill-climbing Inkling 2 Mini inference on one RTX PRO 6000

Case study 9 min +90 XP

Agent-driven tuning of Inkling 2 Mini, a looped 26B-total/3B-active MoE, on a single RTX PRO 6000 raised single-user decode from 136 to 190.6 tok/s (+40%) and 8-user throughput from ~570 to 716 tok/s by switching from SGLang to vLLM nightly and enabling DSpark speculative decoding with 7 drafts and probabilistic draft sampling.

Hugging Face

180B Parameters, 32GB of RAM: Pushing MoE Inference to the Limit with Transformers

Case study 11 min +110 XP

Streaming MoE experts from SSD through a bounded device-side slot pool lets Transformers run Qwen3.8-Flash-Next (121 GB of experts) on a 32 GB MacBook M5 at ~13.9 tok/s, within 6% of the specialized Strata engine on decode and slightly faster on prefill.

Weighted State Souping for Efficient Long-Context Retrieval

Research 1 min +10 XP

Weighted state souping learns query-dependent weights for combining independently encoded, cached SSM states for chunks like documents, tool definitions or memory records, fixing the degradation that plain state souping and vanilla SSMs show on long, crowded contexts.

October 2026

Meta Engineering

Meta Andromeda: Powering the Next Generation of Ads Retrieval Through Model-System Co-Design

Case study 11 min +110 XP

Meta's next-generation Andromeda ads retrieval engine co-designs model, system and GPU hardware to score every eligible ad with near ranking-level quality at over one billion ads per second per GPU server, a 100x lift over the 2024 system.

Advancing Generative Recommendation Inference: our collaboration with NVIDIA on TensorRT LLM

Case study 7 min +70 XP

Spotify consolidated its LLM-based generative recommendation inference onto TensorRT LLM, working with NVIDIA to add the features it had been splitting across engines. vLLM handled beam search for semantic-ID candidate generation, but its beam search runs outside the core GPU engine and recomputes partially filled KV blocks.

Netflix TechBlog

Integrating Netflix’s Foundation Model into Personalization applications

Case study 7 min +70 XP

Netflix integrates its transformer-based personalization Foundation Model into production through three patterns: precomputed embeddings, embedding the model as a subgraph of downstream models, and fine-tuning it to power products directly.

Meta Engineering

Meta’s Generative Ads Model (GEM): Scaling the Central Model and Compute Engine for Frontier Ads AI

Case study 14 min +140 XP

Meta's 2026 GEM replaces per-surface ads ranking models with a single central recommendation foundation model trained across Facebook, Instagram, Reels and deep-funnel conversion objectives, reporting 18.9% conversion and 12% CTR gains.

September 2026

August 2026

July 2026

Together AI

ThunderAgent: 2x Faster Agentic Inference for Synthetic Data Generation at Scale

Research 6 min +60 XP

ThunderAgent is a scheduling layer between agent clients and inference backends that treats each multi-turn agentic workflow as a schedulable program instead of independent requests, preventing KV cache thrashing when agents pause for tool calls.

June 2026

May 2026

Meta Engineering

SilverTorch: Index as Model — A New Retrieval Paradigm for Recommendation Systems

Case study 14 min +140 XP

SilverTorch replaces Meta's microservice-based recommendation retrieval with "Index as Model": the item index, eligibility filter, ANN search, neural reranker and multi-task scorer all become tensors or nn.Modules inside a single PyTorch model served on GPUs in one forward pass.

Together AI

Serving DeepSeek-V4: why million-token context is an inference systems problem

Deep dive 11 min +110 XP

DeepSeek-V4's 1M-token context comes from compressing the token axis of the KV cache: Compressed Sparse Attention (stride 4, top-k selection), Heavily Compressed Attention (stride 128, dense over ~8K entries) and a 128-token Sliding Window Attention path.

April 2026

Hugging Face

DeepSeek-V4: a million-token context that agents can actually use

Deep dive 7 min +70 XP

DeepSeek-V4 (Pro: 1.6T total/49B active; Flash: 284B/13B active) is a MoE model family whose 1M-token context is made practical by a hybrid attention design that interleaves Compressed Sparse Attention (4x KV compression plus an FP4 lightning indexer selecting top-k blocks) with Heavily Compressed Attention (128x compression with dense attention), plus FP8 KV storage.

March 2026

Meta Engineering

Meta Adaptive Ranking Model: Bending the Inference Scaling Curve to Serve LLM-Scale Models for Ads

Case study 9 min +90 XP

Meta Adaptive Ranking Model serves LLM-scale ads ranking models (O(10 GFLOPs) per token, O(1T) parameters) at O(100 ms) latency by routing each request to an appropriately complex model and computing user signals once per request instead of once per ad candidate.

Google Research

TurboQuant: Redefining AI efficiency with extreme compression

Research 7 min +70 XP

TurboQuant is a data-oblivious vector quantization algorithm that removes the per-block quantization-constant overhead of traditional methods by combining PolarQuant (random rotation plus recursive polar-coordinate transforms with a fixed angle grid) and a 1-bit Quantized Johnson-Lindenstrauss residual stage that removes bias in inner-product estimates.

Hugging Face

Bringing Robotics AI to Embedded Platforms: Dataset Recording, VLA Fine‑Tuning, and On‑Device Optimizations

Case study 9 min +90 XP

Running Vision–Language–Action policies on an embedded SoC is framed as a systems problem: decompose the model into stages, quantize selectively, and use asynchronous inference so latency stays below action-chunk execution time.

Together AI

Cache-aware prefill–decode disaggregation (CPD) for up to 40% faster long-context LLM serving

Research 9 min +90 XP

Cache-aware prefill–decode disaggregation (CPD) extends standard PD serving with a dedicated pre-prefill tier for low-reuse (cold) long prompts, a router that estimates prefix-cache reuse per request, and a three-level KV cache hierarchy (GPU memory, host DRAM, RDMA-connected distributed cache).

February 2026

Hugging Face

Mixture of Experts (MoEs) in Transformers

Deep dive 10 min +100 XP

Hugging Face transformers v5 reworks its internals to treat Mixture of Experts models as first-class: a WeightConverter pipeline packs per-expert checkpoint tensors into contiguous runtime tensors with async, lazy materialization, cutting Qwen1.5-110B load time from ~66s to ~21s (10s with tensor parallelism) on an A100.

January 2026

Hugging Face

Introducing Waypoint-1: Real-time interactive video diffusion from Overworld

Announcement 4 min +40 XP

Waypoint-1 is an open-weights real-time interactive video diffusion world model, a frame-causal rectified flow transformer trained on 10,000 hours of game footage paired with keyboard/mouse inputs and text captions, conditioning every frame on user controls.

November 2025

October 2025

September 2025

July 2025

June 2025

Hugging Face

No GPU left behind: Unlocking Efficiency with Co-located vLLM in TRL

Case study 22 min +220 XP

TRL v0.18.0 can run vLLM co-located with the training job on the same GPUs. vLLM's external_launcher executor puts it inside the torch.distributed process group, replacing the separate HTTP server that left training and inference GPUs idle in turn during GRPO's frequent generation steps.

May 2025

Hugging Face

Falcon-Edge: A series of powerful, universal, fine-tunable 1.58bit language models.

Announcement 9 min +90 XP

Falcon-Edge is a set of 1B and 3B ternary (1.58-bit) BitNet language models, in base and instruct variants, pre-trained on about 1.5T tokens with a WSD learning-rate schedule and reported competitive with similarly sized models on Hugging Face leaderboard benchmarks.

April 2025

Hugging Face

PipelineRL

Announcement 7 min +70 XP

PipelineRL resolves the tradeoff between inference throughput and on-policy data in LLM reinforcement learning by doing inflight weight updates: after each optimizer step, trainers broadcast new weights via NCCL to inference servers, which pause only long enough to receive them and then keep generating with existing KV caches.

February 2025

December 2024

The quest for software engineering knowledge.

Look:
Layout: