A fast, interactive terminal browser for .safetensors files.
If you work with ML models, you've probably found yourself wondering "what's actually in this .safetensors file?" — the layer names, shapes, dtypes, sizes. Maybe you want to check if a model has the layers you expect, compare two checkpoints, or just explore an unfamiliar architecture.
sft lets you do that instantly from your terminal. No Python scripts, no notebooks, no waiting for tensors to load into memory. It reads only the file header, so even multi-gigabyte models open in milliseconds.
The recommended way to install is via uv:
uv tool install sft-cliThis makes sft available globally as a command.
Or install with pip:
pip install sft-clisft model.safetensorsThat's it. Navigate with arrow keys, search with /, quit with q.
- Hierarchical browser — Tensors grouped by namespace (e.g.,
model.layers.0.attention) - Instant startup — Header-only parsing, works on multi-GB files
- Search — Filter tensors by name with
/ - Sort — By name, size, or rank with
s - Inspect — View full tensor details with
Space - Metadata — See embedded file metadata with
m - Read-only — Never touches your model files
| Key | Action |
|---|---|
↑/↓ |
Navigate |
←/→ |
Collapse/expand tree |
Tab |
Switch panels |
/ |
Search |
s |
Cycle sort mode |
Space |
Tensor details |
m |
File metadata |
f |
Filter by dtype |
q |
Quit |
MIT
