This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
No clear way to overwrite requirements inferred by MLEM #689
Labels
enhancement
New feature or request
feedback
User's feedback
requirements
Finding requirements and dependencies needed to properly serialize objects
I have a lockfile, and I use https://www.pantsbuild.org/ as a build system. So I can get the exact 3rd party dependencies. But I have not found a clean way to override the requirements inferred by MLEM:
requirements
attributes that I can overwrite, but others (DockerModelDirectory, Server) have aget_requirements()
method instead. So I’d have to replace a method which is dirtier.docker_model_directory
requirements with those inferred by Pants, I am missing the serving requirements (fastapi, mlem, uvicorn,...).MlemModel
requirements by the correct requirements,and letDockerModelDirectory
aggregate the model requirements with the server requirements, I get a version mismatch because of errors in MLEM inference of the middleware requirements.DockerModelDirectory
myself instead of using the higher levelDockerImageBuilder
. This allows me to first calldocker_model_directory.write_distribution()
and thendocker_model_directory.write_requirements_file(correct_requirements)
to overwrite therequirements.txt
file.reported in Discord
The text was updated successfully, but these errors were encountered: