[Bug] Fix `IndentationError: expected an indented block after 'with' statement` (#46627)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
Wentao Ye committed
Jun 24, 2026 at 11:14 UTC
1cd3e0e945c9216819ad816969b6ca1be71e637d
1 file changed
+2
-7
vllm/v1/engine/core.py
+2
-7
@@ -1950,13 +1950,8 @@ class DPEngineCoreProc(EngineCoreProc):
1950
continue
1951
1952
# Execute a dummy pass when no ready requests ran, unless the
1953
- # engine is sleeping. self.is_sleeping() also covers the KV-offload
1954
- # window before model_executor.is_sleeping flips.
1955
- elif not self.is_sleeping():
1956
- with self.log_iteration_details(None):
1957
- # We are in a running state and so must execute a dummy pass
1958
- # if the model didn't execute any ready requests.
1959
- if not self.model_executor.is_sleeping:
1953
+ # engine is sleeping.
1954
+ elif not self.model_executor.is_sleeping:
1955
with self.log_iteration_details(None):
1956
self.execute_dummy_batch()
1957