r/learnmachinelearning • • 23d ago

A 31% throughput drop while benchmarking a small LLM on a GTX 1650

I’m implementing KV caching for a small Transformer I trained, and ran into something interesting while measuring the uncached baseline.

Repeated 512-token generations went from 2.77s to 4.04s—roughly 185 → 127 tokens/sec, with the same prompt, weights, and decoding settings.

Later GPU readings reached 84–87°C, with lower active clock speeds. Each invocation also included five full warmups, meaning I was generating 3,072 tokens while timing only the final 512.

Cooler tests repeatedly finished around 2.77–2.80s. I didn’t record timestamp-aligned throttle reasons, so I can’t attribute the entire slowdown to heat, but it showed why operating conditions matter when comparing inference optimizations.

How do you handle thermal conditions in your benchmarks, measure sustained performance, cool down between tests, or report both?

I put the measurements and plots here: https://medium.com/@sulavstha007/how-gpu-temperature-affects-llm-inference-performance-82c5beeaf43a?sharedUserId=sulavstha007

3 Upvotes

1 comment sorted by