This document is the authoritative contributor-facing contract for the current
t81 model import --json surface.
It defines what callers may rely on today without reading the CLI implementation. Anything not listed here as stable is still prototype-shaped and may change as the model-artifact intake wedge is refined.
t81 model import <file> --jsonThis is the only model family operation covered by this contract.
t81.model-import.v1Reference JSON Schema:
spec/rfcs/RFC-00D3-model-import-result-schema.jsonspec/rfcs/RFC-00D3-model-manifest-schema.jsonThese values are accepted by --format and may also appear in
source_format:
safetensorsbitnetggufIf --format is omitted, the CLI infers the format from the input extension.
Stable top-level fields:
schemaokinputsource_formatartifact_formattensor_countparameterstritsfile_size_bytesprovenancetensorsStable success values:
schema must equal t81.model-import.v1ok must equal trueStable top-level fields:
schemaokinputerrorStable failure values:
schema must equal t81.model-import.v1ok must equal falseThe exact error text is not stable in v1. Callers may rely only on the
presence of a human-readable error string.
input
source_format
artifact_format
tensor_count
tensorsparameters
trits
file_size_bytes
provenance
tensors
Each entry in tensors has these stable fields:
nameshapetritssparsityField meanings:
name
shape
trits
sparsity
The provenance object is a string-to-string map.
Currently observed keys include:
source_pathsource_sha3_512bridge_backendbridge_revisionOnly the object shape is stable in v1. Specific keys are format-dependent and may expand over time.
Guaranteed stable in v1:
t81 model import --jsont81.model-import.v1okprovenance as a string mapNot yet frozen in v1:
artifact_format string valueserror textprovenance key setThe current model import surface is intentionally narrow:
If this contract expands, prefer adding fields rather than renaming or redefining the stable ones listed here.
t81 model import --manifest <file> now emits a narrower persisted record
with schema t81.model-manifest.v1.
That manifest is intentionally outside this v1 import-report contract:
sparsityt81 model diff alongside live model artifactsTreat the manifest as a related but separate surface from
t81.model-import.v1.
Authoritative manifest contract:
docs/contracts/MODEL_MANIFEST_V1_CONTRACT.md