Shuang Chen, Herbert Freeman
International Journal of Pattern Recognition and Artificial Intelligence
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.
Shuang Chen, Herbert Freeman
International Journal of Pattern Recognition and Artificial Intelligence
Robert Farrell, Rajarshi Das, et al.
AAAI-SS 2010
Wei Zhang, Timothy Wood, et al.
ICAC 2014
Chen-chia Chang, Wan-hsuan Lin, et al.
ICML 2025