Skip to content

Instantly share code, notes, and snippets.

import sys
import modal
from modal import Image
ray_image = Image.from_registry("anyscale/ray:2.8.0-py39-cu118")
stub = modal.Stub("example-hello-world")
@stub.function(image=ray_image)