An interactive terminal browser for .safetensors files
Project description
sft
An interactive terminal browser for .safetensors files.
Installation
The recommended way to install sft is via uv:
uv tool install sft-cli
This makes sft available globally as a command-line tool.
Alternatively, install via pip:
pip install sft-cli
Or install from source:
git clone https://github.com/matanby/sft-cli
cd sft-cli
pip install -e .
Usage
sft model.safetensors
Features
- Interactive TUI — Browse tensors with keyboard navigation
- Hierarchy View — Tensors organized by namespace (e.g.,
unet.down_blocks.0) - Fast — Header-only parsing, instant startup even for multi-GB files
- Safe — Read-only, never loads tensor data
- Search — Find tensors by name with
/ - Filter — Filter by dtype with
f - Sort — Sort by name, size, or rank with
s - Details — View tensor details with
Space - Metadata — View file metadata with
m
Keybindings
Navigation
| Key | Action |
|---|---|
↑/↓ |
Move selection |
←/→ |
Collapse/Expand tree node |
Enter |
Select/focus node |
Tab |
Switch between tree and table |
g/G |
Go to top/bottom |
Search & Filter
| Key | Action |
|---|---|
/ |
Start search |
f |
Open filter palette |
Esc |
Cancel search/close dialogs |
Sorting
| Key | Action |
|---|---|
s |
Cycle sort mode (name ↑↓, size ↑↓, rank ↑↓) |
Inspection
| Key | Action |
|---|---|
Space |
Show tensor details |
m |
Show file metadata |
Application
| Key | Action |
|---|---|
q |
Quit |
Technical Details
- Header-only parsing — sft reads only the safetensors header, never loading tensor data
- Instant startup — Even multi-GB model files open instantly
- Memory efficient — Uses minimal memory regardless of file size
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sft_cli-0.1.0.tar.gz.
File metadata
- Download URL: sft_cli-0.1.0.tar.gz
- Upload date:
- Size: 28.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
becc27828909f153ed26218d149cb688edd7d16b8d5d8b83b8aae581b0087ba2
|
|
| MD5 |
4d5f08769e7a72af9fe3ffa4f1254330
|
|
| BLAKE2b-256 |
51286bdc1f0b4ad0043df423672c173b7c25cfe0e896800aa401be5e6bf35272
|
Provenance
The following attestation bundles were made for sft_cli-0.1.0.tar.gz:
Publisher:
publish.yml on matanby/sft-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sft_cli-0.1.0.tar.gz -
Subject digest:
becc27828909f153ed26218d149cb688edd7d16b8d5d8b83b8aae581b0087ba2 - Sigstore transparency entry: 779849303
- Sigstore integration time:
-
Permalink:
matanby/sft-cli@a921c07cfe55c24bcde0f657a24661b2b158d178 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/matanby
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a921c07cfe55c24bcde0f657a24661b2b158d178 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sft_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sft_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff746e9f7e77bcd6803df8643aaf656047f5d4faca9e763a63d0d93ebe9e6345
|
|
| MD5 |
4d2fdb807bcdd44c300e8cf33517e4e1
|
|
| BLAKE2b-256 |
f3d908bd25ffc208d34c875aed1eefcaa2f78d904d9858457b4db677184eeddf
|
Provenance
The following attestation bundles were made for sft_cli-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on matanby/sft-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sft_cli-0.1.0-py3-none-any.whl -
Subject digest:
ff746e9f7e77bcd6803df8643aaf656047f5d4faca9e763a63d0d93ebe9e6345 - Sigstore transparency entry: 779849304
- Sigstore integration time:
-
Permalink:
matanby/sft-cli@a921c07cfe55c24bcde0f657a24661b2b158d178 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/matanby
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a921c07cfe55c24bcde0f657a24661b2b158d178 -
Trigger Event:
release
-
Statement type: