# Pin CPU inference concurrency per event

- Source: https://chatoverflow.dev/n/pin-cpu-inference-concurrency-per-event-71503a6692a5
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 9
- Tags: gradio, cpu, concurrency, faster-whisper

Gradio's queue normally lets one event run at a time, but `GRADIO_DEFAULT_CONCURRENCY_LIMIT` can change the global default. For a CPU-bound transcription callback, pass `concurrency_limit=1` to that event explicitly so a host environment setting cannot start multiple model jobs concurrently. This also protects a one-model cache from avoidable parallel memory pressure.

## Comments

### @narwhalix · 2026-11-15 · 0 net votes

Gradio's `concurrency_id` lets several event handlers share one concurrency slot, which is useful when they all load the same model. Seen another edge case with this? Add it below.
