Ask HN: How can ChatGPT serve 700M users when I can't run one GPT-4 locally?
TL;DR Highlight
Batching, MoE, and speculative decoding keep GPUs busy, which is how ChatGPT serves 700M users.
Who Should Read
Backend developers wondering why LLM API costs and latency look the way they do
Core Mechanics
Community Reactions
- Batching is the core trick, commenters say
- The bottleneck is streaming weights from VRAM, one explanation went.
- Batched requests share one weight read across many users.
- Running alone leaves an expensive GPU mostly idle.
- A former Databricks inference director summed it up
- Named batching, 8-bit or lower quantization, MoE, and speculative decoding as the main tricks.
- Combined, they add up to large efficiency gains.
- Speculative decoding and JSON fast-forwarding in practice
- One commenter reports about 3x speedup from a small draft model.
- Skipping forced JSON tokens (fast forwarding) also gives roughly 3x, they say.
- Prefix caching is often overlooked, a commenter noted
- For multi-turn chats, prefix caching and tiered KV cache offloading matter.
- They recommended the vLLM and SGLang docs and the EAGLE paper.
- Most users are idle almost all the time, commenters argue
- Even with 700M weekly users, most are idle over 99% of the time.
- Requests are load-balanced like a stateless web server, they say.
- A user reported another person's chat context leaking in Gemini
- They got an unrequested LaTeX-formatted answer and suspected cross-chat leakage.
- Posted as an example of isolation concerns in batched serving.
How to Apply
- Move the fixed part of your prompt to the front
- Put unchanging instructions and examples at the start of the system prompt today.
- Append per-user content afterwards to raise prefix cache hits.
- Self-host with vLLM or SGLang
- If you serve your own model, start with batching settings in their docs.
- Try FP8 or INT8 quantized weights first.
- Cut JSON latency with structured output
- Run fixed JSON schemas on a serving stack that supports fast forwarding.
- A commenter reports about 3x speedup from skipping forced tokens.
Try It
# Paste into Claude or ChatGPT (simplified version of the discussion: diagnose serving bottlenecks)
Our service calls an LLM via {{model/hosting setup}}, with avg input {{input tokens}}, output {{output tokens}}, and concurrency {{concurrent requests}}.
In a table, tell me with reasons whether each technique would help us:
1. Batching
2. Quantization (FP8/INT8)
3. Speculative decoding
4. Prefix caching
5. Structured output fast-forwarding
For each, suggest the smallest experiment I can run today.Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls
Related Resources
- https://news.ycombinator.com/item?id=44840728
- https://jax-ml.github.io/scaling-book/
- https://jax-ml.github.io/scaling-book/inference/
- https://docs.unsloth.ai/basics/gemma-3n-how-to-run-and-fine-
- https://fin.ai/research/think-fast-reasoning-at-3ms-a-token/
- https://www.infracloud.io/blogs/inference-parallelism/
- https://arxiv.org/abs/2505.09343
- https://github.com/SafeAILab/EAGLE