Skip to content

Commit 831c142

Browse files
committed
OPTIONAL COMMIT: Do not depend on zmq_control
1 parent 142da67 commit 831c142

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

megatron/rl/inference/megatron.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ async def kill(self):
252252

253253
async def suspend(self):
254254
if dist.get_rank() == 0:
255-
await self._client.pause_engines()
256-
await self._inference_engine.paused.wait()
255+
self._client.pause_engines()
256+
#await self._inference_engine.paused.wait()
257257

258258
async def resume(self):
259259
if dist.get_rank() == 0:
260260
self._client.unpause_engines()
261-
await self._inference_engine.running.wait()
261+
#await self._inference_engine.running.wait()
262262

263263
class MegatronChatLocal(ChatInferenceInterface, MegatronLocal): ...

0 commit comments

Comments
 (0)