|
Mila
Deep Neural Network Library
|
An installed model: what the manifest published, plus how this copy came to be here. More...
Public Member Functions | |
| const ModelFile * | file (std::string_view role) const |
| bool | isLocal () const noexcept |
| True when nothing served this: it was published from this machine. | |
| std::string | origin () const |
| Where it came from, for display. Never a key. | |
Public Attributes | |
| std::string | architecture |
| std::string | base_model |
| std::vector< ModelFile > | files |
| std::string | hub |
| Where this copy came from. | |
| std::string | installed_at |
| bool | instruct { false } |
| Instruction-tuned. Decides the prompt template a consumer applies. | |
| std::string | license |
| std::string | minimum_mila_version |
| std::string | name |
| The store's key, and the only name a user types. Unique across the store. | |
| std::string | owner |
| std::string | repository |
| std::string | revision |
| The resolved commit, not the ref that was asked for. Empty for a local install. | |
| std::string | variant |
| Descriptive. The name carries the precision; this says what the bytes actually are. | |
| std::string | weight_quantization |
An installed model: what the manifest published, plus how this copy came to be here.
The name is the key and the only thing in the path. Everything about origin is a field, so a record copied out of the store still says what it describes and where it came from.
| std::string Mila::Distribution::ModelRecord::hub |
Where this copy came from.
Never published, and never part of the path.
A model published from this machine leaves hub empty. Origin is mutable – a locally published model may be pushed to a hub later – which is the reason it is a field rather than a directory: changing it must not move files.