Skip to content

Download models on the fly #60

Description

@TimPietrusky

Is your feature request related to a problem? Please describe.
The Docker images are very huge and users would like to just use the base image (which doesn't contain any models). This would make it more convenient for them to work on the image and add things, without the need to upload a huge image all the time when they make changes.

Describe the solution you'd like

  • Specify the models they want via env variables
  • Make sure that private models can also be handled
  • Models are downloaded on first request to the worker or when the worker starts
  • Models are downloaded onto the network-storage. If this doesn't exist, we will not download anything, as this would totally screw up the cold start time otherwise

Describe alternatives you've considered

  • Use the base image
  • Download the models manually onto the network storage
  • Use the network storage with the deployed endpoint

Additional context
This idea came to life because of https://discord.com/channels/912829806415085598/1273963578369642557 and https://discord.com/channels/912829806415085598/1270792081580753047.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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