Python API
Reference for the ptwm Python package.
Python API
Reference for the ptwm Python package.
28 modules documented.
ptwm— PTWM — lossless compression for PyTorch model weights. (59 symbols)ptwm.ablation— PTWM ablation harness: resolved policy, bench-compress orchestration, attribution. (48 symbols)ptwm.classify— Tensor-role classifier chain. (50 symbols)ptwm.cli(0 symbols)ptwm.cli.bench— CLI for ptwm bench. (5 symbols)ptwm.cli.chains—weights chainssubcommand: validate and promote explored chains. (6 symbols)ptwm.cli.compress(7 symbols)ptwm.cli.decompress(6 symbols)ptwm.cli.ext— CLI for ptwm ext — manage installed extensions. (12 symbols)ptwm.cli.main(1 symbol)ptwm.cli.policy— CLI for ptwm policy — show / validate. (3 symbols)ptwm.cli.trust— CLI forptwm trust— manage trusted author keys. (6 symbols)ptwm.cli.utils(10 symbols)ptwm.codecs— Plane-level entropy coders. (45 symbols)ptwm.core— Core compression and decompression logic for weights. (0 symbols)ptwm.delta— Delta (reference-frame) compression primitives. (6 symbols)ptwm.entropy— Shannon entropy utilities for compressed-tensor analysis. (5 symbols)ptwm.ext_tooling(0 symbols)ptwm.ext_tooling.build— ptwm ext build — detect language, run the right toolchain, place the .wasm. (3 symbols)ptwm.ext_tooling.init— ptwm ext init — scaffold a new extension project from a template. (2 symbols)ptwm.ext_tooling.pack— ptwm ext pack — bundle into- .tar.zst. (1 symbol) ptwm.ext_tooling.sign— ptwm ext sign — sign a bundle and rewrite manifest with real ids. (1 symbol)ptwm.integrations— Integrations for third-party libraries. (13 symbols)ptwm.preprocessing— Dtype-aware preprocessing for lossless weight compression. (69 symbols)ptwm.random_access— Random-access loader for.ptwmcontainers. (14 symbols)ptwm.sharding— Sharded.ptwmwriters/readers. (12 symbols)ptwm.stores— Pluggable weight-storage backends behind a shared :class:WeightStoreAPI. (47 symbols)ptwm.utils— Utility functions for PTWM. (53 symbols)