benfred / implicit

Fast Python Collaborative Filtering for Implicit Feedback Datasets
https://benfred.github.io/implicit/
MIT License
3.57k stars 612 forks source link

Install implicit with conda-forge only for cpu (without gpu support) #687

Closed franzoni315 closed 1 year ago

franzoni315 commented 1 year ago

Hi, I am trying to deploy a recommendation systems with implicit, and I am using miniforge as the base of my environment. I would like to make a deploy of this program, but I am noticing it is installing cudatoolkit, which is about 760 MB. Since, I do not have any gpu available, I would not expect miniforge to download this. Does anyone know how to make miniforge to download only cpu-related dependencies, while installing implicit?

benfred commented 1 year ago

Hmm - that doesn't seem great. Does using the cpu meta-package still pull this in?

conda install -c conda-forge implicit implicit-proc=*=cpu
franzoni315 commented 1 year ago

It worked! Thanks very much! For some reason it is necessary to explicitly set this metapackage.