Skip to main content

deepbom

Deployment-artifact inspection for on-device neural network models.

Identifies model artifact formats from their container signature and reads the contracts that can be decoded without loading tensor payload values.

$ pip install deepbom
$ deepbom inspect model.safetensors

model.safetensors
  sha256   a35fd03f52c12f4e78a246bec1927e9a169377fbb8905dc13165d285010e7a44
  format   safetensors   size 2.6 MB
  evidence u64 header length followed by a JSON header

tensors
  count              38
  parameters         1,377,408
  stored payload     2.6 MB
  dtypes             F16 x38

Container-level facts only. No tensor payload values were read.
$ deepbom inspect model.gguf

model.gguf
  sha256   cb95a6e10f28b76a1dd71c15560dec5a5eee8943f591ef45d11c129786b22cff
  format   gguf   size 509.0 KB
  evidence magic "GGUF" at offset 0

container
  gguf version       3
  tensors            39
  metadata           26 / 26 (complete)
  architecture       llama
  file type          2
  quant version      2

What it reads

Format Reported
SafeTensors tensor inventory, dtypes, shapes, parameter count, stored payload bytes, metadata, header/file size agreement
GGUF version, tensor count, full metadata key/value inventory, architecture, file type, quantization version
TFLite, ONNX, Core ML format identification and SHA-256 only

Format is decided from container evidence — FlatBuffer identifier, magic bytes, header structure — never from the filename extension. ONNX and Core ML are separated by their protobuf field layout rather than guessed.

Usage

deepbom inspect <file>
deepbom inspect <file> --json
deepbom --version

As a library:

from deepbom import inspect

artifact = inspect("model.gguf")
print(artifact.format, artifact.sha256)
print(artifact.detail["architecture"])
print(artifact.to_dict())

Scope

This package is pure Python with no dependencies. It reports container-level facts only: what the header and directory structures determine. Tensor payload values are never read, and nothing is inferred that the container does not state.

Graph structure, quantization contracts, predicted delegate placement, target-profile cost projections and CycloneDX ML-BOM export are not part of this package. For TFLite graph analysis:

npx deepbom audit model.tflite

ONNX, Core ML and runtime evidence are available in the browser version at https://deepbom.org.

Privacy

No network access. Model bytes, filenames and results are never uploaded.

License

ISC — see LICENSE.

Download files

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

Source Distribution

deepbom-0.1.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

deepbom-0.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file deepbom-0.1.0.tar.gz.

File metadata

  • Download URL: deepbom-0.1.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.2

File hashes

Hashes for deepbom-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6894229639b1f32ee9c0b5311116b97b2c6407cf43276f288a21bffe5b1145e6
MD5 c4ab7a17ecf5d32fdc5cf51716fc6f1d
BLAKE2b-256 c8d17678effdbf860d0e126ef503109ec59d70b2dd82dbbadd228583da73428e

See more details on using hashes here.

File details

Details for the file deepbom-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: deepbom-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.2

File hashes

Hashes for deepbom-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6fd80ca2ea05f934a631796472ce9a27157132ec6cc320b55b7c567044bff933
MD5 3639794253eb122699b0f7d062165325
BLAKE2b-256 53747faeb9db8f530cd27355882d0b0881b48a4923a587aec36eec5e76927c61

See more details on using hashes here.

Release history Release notifications | RSS feed

1.94.5

6 files

1.94.4

6 files

1.94.3

6 files

1.94.2

6 files

This release

0.1.0 This release

2 files

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