💻Safetensors
Also known as .safetensors, Safetensors Format, Safetensors File
A safe file format for model weights. It holds numbers, never code.
Think of it like
It is like a sealed box of numbers. You can open it, and nothing jumps out.
Example
Lucy finds two copies of one model online. One is a .safetensors file and one is an old .bin file. She picks the safetensors one, so loading it cannot run hidden code.
Why it matters
Loading a model file should never be able to take over your machine. This format makes sure of that.
Definition
Common mistake
Key takeaways
- 1Numbers only. No code can hide inside.
- 2Fast to load. Read straight from the disk.
- 3Hub default. Most open models ship in it.