News for hackers. Stuff that matters.
Re:LLM Inference Handbook by sherlockxu on Friday July 11, 2025 @04:00AM (#44529483)
Hi everyone. I'm one of the maintainers of this project. We're both excited and humbled to see it on Hacker News!

We created this handbook to make LLM inference concepts more accessible, especially for developers building real-world LLM applications. The goal is to pull together scattered knowledge into something clear, practical, and easy to build on.

We’re continuing to improve it, so feedback is very welcome!

GitHub repo: https://github.com/bentoml/llm-inference-in-production

Re:LLM Inference Handbook by armcat on Friday July 11, 2025 @05:30AM (#44530135)
Amazing work on this, beautifully put together and very useful!
Re:LLM Inference Handbook by DiabloD3 on Friday July 11, 2025 @02:47PM (#44535657)
I'm not going to open an issue on this, but you should consider expanding on the self-hosting part of the handbook and explicitly recommend llama.cpp for local self-hosted inference.
Re:LLM Inference Handbook by leopoldj on Friday July 11, 2025 @05:51PM (#44537117)
The self hosting section covers corporate use case using vLlm and sglang as well as personal desktop use using Ollama which is a wrapper over llama.cpp.
Re:LLM Inference Handbook by DiabloD3 on Friday July 11, 2025 @09:19PM (#44538469)
Recommending Ollama isn't useful for end users, its just a trap in a nice looking wrapper.
Re:LLM Inference Handbook by nl on Friday July 11, 2025 @10:52PM (#44538904)
Strong disagree on this. Ollama is great for moderately technical users who aren't really programmers or proficient with the command line.
Re:LLM Inference Handbook by DiabloD3 on Saturday July 12, 2025 @12:29AM (#44539317)
You can disagree all you want, but Ollama does not keep their llama.cpp vendored copy up to date, and also ships, via their mirror, completely random badly labeled models claiming to be the upstream real ones, often misappropriated from major community members (Unsloth, et al).

When you get a model offered by Ollama's service, you have no clue what you're getting, and normal people who have no experience aren't even aware of this.

Ollama is an unrestricted footgun because of this.

Re:LLM Inference Handbook by nl on Saturday July 12, 2025 @07:20AM (#44541214)
I thought the models were like HuggingFace, where anyone can upload a model and you choose which you pull. The Unsloth ones look like this to me, eg: https://ollama.com/secfa/DeepSeek-R1-UD-IQ1_S
Re:LLM Inference Handbook by DiabloD3 on Saturday July 12, 2025 @07:10PM (#44546006)
Ollama themselves upload models to the mirror, and often mislabel them.

When R1 first came out, for example, their official copy of it was one of the distills labeled as "R1" instead of something like "R1-qwen-distill". They've done this more than once.

Re:LLM Inference Handbook by ChromaticPanic on Saturday July 12, 2025 @04:03PM (#44544699)
Not the footgun you think it is. Ollama comes with a few things that make it convenient for casual users.
Re:LLM Inference Handbook by criemen on Friday July 11, 2025 @04:18PM (#44536421)
Thanks a lot for putting this together!

I have a question. In https://github.com/bentoml/llm-inference-in-production/blob/..., you have a single picture that defines TTFT and ITL. That does not match my understanding (but you guys know probably more than me): In the graphic, it looks like that the model is generating 4 tokens T0 to T3, before outputting a single output token.

I'd have expected that picture for ITL (except that then the labeling of the last box is off), but for TTFT, I'd have expected that there's only a single token T0 from the decode step, that then immediately is handed to detokenization and arrives as first output token (if we assume a streaming setup, otherwise measuring TTFT makes little sense).

Re:LLM Inference Handbook by sherlockxu on Monday July 14, 2025 @08:25AM (#44559340)
Thanks. We have updated the image to make it more accurate.
Re:LLM Inference Handbook by sethherr on Friday July 11, 2025 @06:07PM (#44537248)
This seems useful and well put together, but splitting it into many small pages instead of a single page that can be scrolled through is frustrating - particularly on mobile where the table of contents isn't shown by default. I stopped reading after a few pages because it annoyed me.

At the very least, the sections should be a single page each.