Re:Running GPT-OSS-120B at 500 tokens per second on Nvidia GPUs
by MoonObserver on Thursday August 07, 2025 @05:51AM
(#44822547)
M2 Max processor.
I saw 60+ tok/s on short conversations, but it degraded to 30 tok/s as the conversation got longer.
Do you know what actually accounts for this slowdown? I don’t believe it was thermal throttling.
[ Parent
| on HN ]
Re:Running GPT-OSS-120B at 500 tokens per second on Nvidia GPUs
by summarity on Thursday August 07, 2025 @05:54AM
(#44822561)
Physics: You always have the same memory bandwidth. The longer the context, the more bits will need to pass through the same pipe. Context is cumulative.
Re:Running GPT-OSS-120B at 500 tokens per second on Nvidia GPUs
by VierScar on Thursday August 07, 2025 @06:02AM
(#44822605)
No I don't think it's the bits. I would say it's the computation. Inference requires performing a lot of matmul, and with more tokens the number of computation operations increases exponentially - O(n^2) at least. So increasing your context/conversation will quickly degrade performance
I seriously doubt it's the throughput of memory during inference that's the bottleneck here.
Re:Running GPT-OSS-120B at 500 tokens per second on Nvidia GPUs
by summarity on Thursday August 07, 2025 @07:09AM
(#44823012)
It literally is. LLM inference is almost entirely memory bound. In fact for naive inference (no batching), you can calculate the token throughput just based on the model size, context size and memory bandwidth.
Re:Running GPT-OSS-120B at 500 tokens per second on Nvidia GPUs
by zozbot234 on Thursday August 07, 2025 @08:02AM
(#44823364)
Prompt pre-processing (before the first token is output) is raw compute-bound. That's why it would be nice if we could direct llama.cpp/ollama to run that phase only on iGPU/NPU (for systems without a separate dGPU, obviously) and shift the whole thing over to CPU inference for the latter token-generation phase.
(A memory-bound workload like token gen wouldn't usually run into the CPU's thermal or power limits, so there would be little or no gain from offloading work to the iGPU/NPU in that phase.)
Re:Running GPT-OSS-120B at 500 tokens per second on Nvidia GPUs
by zozbot234 on Thursday August 07, 2025 @06:09AM
(#44822640)
Typically, the token generation phase is memory-bound for LLM inference in general, and this becomes especially clear as context length increases (since the model's parameters are a fixed quantity.) If it was pure compute bound there would be huge gains to be had by shifting some of the load to the NPU (ANE) but AIUI it's just not so.
Re:Running GPT-OSS-120B at 500 tokens per second on Nvidia GPUs
by MereInterest on Thursday August 07, 2025 @07:18AM
(#44823070)
Nitpick: O(n^2) is quadratic, not exponential. For it to “increase exponentially”, n would need to be in the exponent, such as O(2^n).