| Crates.io | safetensors_explorer |
| lib.rs | safetensors_explorer |
| version | 0.2.0 |
| created_at | 2025-06-11 19:25:14.222477+00 |
| updated_at | 2025-07-28 22:57:40.310939+00 |
| description | CLI utility to inspect and explore .safetensors and .gguf files |
| homepage | |
| repository | https://github.com/EricLBuehler/safetensors_explorer |
| max_upload_size | |
| id | 1709032 |
| size | 3,413,332 |
safetensors ExplorerAn interactive terminal-based explorer for safetensors and GGUF files, designed to help you visualize and navigate the structure of machine learning models.

safetensors and GGUF file structures/ keysafetensors index detection*.safetensors, model-*.gguf)cargo install safetensors_explorer
git clone https://github.com/EricLBuehler/safetensors_explorer
cd safetensors_explorer
cargo build --release
# Explore a single safetensors file
safetensors_explorer model.safetensors
# Explore a GGUF file
safetensors_explorer model.gguf
# Or if building from source
cargo run -- model.safetensors
cargo run -- model.gguf
# Explore all safetensors and GGUF files in a directory
safetensors_explorer /path/to/model/directory
# Recursively search subdirectories
safetensors_explorer -r /path/to/models
# The tool automatically detects and uses model.safetensors.index.json if present
safetensors_explorer /path/to/huggingface/model
# Explore multiple files as a unified model
safetensors_explorer model-00001-of-00003.safetensors model-00002-of-00003.safetensors model-00003-of-00003.safetensors
# Mix safetensors and GGUF files
safetensors_explorer model.safetensors model.gguf
# Mix files and directories
safetensors_explorer model.safetensors /path/to/additional/models
# Use wildcards to select multiple files
safetensors_explorer *.safetensors
# Match files with specific patterns
safetensors_explorer model-*.gguf
# Match numbered checkpoint files
safetensors_explorer checkpoint-[0-9]*.safetensors
# Combine multiple patterns
safetensors_explorer *.safetensors *.gguf
# Mix glob patterns with explicit paths
safetensors_explorer model.safetensors checkpoint-*.safetensors
| Key | Action |
|---|---|
↑ / ↓ |
Navigate up/down through the tree |
Enter / Space |
Expand/collapse groups, view tensor details |
/ |
Enter search mode to filter tensors |
Esc |
Exit search mode |
q |
Quit the application (or exit search mode if active) |
Ctrl+C |
Force quit |
Press / to enter search mode and start typing to filter tensors by name. The search:
Press Enter or Esc to exit search mode and return to the full tree view.
SafeTensors Explorer - model.safetensors (1/1)
Use ↑/↓ to navigate, Enter/Space to expand/collapse, q to quit
================================================================================
▼ 📁 transformer (123 tensors, 1.2 GB)
▼ 📁 h (120 tensors, 1.1 GB)
▼ 📁 0 (5 tensors, 45.2 MB)
📄 attn.c_attn.weight [Float16, (4096, 3072), 25.2 MB]
📄 attn.c_proj.weight [Float16, (1024, 4096), 8.4 MB]
📄 ln_1.weight [Float16, (4096,), 8.2 KB]
📄 mlp.c_fc.weight [Float16, (4096, 11008), 90.1 MB]
📄 mlp.c_proj.weight [Float16, (11008, 4096), 90.1 MB]
▶ 📁 1 (5 tensors, 45.2 MB)
▶ 📁 2 (5 tensors, 45.2 MB)
...
▶ 📁 31 (5 tensors, 45.2 MB)
📄 ln_f.weight [Float16, (4096,), 8.2 KB]
📄 wte.weight [Float16, (151936, 4096), 1.2 GB]
Selected: 1/342 | Scroll: 0
safetensors files from files, directories, or safetensors index filessafetensors files and extracts tensor metadatasafetensors files (.safetensors).gguf) with GGML tensor types including quantized formatssafetensors index files (model.safetensors.index.json)safetensors and GGML formatssafetensors - For reading safetensors filesgguf - For reading GGUF filescrossterm - For terminal UI and keyboard inputclap - For command-line argument parsinganyhow - For error handlingserde_json - For parsing safetensors index filesglob - For directory pattern matchingContributions are welcome! Please feel free to submit issues or pull requests.