Skip to content

Should be easy to specify mount volume #2255

Open
@noahgsolomon

Description

@noahgsolomon

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions