Mila
Deep Neural Network Library
Loading...
Searching...
No Matches
Distribution.ModelManifest Module Reference

Classes

struct  Mila::Distribution::ModelFile
 One file composing a model, as the manifest declares it. More...
struct  Mila::Distribution::ModelManifest
 A model's published description. More...

Functions

ModelManifest Mila::Distribution::parseModelManifest (const std::string &text, std::string_view source)
 Parse a manifest, refusing anything a consumer would have to guess about.
void Mila::Distribution::requireCompatibleMilaVersion (const ModelManifest &manifest, std::string_view source)
 Refuse an artifact that needs a newer Mila.
std::string Mila::Distribution::toJsonText (const ModelManifest &manifest)
 Serialize a manifest.

Variables

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.

Files

file  Mila/Src/Distribution/ModelManifest.ixx
 The mila.json schema: what files compose a model, and for which Mila.