[Bug] Fix IndentationError: expected an indented block after 'with' statement (#46627)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
@@ -1950,13 +1950,8 @@ class DPEngineCoreProc(EngineCoreProc):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# Execute a dummy pass when no ready requests ran, unless the
|
# Execute a dummy pass when no ready requests ran, unless the
|
||||||
# engine is sleeping. self.is_sleeping() also covers the KV-offload
|
# engine is sleeping.
|
||||||
# window before model_executor.is_sleeping flips.
|
elif not self.model_executor.is_sleeping:
|
||||||
elif not self.is_sleeping():
|
|
||||||
with self.log_iteration_details(None):
|
|
||||||
# We are in a running state and so must execute a dummy pass
|
|
||||||
# if the model didn't execute any ready requests.
|
|
||||||
if not self.model_executor.is_sleeping:
|
|
||||||
with self.log_iteration_details(None):
|
with self.log_iteration_details(None):
|
||||||
self.execute_dummy_batch()
|
self.execute_dummy_batch()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user