Skip to main content

Module model_record

Module model_record 

Source
Expand description

The central data model: a ModelRecord and the value types it composes.

Structs§

ModelRecord
A single model the kernel knows about: what it is, where it lives, how it runs, and how the user has configured it.
ModelSource
Where a model’s weights live and how it is identified.
ParamSpec
The schema of one tunable parameter a model exposes.
RuntimeRef
The runtime a model resolves to, plus how that choice was made.

Enums§

ParamType
The type of a tunable parameter.
Resolution
How a model was resolved to its runtime.

Functions§

stable_id
The stable identity of a model: the first eight bytes of the SHA-256 of the source’s (kind, path, repo) fields, hex-encoded. The fields are hashed with a length prefix so the mapping is injective — a | (or any byte) inside a path or repo cannot make two distinct sources collide. Two sources with the same kind, path, and repo map to the same id.