What is model loading time?

Model loading time is the time from when a model's weight files start being read from disk or network storage until they sit in GPU memory with the inference engine ready for its first request.

Unlike model warm-up, which runs trial requests after loading so first requests are not slow, loading is getting the model into memory. Time to first token is each request's own wait once the model is ready; loading time occurs only when the model starts or restarts.

Topic
Inference and performance
Also known as
Model load time

How model loading time works

  1. Weight files are read from storage; this part depends largely on storage read speed.
  2. Weights are converted if needed and moved into GPU memory; for models split over several GPUs, each part loads onto its own GPU.
  3. The inference engine allocates memory and prepares cache space; some engines also compile compute graphs.
  4. Example calculation: with 140 GB of weights and 2 GB per second read speed, reading alone takes 140 / 2 = 70 seconds.

In more detail

PCIe transfer, pre-sharded weights and NCCL initialisation

In distributed deployments, loading is bounded not only by storage read speed (e.g., NVMe versus network storage) but also by host-to-GPU PCIe bandwidth, tensor-parallel sharding overhead and NCCL communicator initialisation. Pre-sharding checkpoints per GPU rank avoids redundant full-file reads on every worker.

Safetensors, GPUDirect Storage and pickle safety

Modern inference stacks rely on Safetensors with memory mapping (mmap) or direct-to-VRAM streaming (such as GPUDirect Storage and Run:ai Model Streamer) to bypass CPU bounce buffers and slow Python pickle deserialisation. Pickle-based weights also pose a security risk due to arbitrary code execution during loading.

What makes up a cold start and graph compilation cost

Model loading is only one segment of a cold start: container image pulls, Python and CUDA runtime initialisation, KV-cache allocation and CUDA graph capture or torch.compile steps can add tens of seconds on top of raw weight reading.

Commonly confused terms

TermHow it differs
Cold start latencyCold start latency encompasses the entire lifecycle from zero running replicas to serving the first request, including container scheduling, image pull, runtime initialisation, model loading time and warm-up.

Why model loading time matters for on-premises AI

In in-house systems it sets how long updates, restarts, failure recovery and new replicas under load take, meaning downtime and scaling speed. For large models it can take minutes. Fast local storage, file formats mapped straight into memory, quantised weights and standby replicas with the model preloaded cut it. Updates stay seamless by loading the new version while the old one serves.

ON-PREMISES EXAMPLE

In its in-house assistant's overnight update, a bank loads and warms up the new model version on a separate server, redirecting traffic once both finish, so users never see the loading time.

Common questions

What does model loading time depend on?

Mostly model size and storage read speed; also file format, transfer speed to the GPU and the inference engine's start-up steps.

Does model loading time affect users?

Only when the model restarts or a new replica starts. Updates can be seamless by moving traffic once the new version is ready.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.