Where Does a Model Live?

Follow a model release from a durable archive to the processor that runs it. The four stops describe one deployment pattern.

Cold archive → Online object storage → Local SSD → GPU memory

Cold archive holds older releases or recovery copies. Online object storage holds deployable artifacts accessible on demand. A local SSD can stage or reuse files near a worker. GPU memory holds active weights and intermediate data during serving.

  1. 1. Cold archive
    Preserve and recover
  2. 2. Object storage
    Keep releases ready
  3. 3. Local SSD
    Stage on the worker
  4. 4. GPU memory
    Run inference
Restoration and staging happen as needed. A running worker can keep its weights in memory between requests.
Recover an old model

Restore the archived object into a readable state. Verify the recovered files and publish the appropriate version to online storage. AWS S3 Deep Archive restoration can take hours.

Start a worker

Fetch the selected artifact, stage files locally if needed, then load the model into accelerator memory. A training checkpoint can add optimizer state for resuming training. Inference generally needs weights, configuration and tokenizer artifacts.

Answer another question

A running worker can use the weights already in GPU memory. It might also reuse prompt computation. Neither step requires restoring a cold copy for each request.

Compare From Floppy Disks to iCloud, A File You Could Hold, Western Digital and SanDisk, Who Built the Cloud?, and Ctrl+S.

Sources

AWS archive restoration · PyTorch distributed checkpointing

Return to What Makes AI Possible?