mlem icon indicating copy to clipboard operation
mlem copied to clipboard

Setting up venv from `model.mlem` meta

Open aguschin opened this issue 3 years ago • 2 comments

As @AlexIoannides suggested, there should be a way to install requirements from model metadata.

Something like

$ mlem pack my-model requirements
catboost==1.0.0
numpy==2.0.0

$ mlem pack my-model requiments -c target requirements.txt
< output written to requirements.txt >

More advanced option would be to create venv right from mlem command: $ mlem pack my-model venv -c target my-venv, or create envs with Pipenv or Poetry.

aguschin avatar Apr 26 '22 13:04 aguschin

Can't find the ticket, but we were discussing creating venv from those requirements, like:

$ mlem create-venv s3://yourbucket/model
# or even
$ mlem serve s3://yourbucket/model --create-venv

aguschin avatar Jun 03 '22 12:06 aguschin

@aguschin I think either of those options would be good.

AlexIoannides avatar Jun 05 '22 22:06 AlexIoannides

was competed in #434

aguschin avatar Nov 08 '22 15:11 aguschin

Fantastic!

AlexIoannides avatar Nov 08 '22 16:11 AlexIoannides