Global volumes for Serverless are in beta. Features and behavior may change before general availability.
Mount path
Inside a worker, a global volume mounts at/runpod-volume, the same path used for network volumes on Serverless. Read your model files and other assets from this path in your handler function.
Attach a global volume to an endpoint
You attach a global volume when you create a new endpoint or edit an existing one. To attach a global volume to a new endpoint:- Go to Serverless and click + New Endpoint.
- Configure your endpoint, then expand Advanced.
- Under Global volume, select the volume you want to attach.
- Click Deploy.
- Go to Serverless and select your endpoint.
- Click Manage, then Edit Endpoint.
- Expand Advanced and select the global volume you want to attach.
- Click Save Endpoint.
Attaching a volume doesn’t copy any existing data, so upload your model files and other assets to the global volume before you attach it. Changing the attached volume triggers a new release and your workers redeploy to pick it up.
Limitations
- One global volume per endpoint: An endpoint can attach at most one global volume at a time.
- Mutually exclusive with network volumes: An endpoint can’t use a global volume and a network volume at the same time.