Two Safetensors Tools for Inspecting Weights and Quantization

Puppet_Master_1337 · reddit · 2026-07-15

The author developed two tools to help understand safetensors and quantization, sharing their use cases and outputs.

1) modelexplorer.py

This tool organizes model tensors into a hierarchical tree view:

In the author's example, a Krea 2 weight file is broken down into a hierarchy, showing exactly how much space various blocks, MLPs, gates, and weight scales consume, along with their dtypes.

2) quantexplorer.py

This tool compares a base model with its quantized version, automatically identifying which tensors are:

It also deduces naming patterns from the results. In the author's example:

The author has open-sourced the project on GitHub under the MIT license and welcomes contributions; some of the code was written with the assistance of an LLM.

Original post →

More from Infra

Infra channel →