Overview of fastsafetensors performance and compatibility
mainPerformance
fastsafetensors is designed for high-throughput model loading. Key performance characteristics include:
- Standalone loading: Up to 4.8x-7.5x faster than the default
safetensorsdeserializer. - NVMe Throughput: Can reach up to 26.4 GB/s with GDS (GPUDirect Storage).
- vLLM Integration: Significant reductions in startup time (e.g., from ~12s to ~4.7s for Llama-2-13B on 4x L40S).
- AMD ROCm: Provides a
nogdspath that outperforms standardmmapby 2.6x to 4.7x.
Platform Support
The library supports various environments including:
- Linux/CUDA
- ROCm (AMD)
- Windows
- 3FS
- Unified-memory systems (e.g., DGX Spark)
Compatibility
- Python: 3.10 - 3.14
- PyTorch: 2.11.0