Skip to main content

metrik-explorer

Architecture, parameter, and memory analysis — without a forward pass, without torch, and without a GPU.

$ metrik explore ./models/TinyLlama-1.1B

Reads safetensors headers (a length-prefixed JSON blob) and config.json. No tensor is ever deserialized, no torch is imported, and no forward pass happens.

One honest caveat: ModelFingerprint.weight_digest is a merkle over the weight files, because identity has to be content-based — a benchmark result attached to a name rather than a digest is unfalsifiable (artifacts.md §6.1). So the command does stream every weight byte through BLAKE3 once. It is I/O-bound, not compute-bound, and nothing is held in memory, but it is not free on a 140 GB directory. Header parsing alone is free, and that is what the structural analysis uses.

Emits four artifacts:

Artifact What it carries
ModelFingerprint identity: merkle over weight files, config digest, param split
ModelGraph one node per tensor — no edges, declared as an omission
GraphSummary role/dtype/depth breakdown plus evidenced observations
MemoryEstimate analytic weights + KV cache, with stated assumptions

What it deliberately does not do

  • No ParamStats. Per-tensor statistics need the weight data and a blob format that is still an open question (artifacts.md §8, question 1).
  • No graph edges. Headers describe storage, not dataflow. A topology needs torch and a forward pass, which is a different loader behind the same contract.
  • No measured numbers. MemoryEstimate is analytic by type and can never contain one (artifacts.md §5).

Role classification is name-based pattern matching, so GraphSummary.classification_confidence always reports what fraction of parameters it could not classify. A confident breakdown of a model the heuristic did not understand is worse than no breakdown.

Download files

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

Source Distribution

metrik_explorer-0.1.1.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

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

metrik_explorer-0.1.1-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file metrik_explorer-0.1.1.tar.gz.

File metadata

  • Download URL: metrik_explorer-0.1.1.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for metrik_explorer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f1b618339e725e6f6a3db9b51835590457d00ded0cce10a18a854b94af7f467c
MD5 89a262c8edb3c7aa7e4e3f73bdcd53c3
BLAKE2b-256 9e76cf89346ff080cbc12013fdfc7d4e815f9d9ae76b7443883acd984b3bd0bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for metrik_explorer-0.1.1.tar.gz:

Publisher: release.yml on Asmodeus14/Metrik

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

File details

Details for the file metrik_explorer-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: metrik_explorer-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for metrik_explorer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0621a973854f93a24213228eef1e803c90e594cbd5f790efc5bf78a65e95e701
MD5 c4748dc1ae819e0c2ba1460d784b7f83
BLAKE2b-256 3b5b2904d0b03401db7b6f3e64a64e0e5cd2c54210ba15d68ce5b5d169c553a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for metrik_explorer-0.1.1-py3-none-any.whl:

Publisher: release.yml on Asmodeus14/Metrik

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