---
title: "Hugging Face downloads now work on huggingface_hub 1.22 and later"
description: "Cloudsmith now serves Hugging Face's Tree API, so hf download and snapshot_download work through Cloudsmith on huggingface_hub 1.22 and later."
canonical_url: "https://cloudsmith.com/changelog/hugging-face-downloads-now-work-on-huggingface_hub-1-22-and-later"
last_updated: "2026-11-11T16:55:25.195Z"
---
# Hugging Face downloads now work on huggingface_hub 1.22 and later

Cloudsmith now serves Hugging Face's Tree API, so `hf download` and `snapshot_download` work through Cloudsmith on huggingface_hub 1.22 and later.

Hugging Face clients download a model in two steps: they list the files in the repository, then fetch each one. From version 1.22, the client gets that list only from the Tree API. Cloudsmith serves the endpoint for both models and datasets.

If a model hasn't been cached in your repository, or hasn't been indexed yet, Cloudsmith fetches its file list from the Hugging Face upstream in real time. The download goes ahead as normal, and the model is indexed for later requests.

```json
{
  "_key": "930b06d88aef",
  "_type": "callout",
  "content": [
    {
      "_key": "afeaa066ce9b",
      "_type": "block",
      "children": [
        {
          "_key": "d2160264b33e",
          "_type": "span",
          "marks": [
            "strong"
          ],
          "text": "Note"
        },
        {
          "_key": "35e01f64d833",
          "_type": "span",
          "marks": [],
          "text": ": On huggingface_hub 1.20 and later, set "
        },
        {
          "_key": "e43b8ef98f9c",
          "_type": "span",
          "marks": [
            "code"
          ],
          "text": "HF_HUB_DISABLE_XET=1"
        },
        {
          "_key": "7b09d688ed89",
          "_type": "span",
          "marks": [],
          "text": " until Cloudsmith supports Hugging Face’s Xet storage."
        }
      ],
      "markDefs": [],
      "style": "normal"
    }
  ],
  "markDefs": null,
  "variant": "info"
}
```
