FIFoundationIndex
IndexMapAbout
Format / ProtocolCross-ModalLLMImageVideo

Safetensors

Also known as: .safetensors

Plain English

The modern, safe file format for storing and sharing AI model weights. It replaced older Python pickle files (.ckpt/.bin) that could hide malicious code, and it loads models into GPU memory much faster.

Technical Overview

Created by Hugging Face in Rust, Safetensors stores a small JSON metadata header followed by raw contiguous tensor buffers. It prevents arbitrary code execution, supports zero-copy memory mapping (mmap) for fast startup, and allows lazy/sharded loading of massive multi-hundred-gigabyte Checkpoints across GPUs.

Chronological Entries (2)

Direct Relations (3)