Open
Description
Most images built w/ cog download most models in the setup() fn rather than being baked into the image.
And this means every time you run cog predict() you need to download the models again and again.
the two alternatives i've come to is building an app.py function that wraps the predict.py and passes all arguments into it, and using a docker run command with a mount volume specified.
so I'd like to request a field maybe named 'mount' to be added to the cog.yaml so that we don't have to do this docker run + app.py + rebuilding just to specify a mount volume.
If there's interest in a solution for this I can work on a PR 👍
Metadata
Metadata
Assignees
Labels
No labels