Skip to main content

A terminal application to view safetensors files

Project description

SafeView

A terminal application to view safetensors files. SafeView provides a clean, interactive terminal interface for exploring safetensors files and Hugging Face models.

Features

  • Interactive terminal UI for browsing tensors
  • Detailed tensor information including shape, data type, and size
  • Statistical information about tensor values (min, max, mean, std) - loaded on demand when a tensor is selected
  • Support for local safetensors files and Hugging Face model repositories
  • Real-time search and filtering by tensor name
  • Clean and intuitive Textual-based interface
  • Optimized loading - only metadata is loaded initially, tensor statistics shown when a tensor is selected and enter is pressed

Installation

Using pip:

pip install .

Using uv:

uv pip install .

Development mode:

If you want to run in development mode, you can install in editable mode:

pip install -e .

or with uv:

uv pip install -e .

Usage

After installation, you can run the application directly from the command line:

safe-view /path/to/your/file.safetensors

Or for a Hugging Face model:

safe-view Qwen/Qwen3-0.6B

For help:

safe-view --help

Controls

  • q: Quit the application
  • h, j, k, l or arrow keys: Navigate between tensors
  • g: Go to top of the tensor list
  • G: Go to bottom of the tensor list
  • Ctrl+f / Ctrl+b: Page up/down
  • /: Enter search mode to filter tensors by name
  • Escape: Exit search mode
  • Click on a tensor in the left panel or press Enter to view its details and statistics on the right

Requirements

  • Python 3.9+
  • Dependencies listed in pyproject.toml

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

safe_view-0.2.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

safe_view-0.2.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file safe_view-0.2.0.tar.gz.

File metadata

  • Download URL: safe_view-0.2.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.13

File hashes

Hashes for safe_view-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1ebca6cb638a6e17d4b5d13be99838bcd562c8b3787e4af386145d44fc62cacc
MD5 8a9df92e8e700a56f27c5f0564dcbbf8
BLAKE2b-256 a3b32d6381486ef3b1ba1effdcc12130379b25598be2dd389d670a0538a93b9b

See more details on using hashes here.

File details

Details for the file safe_view-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: safe_view-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.13

File hashes

Hashes for safe_view-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b36dca1d9aa35256e3d748260541007accd6e84f2d340affc666753d84635d2
MD5 345ebcc4e27953a848a8178fa91256c9
BLAKE2b-256 db790b51bbc5bf8123b7eaca6b48702a4404919e6d5e9dbc19376084ecbbfb8b

See more details on using hashes here.

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