# "Next 100x in AI: Inference, Networking, & Self-Optimizing Models" <!-- ref: @content/youtube/latent-space/next-100x-in-ai-inference-networking-self-optimizing-models tags: [inference optimization, speculative decoding, quantization, prefill decode disaggregation, new model support, parallelism] version: 4 updated_at: 2026-11-22T08:53:37.905Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=7PSXtru6mmY)** # Next 100x in AI: Inference, Networking, & Self-Optimizing Models *Synthesized from Philip Kiely and Ali Taha in conversation with the Latent Space hosts, 2026-08-03.* Philip Kiely and Ali Taha of Baseten walk through how a production inference provider serves open models quickly and accurately. The transcript is a rough machine translation, so some phrasing is approximate. ## Core Thesis They argue that inference speed comes from stacking many independent optimizations, including quantization, speculative decoding, prefill and decode disaggregation, cache-aware routing and parallelism, while holding output quality as close to the original model as possible. Supporting each new open model is substantial engineering, not just loading weights. ## Key Insights - **Anatomy of a long request.** For a request of around 200,000 tokens, routing first asks whether a KV cache is available, for example in a multi-pass coding agent. For some models, prefill and decode run on separate GPU sets: one builds the KV cache and returns the first token, then another does decoding. - **Dedicated deployments.** Customers with very large volume often rent capacity because it is cheaper per token, and can choose parallelism, batching strategy, or higher-precision quantization to suit them. - **Speculative decoding.** A lightweight extra head predicts several tokens quickly, and one pass of the main model verifies them. Their rough rule: about 2x from a speculator and about 2x from disaggregation, with more from better kernels. - **Compounding gains.** Three optimizations that each double throughput give an eightfold improvement. Interactive speeds in the 300 to 400 tokens-per-second range require the best hardware and an optimized decoder. The same word, tokens per second, covers both per-user speed and total throughput, which they call an unfortunate overlap. - **Supporting a new model is real work.** Getting a token out of an open engine is the easy part. Teams still quantize to NVFP4 for Blackwell, train a speculator on hidden states from live traffic, deploy and test, and keep fixing bugs for weeks. Examples include a model looping on one token, in response to which the endpoint stops a token repeated four or more times, and a race condition that appeared only on a cluster with a slower interconnect. - **Vision graft.** They attached a vision encoder from another lab's model to a text-only model by training a projector with the encoder frozen; the added encoder has under a billion parameters and is skipped when no image is sent. - **Quality standard.** Most inference optimizations are lossless, quantization is lossy, and the internal goal is that users cannot tell their API from the official one. They use KL divergence to prove equivalence, and note that mixing quantization choices across layers can let errors cancel, giving about 20% more throughput. Their write-up was cut from 72 pages to 25. - **Speculating on speculators.** Stacked speculators proved hard to train and add engine complexity. - **Time to reproduce.** For someone skilled, producing quantized weights or a speculator takes hours to days. - **Tooling.** Nvidia's open-source Dynamo is a router and a set of building blocks rather than a finished system. - **Parallelism.** Tensor parallelism works for any model and needs fast interconnect for all-gather or all-reduce; expert parallelism applies only to mixture-of-experts models. ## Actionable Takeaways 1. Ask whether a KV cache is available before choosing how to route a long request. 2. Stack optimizations multiplicatively and measure each against baseline quality. 3. Verify output equivalence with KL divergence, not just benchmark scores. 4. Add loop detection on the endpoint, for example for a token repeated four or more times. 5. Test new models on multiple clusters to expose hardware-dependent race conditions. 6. Treat new-model support as a multi-week effort, not a launch-day task. ## Notable Quotes > "Um, we, at least for certain models, divided prefilling and decoding." — Philip Kiely > "for a person who really knows his stuff, takes from hours to days of work." — Ali Taha > "approximately 2x from the speculator and about 2x from disaggregation" — Philip Kiely --- *Related: `@content/youtube/aie/what-runs-where-local-ai-in-production-ahmad-osman-osmantic` · `@content/youtube/latent-space/the-future-of-ai-infra-from-kubernetes-to-agent-sandboxes` · `@content/youtube/aie/2026-07-17-reward-hacking-in-agents-daniel-han-unsloth`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*