the-full-stack / fsdl-text-recognizer-2022

Source of the FSDL 2022 labs, which are at https://github.com/full-stack-deep-learning/fsdl-text-recognizer-2022-labs
https://fullstackdeeplearning.com/course
MIT License
81 stars 26 forks source link

consider using multistage builds in Dockerfiles #52

Open charlesfrye opened 2 years ago

charlesfrye commented 2 years ago

Multistage builds help separate heavier development dependencies from lighter production dependencies without compromising on all the things that make containers nice.

The classic example is separating compilation from deployment. If training is model compilation, why not borrow this best practice?

Less ambitiously, it might be possible to use them for splitting frontend/backend(s). Right now, we've got gradio and pandas in our Lambda, which is costing us whole seconds each inference.