Skip to content

Instantly share code, notes, and snippets.

@edoakes
Last active August 25, 2021 19:02
Show Gist options
  • Save edoakes/90c4997abb2fd888d8ad5ed0d6505f5f to your computer and use it in GitHub Desktop.
Save edoakes/90c4997abb2fd888d8ad5ed0d6505f5f to your computer and use it in GitHub Desktop.
import ray
from ray import serve
ray.init(address='auto', namespace="serve-example", ignore_reinit_error=True) # Connect to the local running Ray cluster.
serve.start(detached=True) # Start the Ray Serve processes within the Ray cluster.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment