TGViewer
Data eXplore : Data Science, ML, Big Data, LLMs and AI Security Data eXplore : Data Science, ML, Big Data, LLMs and AI Security @dataxplore · 578 subscribers
Post #2134 226
LLM break all the assumptions on which classical inference in ML was built.

Traditional model (convolutional neural network, transformer classifier, XGBoost) outputs a result in a single forward pass.

Nothing is stored between requests. The graphics processor performs the same type of work each time.

➡️ How LLM work completely differently?

The output is generated one token at a time, autoregressively, which turns a single request into hundreds of consecutive forward passes.

The prefill stage relies on computations, and decoding relies on memory bandwidth, and running them together on a single graphics processor degrades both stages.

The key-value cache grows with the length of the dialogue and is shared between requests, so routing is no longer about the least loaded servers, but about which replica already has the needed prefix cached.

Models with a mix of experts add parallelism of experts on top of this.

None of this is in classical machine learning model serving.

That's why a separate stack of optimizations specifically for inference of large language models has emerged: compression, attention mechanism, key-value cache management, batching, decoding, parallelism, and routing.

The demo shows a photo map of 72 techniques for optimizing large language models in production, grouped into nine blocks.

I also attach an article that explains how inference of large language models differs from classical inference and why each of these blocks is needed.


Question: what other techniques for optimizing large language models would you add here?

••••••••••••••••••••••••••••••••••••••
🤖 Data & ML |
@DataXplore
More from @dataxplore
  1. Sep 18, 2026Am going to announce something big (for me, it's really big) on October 11, 2026.
  2. Sep 14, 2026Post #2188
  3. Aug 31, 2026I joined a Russian community on Telegram. They share some Russian startup and technology u…
  4. Aug 22, 2026Post #2185
  5. Aug 21, 2026Deep systemic analysis of AI constraints from context to internal weight editing. 📂 PDF #…
  6. Aug 17, 2026Adaptive Gradient Thresholding Why Fixed Gradient Clipping Kills Deep RecSys When Feedback…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →