Safetensors
Short answer
Safetensors is a weight format designed so that loading a model cannot execute code, unlike the Python pickle format it replaced.
Older checkpoints were pickled Python objects, and loading one was equivalent to running whatever its author put in it. Safetensors is plain data with an index, so loading is reading.
It is the standard on Hugging Face. Local inference tools generally want GGUF instead, and converting between them is a routine step.
Related terms
Other ways people ask this
- what is safetensors