hard20 pts · first answer countspythonperformance
More threads, no extra throughput
A Python service does heavy pure-Python text preprocessing before calling the model. Raising the thread pool from 4 to 32 did not improve throughput on an 8-core machine. Why?
Discussion 0
Join free to post in the discussion.
Related questions
- Splitting requests into batchesMLOps Engineer
- Memory coalescingMLOps Engineer
- If-else inside a warpMLOps Engineer
- Low occupancy in a kernelMLOps Engineer
- Why GELU and adds are memory-boundMLOps Engineer
- Odd layer sizes run slowlyMLOps Engineer
- Logging slows the training loopMLOps Engineer
- How DDP hides communicationMLOps Engineer