Back to Gap Map Infrastructure / Core ML frameworks & libraries

Safetensors

Hugging Face
open source / Overall score: 4.6(leading)

Safetensors is a file format and library for storing and loading tensors safely, designed as an alternative to Python pickle that avoids arbitrary code execution and supports fast zero-copy loading. It is implemented in Rust with Python bindings and provides loaders for PyTorch, TensorFlow, Flax, NumPy and PaddlePaddle. Hugging Face maintains it.

Openness

5 high confidence
5.0
license
Apache-2.0(OSI)
source
public
core features withheld
no

Both the Rust crate and the Python package are released under Apache-2.0, and the README gives build-from-source steps for the whole library. It mentions no paid, enterprise or hosted tier, so nothing is withheld from the public source.

Adoption

5 high confidence
5.0

Adoption is measured as PyPI downloads of the safetensors Python package in the trailing 30 days; the separate Rust crate is not counted in that figure.

Capability

4 high confidence
4.0

Safetensors is a storage format rather than a training or inference framework, so its scope is narrow. Within that scope it offers safe loading, zero-copy reads, lazy loading of individual tensors and bfloat16/fp8 support, with loaders for five frameworks.

Verified 2026-09-24