跳到正文
Thomas Wolf· @Thom_Wolf · X·· 11 天前AI 评分61
AI 导读

Hugging Face 联创 Thomas Wolf 介绍,自今年夏天起公司自建 CDN,每月流出近 1 exabyte,约每秒 420 GB、每秒 80,000 次请求。原因是 AI 下载是少量超大文件且多由机器拉取,用户主要是少数云区域的 GPU 集群,与网页 CDN 的缓存假设不同。新 CDN 针对巨型对象和发布日流量洪峰设计,团队还上线了实时地图页面。

正文

AI downloads broke the usual CDN model

Since this summer, we're running our own CDN at Hugging Face. It's shipping almost 1 exabyte per month, which means, in practice, about 420 GB every second, through 80,000 requests per second.

Why did we need to build our own?

Well, CDNs were designed to ship many small web files to many people. AI downloads are pretty different: it's a few enormous files, a significant part of them pulled by machines.

This changes a lot of design assumptions.

You're not caching small objects close to users in hundreds of cities anymore: these users are for a big part GPU clusters sitting in a handful of cloud regions.

And a cached web page is useful to 1,000 visitors, while a cached 1,000 GB model is useful to far fewer clients, but each one wants all of it, immediately.

So we've built our own CDN, with caches adapted to massive objects, able to handle release-day mega-floods and multiple giant datasets and trending models being pulled at once.

The team made a live map of it at https://huggingface-cdn-live.static.hf.space/index.html

Hard to stop watching it - it's quite mesmerizing

来源:Thomas Wolf · x.com