Another powerful feature of MLEM is linking. Links are lightweight objects that represent MLEM Objects in other locations. You can reference links anywhere you need to specify MLEM Object bot in API and CLI.
Since links are also a type of MLEM Object, they share the same internal logic.
To load an instance of
MlemLink (and not the object it references) provide
The content of the link is very lightweight and consists of the following fields:
link_type- type of referenced object
fs) as in here
You can create relative links inside the same repository, which will basically create an alias for that object.
Also, since links can target specific commits, tags or branches in a versioned repository, they can be used in a variety of different scenarios, for example to create a centralized Model Registry.