Skip to content

Make DL Packages Optional #1039

@AlexMV12

Description

@AlexMV12

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.

Metadata

Metadata

Assignees

No one assigned

    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