Talk

Rethinking Model Loading: safetensors, Portability, and IBM Spyre

Abstract

safetensors is widely used to distribute model checkpoints, especially through Hugging Face. fastsafetensors is a high-performance loader that reduces loading overhead through optimized file access and device transfers. The speaker is a maintainer of fastsafetensors, which is integrated with PyTorch systems including vLLM and SGLang.

Portable checkpoints do not always match the tensor formats accelerators need. Loading may require data-type and memory-layout conversions in addition to I/O and transfers, and these conversions can remain a bottleneck even after I/O is optimized.

Using IBM Spyre as a case study, this talk presents extensions to fastsafetensors. Converted weights are written directly into output files in parallel across shards, reducing intermediate copies. Later loads reuse cached weights when the source weights, conversion settings, and environment remain compatible.

We discuss cache validation, creation cost, storage overhead, and the boundary between generic file handling and device-specific conversion. Attendees will learn how to preserve portable model distribution while efficiently preparing tensors for accelerator execution.