Skip to main content

AI Model Explorer

See any Hugging Face model's architecture from its safetensors header, without downloading the weights.

pip install ai-model-explorer

Command line

ai-model-explorer inspect Qwen/Qwen3-8B
Qwen/Qwen3-8B
  family decoder · 8.19B parameters · 16.4 GB of weights
  read 46.1 KB from 5 file(s), 399 tensors
  width 4096 · layers 36 · heads 32 · kv heads 8 · head dim 128 · ffn 12288 · vocab 151936
  components:
    (root) (backbone) · d=4096
      model.layers: 36 blocks · Transformer
  config.json: agrees with the weights
  • ai-model-explorer inspect REPO --json prints the full result: components, layer stacks, block types, edges between components, hyperparameters, quantization and the config check. Add --tensors to get the role of every tensor.
  • ai-model-explorer inspect ./model.safetensors or a folder works offline.
  • ai-model-explorer open [REPO] starts the web app on your machine and opens it in the browser (--lang th for Thai).
  • Gated or private repos: set HF_TOKEN or pass --token. A mirror can be set with HF_ENDPOINT.

Python

from ai_model_explorer import inspect, summary

a = inspect("deepseek-ai/DeepSeek-V3")
print(a["totals"]["params"], a["hyperparameters"]["experts"])   # 684489845504 256
print(summary(a))

Only the header bytes of each weight file are requested (a median of 79 KB per repo in our benchmark of 191 popular checkpoints), plus config.json. The analysis is the same JavaScript code that runs the website, executed in an embedded QuickJS engine, so results match the web app exactly. No Node.js, PyTorch or transformers needed. Typical models take well under a second; the very largest manifests (DeepSeek-V3, 92k tensors) take about ten seconds.

How accurate is it?

On 510 architectures from the transformers library, 96.8% of tensors get the right role (95.0% with every name replaced by a random token), and parameter totals are exact for all 510, including FP8, NVFP4 and GPTQ storage. Details are in the paper.

MIT License © 2026 Sattaya Singkul

Metadata

Release files for ai-model-explorer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-model-explorer 0.1.0
File Size Uploaded Provenance Actions
ai_model_explorer-0.1.0.tar.gz 616.2 kB With provenance Details for ai_model_explorer-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-model-explorer 0.1.0
File Interpreter ABI Platform Actions
ai_model_explorer-0.1.0-py3-none-any.whl Python 3 none any Details for ai_model_explorer-0.1.0-py3-none-any.whl

Total release size: 1.2 MB

Release files / ai_model_explorer-0.1.0.tar.gz

Download URL ai_model_explorer-0.1.0.tar.gz
Size 616.2 kB
Tags Source
SHA-256 checksum
How to use checksums
315b419ae6f048d733fa1528c603a96370e16ddd49a48c340eb52e3d731c1e20
BLAKE2b-256 checksum
How to use checksums
99becf14529149f617c2b5373c4a13184e3531c4fb777673e69ebad43333b832
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / ai_model_explorer-0.1.0-py3-none-any.whl

Download URL ai_model_explorer-0.1.0-py3-none-any.whl
Size 623.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
778b39c2aa59450b6583939ce9f1dbd47b4866f913e81c9a04983bc40c8876a0
BLAKE2b-256 checksum
How to use checksums
c31d9612f718abb3c97af825672ea1936ee76d2f49e1b24f76790210249a0ed7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for ai-model-explorer 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ai_model_explorer-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page