Edit on GitHub

types

List different implementations available for a particular MLEM type. If a subtype is not provided, list all available MLEM types.

Synopsis

usage: mlem types [-h]
                  [abc] [sub_type]

arguments:
  [abc]            Subtype to list implementations. List subtypes if not
                   provided.
  [sub_type]       Type of `meta` subtype

Description

This command can be used to see all available MLEM object types (classes), or to list the different implementations available for a specific SUB_TYPE (argument).

This can be useful, for example, to see which types of servers are supported for hosting and serving a model (see Examples).

Check out MLEM ABCs for a list of abstract base classes that subclass mlem.core.base.MlemABC. These constitute the building blocks of MLEM, and can be subclassed to add new functionalities and capabilities.

Options

  • -h, --help - Show this message and exit.

Examples

List MLEM abstract base classes

# List ABCs
$ mlem types
...

List available server implementations

$ mlem types server
['rmq', 'heroku', 'fastapi']

List configuration for a particular implementation

$ mlem types server fastapi
[not required] host: str = "0.0.0.0"
[not required] port: int = 8080
Content

šŸ› Found an issue? Let us know! Or fix it:

Edit on GitHub

ā“ Have a question? Join our chat, we will help you:

Discord Chat