ray-project / ray

Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
https://ray.io
Apache License 2.0
33.99k stars 5.77k forks source link

[core] calling remote function on ray.get_actor yields RuntimeError: Lost reference to actor #33020

Open scv119 opened 1 year ago

scv119 commented 1 year ago

What happened + What you expected to happen

 ray.get_actor(reducer_name).allreduce.remote(tensor, sequence)

throws exception RuntimeError: Lost reference to actor but

actor = ray.get_actor(reducer_name)
actor.allreduce.remote(tensor, sequence)

works

Versions / Dependencies

master

Reproduction script

N/A

Issue Severity

Medium: It is a significant difficulty but I can work around it.

stale[bot] commented 1 year ago

Hi, I'm a bot from the Ray team :)

To help human contributors to focus on more relevant issues, I will automatically add the stale label to issues that have had no activity for more than 4 months.

If there is no further activity in the 14 days, the issue will be closed!

You can always ask for help on our discussion forum or Ray's public slack channel.

auderson commented 12 months ago

reproduced on ray 2.7 and 2.8: image