AI Pulse by Inblix

Hugging Face rewires file transfers, slashing upload times for 200GB models by 3x

Hugging Face Blog · Feb 12, 2025 · 2 min read · Read original article →

Curated by the Inblix editorial team


Featured image for article: Hugging Face rewires file transfers, slashing upload times for 200GB models by 3x

Uploading a 200GB model to Hugging Face shouldn’t feel like a lunch break you’ll never get back. The Xet team is now rolling out a production-grade content-defined chunking (CDC) system that, in some cases, makes transfers 2-3 times faster. They’ve open-sourced the core of it—xet-core and hf_xet, a Rust-powered integration for huggingface_hub—which ditches the old file-centric approach for one that slices data into chunks and reassembles them intelligently.

But here’s where the engineering gets genuinely interesting: pure chunking is a database nightmare. At Hugging Face’s scale—nearly 45PB across 2 million repositories—a naive approach would create roughly 690 billion entries in the content-addressed store. That volume would crush network requests, bloat metadata databases, and send infrastructure bills to the moon. The team’s key insight is that deduplication isn’t the goal; it’s just a tool to improve the builder experience. So they loosened the constraint.

Their fix is aggregation. Instead of tracking individual chunks, the system bundles them into content-addressed blocks up to 64MB, slashing CAS entries by a factor of 1,000. It also generates “shards”—mappings between files and chunks that reference those blocks—so the system knows exactly which parts of a file changed without re-uploading everything. The real cleverness, though, is in “key chunks.” This is a 0.1% subset of all chunks, selected via a simple modulo condition on the hash. A global index over these key chunks and their shards lets the client query a tiny sample and then leverage spatial locality to deduce that nearby chunks likely already exist. No per-chunk network call required.

The 3.5PB of .gguf files already on the Hub—mostly quantized versions of other models—are a particularly juicy target. Quantization naturally restricts value ranges, which creates the kind of repetition that makes deduplication shine. This isn’t just an academic cleanup; it directly accelerates the iteration cycle for teams shipping model variants. If you’ve ever stared at a progress bar while pushing a fine-tune, the implication is clear: less waiting, more shipping.

💡 Key Takeaways

  1. Hugging Face's new chunk-based transfer system speeds up uploads and downloads by 2-3x for large repositories by avoiding redundant data transfers.
  2. To prevent a metadata catastrophe at scale, the system aggregates chunks into 64MB blocks and uses 'shards' to map files, reducing database entries by a factor of 1,000.
  3. A 'key chunk' index covering just 0.1% of all chunks enables local deduplication without requiring a network query for every single data piece.
  4. The 3.5PB of quantized .gguf files on the Hub are a prime beneficiary, as their repetitive value ranges make them highly deduplicable.

Keep reading: See related articles below for more coverage on this topic.

Get smarter about AI

The sharpest AI news, curated daily. Delivered free to your inbox.

← Back to all articles