|
| constexpr std::string_view | Mila::Distribution::kLicenseRole = "license" |
| | The source model's license text, and any attribution file the license names.
|
|
constexpr std::string_view | Mila::Distribution::kNoticeRole = "notice" |
|
constexpr std::string_view | Mila::Distribution::kTokenizerRole = "tokenizer" |
| | Optional, and separate from the weights so a reader can find it without knowing its name.
|
|
constexpr std::string_view | Mila::Distribution::kWeightsRole = "weights" |
| | The role every model must declare, because a model without weights is not one.
|
The mila.json schema: what files compose a model, and for which Mila.
One repository is one model is one name. Precision is part of that name rather than a key inside this document, which is why there is no variant map here. See Specifications/ModelDistribution.md.
| bool Mila::Distribution::parseVersion |
( |
std::string_view | text, |
|
|
int & | major, |
|
|
int & | minor, |
|
|
int & | patch ) |
Parse "<major>.<minor>[.<patch>]", with an optional prerelease or build suffix.
std::from_chars rather than sscanf: no locale involvement, and trailing text is examined rather than silently discarded, so a manifest whose version field holds something that is not a version is refused instead of read as one this build happens to satisfy. A '-' or '+' suffix is accepted because Mila's own versions carry one.
| std::string_view Mila::Distribution::kLicenseRole = "license" |
|
inlineconstexprexport |
The source model's license text, and any attribution file the license names.
Declared rather than merely shipped in the package, because only a declared file is fetched: every license Mila redistributes under requires its copy travel with the work, and a pull that delivered weights alone would leave the recipient holding a copy that carries neither. Llama 3.x 1.b.iii is the strictest of them – the notice must sit in a file distributed as part of the copy – and Apache 2.0 4(a) and MIT ask the same of the license text.