BOINC AI Safetensors

Safetensors

Safetensors is a new simple format for storing tensors safely (as opposed to pickle) and that is still fast (zero-copy). Safetensors is really fast πŸš€.

Installation

with pip:

Copied

with conda:

Copied

Usage

Load tensors

Copied

Loading only part of the tensors (interesting when running on multiple GPU)

Copied

Save tensors

Copied

Format

Let’s say you have safetensors file named model.safetensors, then model.safetensors will have the following internal format:

Safetensors is being used widely at leading AI enterprises, such as Hugging Face, EleutherAI, and StabilityAI. Here is a non-exhaustive list of projects that are using safetensors:

Last updated