We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c755342 commit 0b58149Copy full SHA for 0b58149
lmdeploy/pytorch/engine/executor/ray_executor.py
@@ -433,6 +433,12 @@ async def forward_async(self, inputs):
433
outs = self.dag.execute(inputs)
434
ray.get(outs)
435
436
+ # free ray.put inputs
437
+ try:
438
+ ray._private.internal_api.free(inputs)
439
+ except Exception as e:
440
+ logger.warning(f'Free input ref failed: {e}')
441
+
442
async def get_output_async(self):
443
"""Get output async."""
444
return await self.remote_outs.get()
0 commit comments