Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions vllm/v1/engine/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,13 @@ def _process_engine_step(self) -> bool:
# Post-step hook.
self.post_step(model_executed)

# If no model execution happened but there are waiting requests
# (e.g., WAITING_FOR_REMOTE_KVS), yield the GIL briefly to allow
# background threads (like NIXL handshake) to make progress.
# Without this, the tight polling loop can starve background threads.
if not model_executed and self.scheduler.has_requests():
Comment thread
alec-flowers marked this conversation as resolved.
Outdated
time.sleep(0.001)

return model_executed

def _handle_client_request(
Expand Down
Loading