Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Implement saving/loading MLEM objects (except for models and datasets) #660

Open
aguschin opened this issue Apr 26, 2023 · 0 comments
Open
Labels
core Related to things in mlem.core serialization Dumping and loading Python objects

Comments

@aguschin
Copy link
Contributor

Would be useful if server and deployment objects were serializable/deserializable by MLEM, just like ML models and datasets are.

Use case: I define a MLEM Python object representing server or deployment, and I want to dump it to later use it from CLI. Such objects can be somewhat complex - see https://github.com/aguschin/art-expert-telegram-bot/blob/main/fastapi-deployment/serve_with_monitoring.py#L16 and it's counterpart, defined manually https://github.com/aguschin/art-expert-telegram-bot/blob/main/fastapi-deployment/server.mlem. Would be cool to simply call mlem.api.save(myserver, "server.mlem") and get the object by the last link dumped.

@aguschin aguschin added core Related to things in mlem.core serialization Dumping and loading Python objects labels Apr 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
core Related to things in mlem.core serialization Dumping and loading Python objects
Projects
None yet
Development

No branches or pull requests

1 participant