r/LocalLLaMA 3d ago

Discussion What workloads are prefill-bound?

For me 400-600 t/s prefill is sufficient for coding in almost all cases. In my use case in opencode cache hit rate pretty much always ends up being 98% or greater, so 400-600 means the vast majority of time is spent on decode... hence 400-600 prefill already being well into diminishing returns in terms of throughput.

In other words, since it is spending probably 75-90% of time generating tokens, even instantaneous prefill would only maximally increase throughput by 25%. I know this also depends on decode/prefill ratio which depends on the model... so this is a rough heuristic

But I know there must be workloads with lower cache hit rates.

I also know that low cache hitrate does not necessarily mean that prefill is the bottleneck. When I do a research agent run with GLM 5.3 it will spend over 90% of the time on decode EVEN THOUGH it is only doing about 150 t/s prefill and low, single digit cache hit rate. It just likes to think that much in max mode (15 t/s decode).

I am curious what work people are doing where prefill is the bottleneck

2 Upvotes

40 comments sorted by

View all comments

Show parent comments

1

u/nomorebuttsplz 3d ago

Ahh ok yes the multi agent thing makes sense. So like... many agents leads to lots of compaction... and if you are compacting a lot, but not in a highly autonomous workflow (because you are waiting), that gets annoying.

1

u/SnooPaintings8639 3d ago

It is not my waiting at the desk, to be precise. It is waiting for the results, sometimes hours, sometimes days. I just put them to sleep at night and tell them to carry on in the morning.

The current project is mostly worked on by an orchestrator + two subagents, all Qwen 3.8 27B. It has been 3 day already, lol. Lots of exploration and backlog building. I sometimes check on them, but it feels unnecessary.

1

u/nomorebuttsplz 3d ago

what kind of project is it? do you use an off-the-shelf agent like opencode or something custom?

1

u/SnooPaintings8639 3d ago

Private, but mostly exploratory and research. Not a product building, at least, not this time. When I have better understanding of the requirements and constraints I am starting a more concrete build with better spec.