Unverified Commit 58a5c46e by 湛露先生 Committed by GitHub

clean 'WG_BACKEND' unused code. (#258)

parent f8b4d085
......@@ -42,10 +42,8 @@ class WorkerHelper:
if os.getenv("WG_BACKEND", None) == "ray":
import ray
return ray._private.services.get_node_ip_address()
elif os.getenv("WG_BACKEND", None) == "torch_rpc":
from verl.single_controller.torchrpc.k8s_client import get_ip_addr
return get_ip_addr()
return None
else:
raise NotImplementedError("WG_BACKEND now just support ray mode.")
host_ipv4 = os.getenv("MY_HOST_IP", None)
host_ipv6 = os.getenv("MY_HOST_IPV6", None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment