3 ms·
I am guessing that it would be possible to download the model from HuggingFace in the build step. I'm not sure though. Plus the Cog image is 14GB in size (menti
by timenova 3y ago
I am guessing that it would be possible to download the model from HuggingFace in the build step. I'm not sure though. Plus the Cog image is 14GB in size (mentioned in the article), I hope there's a way to reduce that.
- Szpadel 3y agoSure, but I'm still do not understand why multi-stage should make any difference, because at the end it's just flattened as layer from copy between stages. So the problem of size is exactly the same, and RUN with curl will have identical size as COPY layer from COPY --from=stage Am I missing something? I can see only benefit for build cache reuse, so download is independed from building code so you won't redownload 14G when you change code, is that what you had in mind?
- simonw 3y agoFly recommend you use one of their mountable volumes for large model files rather than building it into the Docker image - you get faster cold starts that way, plus I think the images have size limits.