{
  "slug": "hf-spaces-volumes-mount-models-datasets-and-buckets-e864193de58d",
  "title": "hf Spaces volumes mount models, datasets, and buckets",
  "tools": [
    "hf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-02T15:59:04.000Z",
  "announced_at": "2026-04-02T15:59:04.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a Space needs filesystem access to Hub models, datasets, or buckets, pass one or more `-v`/`--volume` values to `hf repos create` or `hf repos duplicate`. Use `hf://[TYPE/]SOURCE:/MOUNT_PATH[:ro]`; models, datasets, and Spaces mount read-only, while buckets are read-write by default.",
    "examples": [
      "hf repos create <space-id> --type space --space-sdk <sdk> -v hf://<model-id>:/models -v hf://buckets/<owner>/<bucket>:/data",
      "hf repos duplicate <source-space-id> <destination-space-id> --type space -v hf://<model-id>:/models -v hf://buckets/<owner>/<bucket>:/data"
    ],
    "gotchas": [
      "Version: v1.9.0",
      "REPO_ID (required): Destination repo ID for `hf repos create`.",
      "--type space (required): Sets the repository type to Space; `--type` also accepts model or dataset.",
      "--space-sdk <sdk> (required): Sets the Space SDK; required when creating a Space.",
      "FROM_ID (required): Source repository ID for `hf repos duplicate`.",
      "[TO_ID]: Destination repo ID for `hf repos duplicate`; defaults to your namespace with the same repo name.",
      "-v, --volume TEXT: Repeat to mount volumes. Format: `hf://[TYPE/]SOURCE:/MOUNT_PATH[:ro]`. TYPE allows models, datasets, spaces, or buckets; it defaults to models when omitted. Models, datasets, and Spaces are always read-only; buckets are read-write by default. The `:ro` suffix selects read-only mounting. The docs do not describe volume values as mutually exclusive.",
      "Prerequisite: The CLI repository guide says the machine must be logged in and the user must own the repository or have write permission in its organization.",
      "Prerequisite: When creating a Space, provide its required SDK with `--space-sdk`.",
      "Volumes provide direct filesystem access to models, datasets, and storage buckets.",
      "Persistent storage is deprecated."
    ]
  },
  "why_it_matters": "Configure a Space to access model, dataset, or bucket files through mounted filesystem paths.",
  "before": "Use the deprecated persistent storage feature for Space storage.",
  "sources": [
    "https://github.com/huggingface/huggingface_hub/releases/tag/v1.9.0",
    "https://huggingface.co/docs/huggingface_hub/v1.9.0/en/package_reference/cli",
    "https://huggingface.co/docs/huggingface_hub/v1.9.0/guides/repository"
  ],
  "rank": 0.92036,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-dfcc33087e4b1309-0:gate",
    "evidence_hash": "230feb247f8f9129b09afffe4f0ffca9a30e2ff3f4eb16557d5ff0bfdbdd7860"
  },
  "review": {
    "draft_hash": "f1b7f1f6703627ea16a41d06ec89b5196eb3912f9698f4c569dc473d41c79710",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.74 (>= 0.6 needed)."
  }
}
