chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:17:40 +08:00
commit f1825c8ceb
10096 changed files with 2364182 additions and 0 deletions
@@ -0,0 +1,20 @@
from ray import serve
from ray.serve.handle import DeploymentHandle
@serve.deployment(ray_actor_options={"num_cpus": 0.1})
def f(*args):
return "wonderful world"
@serve.deployment(ray_actor_options={"num_cpus": 0.1})
class BasicDriver:
def __init__(self, h: DeploymentHandle):
self._h = h
async def __call__(self):
return await self._h.remote()
FNode = f.bind()
DagNode = BasicDriver.bind(FNode)