[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
|
||||
|
||||
# Execute a dummy pass when no ready requests ran, unless the
|
||||
# engine is sleeping. self.is_sleeping() also covers the KV-offload
|
||||
# window before model_executor.is_sleeping flips.
|
||||
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:
|
||||
# engine is sleeping.
|
||||
elif not self.model_executor.is_sleeping:
|
||||
with self.log_iteration_details(None):
|
||||
self.execute_dummy_batch()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user