Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sft_cli-0.1.0.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sft_cli-0.1.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

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

Hashes for sft_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 becc27828909f153ed26218d149cb688edd7d16b8d5d8b83b8aae581b0087ba2
MD5 4d5f08769e7a72af9fe3ffa4f1254330
BLAKE2b-256 51286bdc1f0b4ad0043df423672c173b7c25cfe0e896800aa401be5e6bf35272

See more details on using hashes here.

Provenance

The following attestation bundles were made for sft_cli-0.1.0.tar.gz:

Publisher: publish.yml on matanby/sft-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for sft_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff746e9f7e77bcd6803df8643aaf656047f5d4faca9e763a63d0d93ebe9e6345
MD5 4d2fdb807bcdd44c300e8cf33517e4e1
BLAKE2b-256 f3d908bd25ffc208d34c875aed1eefcaa2f78d904d9858457b4db677184eeddf

See more details on using hashes here.

Provenance

The following attestation bundles were made for sft_cli-0.1.0-py3-none-any.whl:

Publisher: publish.yml on matanby/sft-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page