Most engineers never question Git. It's a solved problem—mature, well-understood, and ubiquitous. But Anthropic hit a wall training large language models: Git's design assumptions crumble when individual commits include 50GB checkpoint files and training runs generate thousands of snapshots per day. Traditional version control systems weren't built for AI workflows where the "code" is often the smallest artifact in the repository. This article unpacks why Anthropic built a custom source control system from the ground up, what architectural choices enable it to handle petabyte-scale training artifacts, and what that means for teams building at the intersection of infrastructure and machine learning.
Content-addressable storage and deduplication
Git stores objects by their SHA-1 hash—a content-addressable storage (CAS) model where identical content always produces the same identifier. This deduplicates files automatically: if two commits share a file, Git stores it once. This works brilliantly for source code where files rarely exceed a few megabytes and change incrementally. It collapses under AI training workloads.
A single model checkpoint from a large transformer can weigh 45GB. Training runs produce hundreds of these checkpoints—snapshots of model weights at different training steps. Most of that data is identical or near-identical between consecutive checkpoints. Git's object database will deduplicate exact matches, but a single changed weight tensor means storing the entire 45GB file again. The deltas between versions are usually small (a few hundred megabytes of actual parameter updates), but Git's packfile format compresses entire objects, not semantic model structures.
Anthropic's system takes the CAS principle further. Instead of treating a checkpoint as a monolithic blob, it chunks model weights into fixed-size or variable-size blocks before hashing. When a new checkpoint arrives, only the changed chunks get stored. Think of it like rsync for model weights: if 95% of the parameters haven't changed, you transfer and store only the 5% delta.
Sub-file chunking transforms deduplication from exact-match file comparison to block-level delta detection, reducing storage by an order of magnitude for iterative model snapshots.
This isn't Git LFS or DVC pointing to external storage—it's a native property of how the system represents files. The deduplication happens at sub-file granularity, transparently to users.
Metadata-content separation
Git interleaves metadata (commit objects, tree structures) and content (blobs) in the same object database. The repository is a single graph where every node matters. This tight coupling means operations like git log or git diff can thrash through gigabytes of packfiles to reconstruct history, even if you only care about commit messages. When your repository contains 10TB of model checkpoints and you want to see the last 50 commits, waiting for Git to walk that graph is unacceptable.
Anthropic's design splits the metadata layer from the content layer. Commit history, branch pointers, and tree structures live in a fast key-value store optimized for sequential reads—something like etcd or FoundationDB. Model weights and large artifacts live in object storage (S3, GCS) or a distributed filesystem, referenced by content hash but never pulled into the metadata operations. When you run the equivalent of git log, the system queries only the lightweight metadata store. It never touches the actual checkpoint files unless you explicitly fetch them.
This separation mirrors how databases distinguish between indexes and table data. You can scan commit history at thousands of commits per second because you're reading kilobytes of metadata, not terabytes of weights. The content layer becomes a pure CAS blob store—writes are append-only, reads are by hash, and garbage collection happens independently of version control semantics. Engineers get sub-second log and branch commands even when the backing repository holds petabytes.
Distributed caching layer architecture
AI training workloads produce commits at a fundamentally different cadence than software development. A typical codebase might see dozens of commits per day across a team. A training run checkpoints every 500 steps, potentially generating hundreds of commits in a single experiment. Researchers run dozens of experiments concurrently. You end up with commit rates measured in commits per second, not per hour.
Git's architecture assumes a mostly-linear history with occasional merges. Its data structures—packfiles, delta chains, ref updates—optimize for this pattern. High-velocity parallel commits create contention: every write to .git/refs/heads or .git/packed-refs is a serialization point. Even with worktrees and shallow clones, coordinating thousands of concurrent writers is a nightmare.
Anthropic's system uses a distributed caching layer to decouple writers from the canonical store. Each machine (training node, developer workstation) maintains a local cache of recent commits and chunks. When you create a new commit, it writes to the local cache first and asynchronously replicates to a central metadata service. The metadata service uses consensus (Raft, Paxos) to serialize commit ordering, but the hot path—writing a checkpoint during training—never blocks on network I/O.
The caching layer also optimizes reads. Fetching a commit pulls metadata immediately but stages chunk retrieval in the background. Frequently accessed chunks (like the last few checkpoints from a converging training run) get pinned in cache across multiple nodes. The system tracks access patterns and preemptively replicates hot chunks to nodes likely to need them. This is analogous to how a CDN works: writes go to origin, but reads almost always hit a nearby cache.
| Aspect | Git | Anthropic's System |
|---|---|---|
| Write path | Blocks on local disk + ref updates | Async replication to central store |
| Commit rate | ~10/sec before contention | Thousands/sec per node |
| Read path | Packfile traversal | Distributed cache with prefetch |
| Consistency | Immediate | Eventually consistent, ordered by consensus |
Git-like semantics in a custom system
Rebuilding source control from scratch risks alienating users. Developers have muscle memory for git commit, git diff, git checkout. Anthropic didn't abandon that—it preserved Git's conceptual model while changing the implementation. The system still has commits, branches, merges, and tags. You still create a commit by staging changes and writing a message. The difference is that the underlying storage engine knows about chunking, the metadata layer is external, and operations scale horizontally.
The command-line interface mirrors Git's. anth commit does what git commit does, but it chunks large files transparently. anth diff compares tree hashes and only fetches chunks necessary to reconstruct the delta. anth merge uses the same three-way merge algorithm Git does for text files, but falls back to model-specific merge strategies for weight tensors (like averaging parameters or discarding one branch).
This approach mirrors how Mercurial and Pijul built alternative VCS (version control system) tools while keeping familiar workflows. The goal isn't to retrain users—it's to fix the scalability floor without asking engineers to learn a fundamentally different paradigm. For most operations, an engineer switching from Git to Anthropic's system would notice faster performance and better handling of large files, but the mental model stays intact.
Lessons for scaling development tooling
Anthropic's decision to build custom source control wasn't about rejecting Git—it was recognizing that Git's core abstractions don't map to their problem space. Git was designed for kernel development: thousands of small text files, human-readable diffs, and occasional binary blobs. AI training inverts that: a few source files, gigabytes of opaque tensors, and checkpoints that matter more than code changes.
The decision to build custom comes down to abstraction misalignment. If your workflow requires constant workarounds (LFS for large files, shallow clones to avoid history, custom scripts to garbage-collect old checkpoints), the abstraction is fighting you. You're paying the complexity cost of the original tool plus the cost of your workarounds. At some point, a purpose-built system is simpler.
Other signals that custom tooling makes sense: when the performance gap is measured in orders of magnitude (Git taking hours where seconds matter), when third-party tools (DVC, Git LFS) add more operational burden than they solve, or when your workflow has fundamentally different consistency requirements (eventual consistency is fine for training checkpoints, but unacceptable for source code).
When an abstraction forces you to build workarounds that rival the complexity of the original tool, you've crossed the threshold where custom infrastructure becomes simpler than adaptation.
Building custom infrastructure is expensive. Anthropic likely has tens of engineers maintaining this system. For smaller teams, the right move is often to layer tooling on top of Git—custom garbage collection, chunking middleware, or a metadata service that references Git commits. The threshold for building from scratch is high: you need both the engineering resources and a problem domain where existing tools provably can't scale.
What this means for builders
If you're building ML infrastructure, the takeaway isn't "don't use Git"—it's "understand where Git's assumptions break." For small models and research prototypes, Git with LFS or DVC is fine. Once you hit multi-terabyte repositories or thousands of checkpoints per week, start planning an alternative. You don't need Anthropic's scale to benefit from their lessons: chunking large files, separating metadata from content, and caching aggressively are all patterns you can apply incrementally.
For infrastructure engineers, this reinforces a broader principle: every abstraction has a problem domain where it excels and a boundary where it collapses. Databases aren't filesystems. Filesystems aren't version control. Version control isn't artifact storage. When you cross those boundaries, you either pay the abstraction tax or you build something new. The skill is recognizing which side of the line you're on before you've spent a year fighting the wrong tool.
Watch for more purpose-built development tools in AI. Experiment tracking, dataset versioning, and hyperparameter management all face similar scaling challenges. The teams that win will be the ones who recognize when to adopt existing tools and when to build systems tuned to their specific workflow. Anthropic's source control is one data point in that trade-off—not a prescription, but a proof that reimagining core development infrastructure is sometimes the right move.
Conclusion
Git dominates software development because its design assumptions align with how most teams write code. Anthropic's decision to build custom source control reveals what happens when those assumptions no longer hold: you either constrain your workflow to fit the tool, or you build a tool that fits your workflow. For organizations training frontier AI models, the cost of the latter is justified by the bottlenecks the former creates. The result is a system that looks like Git to users but scales like a distributed database underneath. This isn't a story about Git's failure—it's a story about the limits of generalization. Every abstraction eventually meets a problem it can't solve, and the best engineers know when to stop bending the abstraction and start building something new.
