Latest
Databricks cuts upload time for terabyte-scale AI models by about 50x
Image: Databricks

Databricks cuts upload time for terabyte-scale AI models by about 50x

Chat about this article with your favourite AI tool

Databricks said it has made uploading large language models about 50 times faster and replicating them across regions about 20 times faster, turning a process that took days into one that takes hours. The company detailed the changes to the pipeline behind its Unity Gateway service.

According to Databricks, Kimi-K3, a 1.56 TB model, now uploads in about 32 minutes and reaches every serving region in about three hours. On the old path, the company had projected roughly a day to upload it and about a week to replicate it worldwide.

Databricks logo alongside a diagram of model delivery across regions
Image: Databricks

Why it mattered

Models served through Unity Gateway are distributed by the Databricks Artifact Registry’s Model Delivery Network. Each model is uploaded once to a central region and then copied to every serving region. Databricks said Unity Gateway hosts frontier models such as Kimi, GLM and Qwen on its own inference services and GPUs, and serves more than 125 trillion tokens per year.

To offer a new model on the day it is released, the weights must be uploaded and replicated within hours. As models passed the terabyte mark, that became hard. Databricks said Kimi-K2.7, at 600 GB, took more than 12 hours to upload and about three days to reach all regions, partly because long cross-region transfers dropped and had to restart.

The bottleneck was a single connection

Upload speeds sat at roughly 15 MB/s, well below available bandwidth. Databricks said it used AI agents to benchmark each stage and ruled out the cross-region network, receiving object storage, CPU, memory and local disk.

Databricks logo alongside a diagram of model delivery across regions
Image: Databricks

The cause was the HTTP/2 client. It multiplexed all concurrent transfers onto one connection, and that connection’s flow-control window capped throughput over long round trips. Running more transfers in parallel added nothing. Databricks said a single connection topped out at about 17–18 MB/s, while spreading transfers across separate connections scaled almost linearly past 200 MB/s.

Replication had a second problem: one job copied a model’s files one at a time. For Kimi-K3, that meant more than a hundred large files copied in sequence.

What Databricks changed

  • Switched the client to HTTP/1.1, so each concurrent transfer gets its own connection and flow-control window.
  • Added a worker pool for cross-region replication, so a model’s files are copied in parallel.
  • Used larger transfer chunks to reduce per-request overhead in cloud storage.
  • Raised the server-side flow-control window so each connection can keep more data in flight.

Together, Databricks said, these changes lifted upload throughput from about 15 MB/s to 600–800 MB/s and replication throughput from 18 MB/s to 340–420 MB/s. They also removed the retries and mid-transfer failures.

The numbers

For Kimi-K2.7, upload fell from about 12 hours to 14 minutes. Replication to a single region dropped from 8 hours 52 minutes to 26 minutes, and to all regions from about three days to 70 minutes.

For Kimi-K3, upload fell from an estimated 30 hours to 32 minutes. Replication to one region dropped from about 27 hours to about 1.5 hours, and to all regions from an estimated seven days to about three hours. Databricks said a new model can now be in production worldwide the same day.

What comes next

Throughput is still below available network bandwidth. Databricks said the remaining limit is structural: its OCI registry is content-addressed, so each object’s bytes must pass through the registry server in sequence to compute a digest.

The company is considering two further steps. One is direct upload to storage through short-lived, checksum-locked URLs, with the registry recording only metadata. The other is cloud-native copy, in which the object store copies files server-side for replication between regions within the same cloud.

Databricks also drew a broader lesson: HTTP/2 suits many small concurrent requests but is a poor default for bulk transfers of very large files over long distances, and unrevisited defaults can hide large performance gains.

Source: Databricks Blog