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.
MemoryEstimateis 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metrik_explorer-0.1.0.tar.gz.
File metadata
- Download URL: metrik_explorer-0.1.0.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7767431102267ac8cdbb2c2f591e67df35cd69b1f919ebcf9fb125278e718a7f
|
|
| MD5 |
ee4c07b089b0c30eac5e34772f185238
|
|
| BLAKE2b-256 |
8973cbb2064f5bc5ce4b9a1923c4547ab4c8885ab0f27639451343a410b7c11c
|
Provenance
The following attestation bundles were made for metrik_explorer-0.1.0.tar.gz:
Publisher:
release.yml on Asmodeus14/Metrik
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metrik_explorer-0.1.0.tar.gz -
Subject digest:
7767431102267ac8cdbb2c2f591e67df35cd69b1f919ebcf9fb125278e718a7f - Sigstore transparency entry: 2303157909
- Sigstore integration time:
-
Permalink:
Asmodeus14/Metrik@313a81ac0f5125640aa6e50ad581f8742714c787 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Asmodeus14
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@313a81ac0f5125640aa6e50ad581f8742714c787 -
Trigger Event:
push
-
Statement type:
File details
Details for the file metrik_explorer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: metrik_explorer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
295505a325f3d05f61c22957073b2da78ccd19d85d8378e27cd672b48769afb5
|
|
| MD5 |
e2880e803cc0443400d057ec51071145
|
|
| BLAKE2b-256 |
5b476c7ee5b25b0a5b81405fe9f51efc3658cd5e499f8db061bf9a57e67f3bcd
|
Provenance
The following attestation bundles were made for metrik_explorer-0.1.0-py3-none-any.whl:
Publisher:
release.yml on Asmodeus14/Metrik
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metrik_explorer-0.1.0-py3-none-any.whl -
Subject digest:
295505a325f3d05f61c22957073b2da78ccd19d85d8378e27cd672b48769afb5 - Sigstore transparency entry: 2303158008
- Sigstore integration time:
-
Permalink:
Asmodeus14/Metrik@313a81ac0f5125640aa6e50ad581f8742714c787 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Asmodeus14
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@313a81ac0f5125640aa6e50ad581f8742714c787 -
Trigger Event:
push
-
Statement type: