-
Notifications
You must be signed in to change notification settings - Fork 197
Description
Feature request
Make the packages needed for DL (e.g., Torch and Brevitas) optional, or create flavors of Concrete-ML that include only a subset of dependencies (e.g., concrete-ml[sklearn] which would include only the linear models).
Motivation
This would be particularly useful to reduce the size of Docker images based on Concrete-ML: for instance, adding Concrete-ML with uv or poetry produces, by default, Docker images of >6GBs. With a bit of tweak, we can force it to use the CPU version of Torch, which still produces a Docker image of >2GBs. Considering that in some cases only a subset of models is needed, it could be interesting.
However, I don't know the structure of the code, so it may break a lot of things creating different subpackages/install options. Feel free to close this if this is unpractical. Thanks.