4 ms·
Always build docker images with full models to avoid implicit runtime dependencies. Infact, disable dynamic model downloading from HuggingFace to keep docker bu
by ashishb 3y ago
Always build docker images with full models to avoid implicit runtime dependencies. Infact, disable dynamic model downloading from HuggingFace to keep docker builds hermetic.
https://ashishb.net/all/hermetic-docker-images-with-hugging-face-machine-learning-models/ https://ashishb.net/all/hermetic-docker-images-with-hugging-...
- vinni2 3y agoThanks for this. Can you explain a bit more? is it like it like it downloads a once and caches or do you need to provide the pre download model s in a volume?
- ashishb 3y agoThe model becomes part of the docker image.
- vinni2 3y agoI get that, but the model needs to be downloaded at least once? Do you download the models as part of the Dockerfile, then?
- ashishb 3y agoYeah
- vinni2 3y agoThanks. I am struggling a bit to login and download the model during GH CI pipeline. I keep getting invalid token error but it works when run locally. Any ideas? Sorry to post this question here.
- ashishb 3y ago> I keep getting invalid token error but it works when run locally. Any ideas? Sorry to post this question here. Invalid token error while executing what?