AI Rookies

Safetensors

Fact

A model weight file format that stores data only and cannot run code.

In Plain Words

Safetensors is like a sealed bag of Lego bricks. It holds model parts. No sneaky wind-up toy can jump out.

It makes unknown model files safer to open. It also loads the model data faster.

Related Concepts

Model weights
Safetensors saves model weights in a data-only file.

Hugging Face
Hugging Face often uses Safetensors to share model weights.

Untrusted Model
Safetensors lowers the risk of code running from an unknown model file.