lattice-contract
lattice-contract is the backend-neutral artifact contract package used by
mlx-lattice and future training-side exporters.
The forward contract is MLIR-first. Dialect declarations live in one annotated Python schema and generate the textual MLIR builder surface at import time, so exporters do not hand-maintain op-name and attribute-name maps.
It intentionally does not import MLX, Torch, native extensions, or backend
runtime objects. The exchange target is graph.mlir + weights.safetensors;
shallow package metadata can be added later, but graph semantics belong in
MLIR.
The package exports the artifact ABI constants used by builders and importers:
CURRENT_DIALECT_VERSION, DIALECT_SCHEMA_DIGEST, ARTIFACT_GRAPH_FILE,
and ARTIFACT_WEIGHT_FILE.
The current contract is IR v2. Sparse ABI coordinates are physical positions
and must be exactly divisible by the sparse stride. Portable convolution
artifacts declare accumulation = "canonical_f32"; FP16 may be used for tensor
storage but not to alter the graph's accumulation semantics.
Metadata
Release files for lattice-contract 0.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lattice_contract-0.6.3.tar.gz | 16.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lattice_contract-0.6.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.5 kB
Release files / lattice_contract-0.6.3.tar.gz
| Download URL | lattice_contract-0.6.3.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e748dca584f88b011fcc3f4507b44446e093c99bb8c650a1df78f65018e15190
|
|
BLAKE2b-256 checksum How to use checksums |
a82ca97681a453fe24f947f25a0b6336213c63cdba82c82f903d0e58bee29e62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / lattice_contract-0.6.3-py3-none-any.whl
| Download URL | lattice_contract-0.6.3-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b89bd25b916a81149280bff3f9c72910165eae1ceba097e2e88e214c18ea8831
|
|
BLAKE2b-256 checksum How to use checksums |
698618129a66e8edf8d8e8542248dd99effcbf74fbd234ee6ac3375d7170a6db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|