---
title: "Xet is on the Hub"
description: "Hugging Face migrated its first model and dataset repositories from Git LFS to Xet storage, which uses content-defined chunking (~64 KB chunks aggregated into ~64 MB blocks) so that only changed bytes are uploaded."
url: "https://swe.quest/articles/xet-is-on-the-hub-31527082840b41cc"
canonical: "https://huggingface.co/blog/xet-on-the-hub"
source: "Hugging Face"
published: "2025-03-18"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["storage-systems","performance","load-balancing","scalability"]
---

# Xet is on the Hub

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-03-18, 9 min read, Case study. Original: [https://huggingface.co/blog/xet-on-the-hub](https://huggingface.co/blog/xet-on-the-hub)

## Summary

Hugging Face migrated its first model and dataset repositories from Git LFS to Xet storage, which uses content-defined chunking (~64 KB chunks aggregated into ~64 MB blocks) so that only changed bytes are uploaded. The migration moved 4.5 TB and ~6% of Hub download traffic in one day and exposed two production issues. First, unaligned range requests from hf\_transfer forced CAS to stream whole blocks, a 4:1 read amplification. Adding chunk-length metadata to the block format fixed this and cut GET latency ~35%. Second, unflushed page cache during uploads caused disk throttling and pod load imbalance, which was mitigated with per-pod concurrent upload limits. The core lesson is that incremental migrations of real traffic surface problems test environments can't.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Load balancing](https://swe.quest/tags/load-balancing.md) (Infrastructure)
- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)

## Prerequisites

- Git LFS basics
- content-addressed storage
- object storage like S3 ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))

## Keywords

Xet, Hugging Face Hub, Git LFS, content-defined chunking, Amazon S3, hf\_transfer, hf\_xet

## Related posts

- [Migrating the Hub from Git LFS to Xet](https://swe.quest/articles/migrating-the-hub-from-git-lfs-to-xet-20a0038190c32d42.md): Hugging Face · 2025-07-15 · Medium · 9 min read · Storage systems, Schema migrations, Scaling, ML platforms
  Hugging Face moved 500,000 repositories and about 20 PB from Git LFS to its Xet content-addressed storage with almost no user disruption.
- [From Chunks to Blocks: Accelerating Uploads and Downloads on the Hub](https://swe.quest/articles/from-chunks-to-blocks-accelerating-uploads-and-downloads-on-the-hub-0403426cd59197cb.md): Hugging Face · 2025-02-12 · Medium · 9 min read · Storage systems, ML platforms, Data structures, Performance engineering
  Hugging Face's Xet storage backend uses content-defined chunking for deduplication but avoids per-chunk overhead by aggregating chunks into content-addressed blocks of up to 64MB and using shards to map files to chunks.
- [Rearchitecting Hugging Face Uploads and Downloads](https://swe.quest/articles/rearchitecting-hugging-face-uploads-and-downloads-9e61a9e3c6d67f4e.md): Hugging Face · 2024-11-26 · Medium · 7 min read · Storage systems, System design, CDN & edge, Cloud platforms, Capacity planning
  Hugging Face's Xet team is replacing the Hub's direct-to-S3 uploads and CloudFront downloads with a content-addressed store (CAS) built on "dumb reads, smart writes": reads fetch reconstruction info from CAS, and writes are chunked, deduplicated and validated before reaching S3.
- [From Files to Chunks: Improving HF Storage Efficiency](https://swe.quest/articles/from-files-to-chunks-improving-hf-storage-efficiency-389481ed0fa30735.md): Hugging Face · 2024-11-20 · Medium · 5 min read · Storage systems, Algorithms, Version control, Cost optimization
  Hugging Face's Xet team plans to replace file-level Git LFS storage with content-defined chunking (CDC), where a rolling hash over a sliding window sets variable-size chunk boundaries and chunks are deduplicated in a content-addressed store, so edits only upload and store changed chunks.
- [Meta’s AI Storage Blueprint at Scale](https://swe.quest/articles/meta-s-ai-storage-blueprint-at-scale-5c0823e3afed9f38.md): Meta Engineering · 2026-07-01 · Medium · 11 min read · Storage systems, ML platforms, Caching, System design, Performance engineering
  Meta rebuilt its BLOB-storage stack on top of the Tectonic block layer to stop storage from stalling GPUs in AI training.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
