How a hub repository is addressed: [hf:]<owner>/<repository>[@<revision>].
This is the fetch grammar, not the store's. A model is named by a single flat name; the owner is provenance that a consumer supplies and a user never types. Always compiled, because naming a model is not a network operation. See Specifications/ModelDistribution.md.
| std::optional< ModelCoordinate > Mila::Distribution::parseCoordinate |
( |
std::string_view | spec | ) |
|
|
export |
Parse a coordinate, or return nothing if the spec is not one.
Grammar: [hf:]<organization>/<repository>[@<revision>], where organization and repository allow only characters HuggingFace permits in a namespace. Anything path-shaped is rejected on purpose, so a mistyped path reads as a path mistake rather than as a request against a repository that does not exist.