Skip to content

[Runpod] Support global volumes - #4535

Draft
peterschmidt85 wants to merge 6 commits into
masterfrom
pr_runpod_global_volumes
Draft

peterschmidt85 wants to merge 6 commits into
masterfrom
pr_runpod_global_volumes

Conversation

@peterschmidt85

@peterschmidt85 peterschmidt85 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Adds opt-in Runpod global volumes for sharing model weights and datasets across regions. Existing Runpod volume configurations keep their regional behavior. Create a global volume with:

type: volume
backend: runpod
name: models
global: true

Omit region and size; add volume_id to register an existing global volume. Runs use the existing volumes syntax. Creation, registration, mounting, and deletion use REST v2. Support is limited to one volume per run on Secure Cloud CPU/GPU Pods; unsupported Community Cloud and Instant Cluster offers are skipped before provisioning.

Do not configure auto_cleanup_duration for regional or global Runpod volumes: it may request deletion while a run is still using the volume (#3789).

The global configuration has its own Pydantic model, preserving the existing region and size capability contracts. The global field is confined to the Runpod models. CLI and frontend code remain unchanged.

Preserves backward compatibility:

  • Existing regional configurations keep their behavior. Regional requests omit global: false, so newer clients remain compatible with older servers.
  • Clients 0.22.0–0.22.8 can list/get global volumes and delete them by name. Responses supply the legacy empty region; clients before 0.22.2 also receive absent optional provisioning data because they require a numeric capacity. Volume ID and status are preserved. Stored configuration is unchanged.
  • Creating or registering global volumes with global: true requires a client and server with this feature.

Global volume charges are not included in the costs shown by dstack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant