huggingface_hub v2.4.0 copies files into Buckets and flags outdated CLI extensions
1 hour ago
huggingface_hub v2.4.0: HfFileSystem copies files into Hugging Face Buckets (Xet files copy on the Hub with no download, and mv and rename now work inside a Bucket), hf extensions list shows outdated CLI extensions, hf extensions update repairs broken Python extensions, plus fixes for webhooks, cache lookups and hf cache verify. https://github.com/huggingface/huggingface_hub/releases/tag/v2.4.0 https://github.com/huggingface/huggingface_hub/compare/v2.3.0...v2.4.0
Ask about this presentation
Chapters
0:00Copy files into Buckets
0:12Three places a copy can start
0:22Xet files copy on the Hub
0:34Move and rename inside a Bucket
0:46Bucket to repo is not supported yet
0:5502: CLI extensions
0:57hf extensions list shows versions
1:09Outdated extensions say so
1:23hf extensions update repairs Python extensions
1:3603: Fixes
1:38Repository not found asks about auth
1:52Webhooks can watch discussions
2:03Cache lookups stay inside the cache
2:17Three more fixes
2:31Keep data in Buckets? Pick up 2.4.0
Show transcriptHide transcript
In huggingface_hub 2.4, HfFileSystem copies files into a Bucket. Until now, any copy that touched a Bucket stopped with a not implemented error.
The copy can start inside the same Bucket, in a different Bucket, or in a model, dataset or Space repo, so a dataset can land in a Bucket in one call.
Files stored with Xet are copied on the Hub by their hash, so nothing comes down to your machine. Other repo files are downloaded first, then uploaded to the Bucket.
fsspec moves a file by copying it and then deleting the source. So with copies working, moving and renaming files inside a Bucket work too.
Copies only go one way for now. Copying from a Bucket back into a model, dataset or Space repo is not supported yet.
Extensions for the hf command.
The extensions list only showed when each extension was installed. Now it adds the installed version, the latest one, and a hint naming every extension that's out of date.
Running an outdated extension prints a hint, at most once a day. The latest version is checked once a day too, to stay within GitHub's rate limits. One environment variable turns the checks off.
When a Homebrew upgrade removed the Python an extension was installed with, the extension stopped starting, and update said it was current. Now update rebuilds its virtual environment, even with no newer commit.
Fixes you may have hit.
Opening a private repo through HfFileSystem without a token gave the same not found error as a typo in its name. The error now also tells you to check that you're logged in.
Creating a webhook from the command line failed unless you named the repo domain, and discussions could not be watched at all. Now a new webhook watches both by default.
A filename that pointed at a parent folder, or an absolute path, could make a cache lookup resolve outside the cache folder. Those names are now rejected, the way downloads already rejected them.
Finding a single file with details returned nothing, which broke datatrove readers. Cache verify flagged its own metadata as extra files. And on Windows, it crashed when its output was piped.
If you keep data in Buckets, I'd upgrade for the copy alone: files stored with Xet land there without a download. The full list is in the 2.4 release notes on GitHub.
Up next
3:39Transformers runs Mistral Large 4 and trains LoRA on FP8 checkpoints
@hugging-face · 1 hour ago
3:05huggingface_hub v2.3.0 lists an 800,000-file dataset in 20 seconds, down from 13 minutes
@hugging-face · 1 week ago
2:27Transformers adds Reflection AI’s Beam and loads models on PyTorch 2.7 again
@hugging-face · 1 week ago
3:46Transformers v5.20.0 runs Meta's Muse Spark Open, and here is the hardware it needs
@hugging-face · 2 weeks ago
3:18huggingface_hub 2.2.0: hf jobs stats prints a snapshot, and parallel downloads always use hf_xet
@hugging-face · 3 weeks ago
3:12Transformers v5.19.0: EmbeddingGemma 2 and token-dispatch expert parallelism
@hugging-face · 3 weeks ago
2:53huggingface_hub's HfFileSystem now downloads a 2 GB bucket file in seconds
@hugging-face · 4 weeks ago
3:12Transformers v5.18.0: streaming speaker diarization, GGUF mixture-of-experts, FSDP2 with expert parallelism
@hugging-face · 1 month ago
2:12What huggingface_hub 2.0 changes, and why transformers keeps you on 1.x for now
@hugging-face · 1 month ago
