Hugging Face Scales Infrastructure to Serve 3 Million Models
Arek Borucki from Hugging Face discusses how the platform scaled its infrastructure to serve millions of AI models and users, detailing architectural decisions and database optimizations.

Visual TL;DR
3 million models now hosted, a 150x increase from a few years ago
From the article 3 mentionsHugging Face has experienced exponential growth, now boasting over 14 million users, 3 million public models, and 1 million datasets, with more than 30% of Fortune 500 companies utilizing the platform.
scaling infrastructure to support 14 million users and 50,000 organizations globally
From the article 2 mentionsMongoDB Atlas serves as the source of truth for all metadata, including user repositories, models, datasets, and billing information.
core infrastructure built on specific architectural choices for high scalability
optimizing database performance and scalability using MongoDB for model metadata
From the article 5 mentionsCrucially, MongoDB does not store the actual model artifacts or tokenizer files, which are kept separately in cloud object storage like AWS S3.
scaling infrastructure with Kubernetes for container orchestration and resource management
From the article 3 mentionsThe core of Hugging Face's infrastructure runs on Kubernetes, utilizing Horizontal Pod Autoscaler (HPA) to automatically adjust the number of pods based on CPU and memory utilization.
efficiently searching across 3 million models for developers to discover resources
From the article 6 mentionsTo address this, Hugging Face implemented several strategies: pre-computing tokens at insert time, using a denormalized collection optimized for reads, and leveraging MongoDB's Atlas Search, which is powered by Apache Lucene.
Hugging Face provides a robust and scalable platform for AI development
From the articleThis rapid expansion, fueled by major model releases like Llama and DeepSeek, necessitates a robust and scalable infrastructure.
Contents(6)
© 2026 StartupHub.ai. All rights reserved. You may not republish this article in full without a license. Search engines and AI research tools may crawl and summarize for reference. Bulk reproduction or model training requires a license. See our terms.
Written by
Daniel SingerEditor, StartupHub.ai
Daniel Singer is the editor of StartupHub.ai, a technology expert and thought leader on AI and its applications across sectors, from fintech and healthcare to developer tooling and consumer software. He writes and tests the tools covered here thoroughly and regularly, and built StartupHub.ai to give founders, operators and buyers a clearer read on what they are actually being sold.