Closed weiji14 closed 3 months ago
Hey there! I noticed this with the notebook buttons as well. I've seen other projects provide multiple environment.yml
files, one for those with a local GPU and for those that would only use CPU. Often CPU may work for some folks but be slightly slower. I'm not certain if that's the case for Clay. But a thought on how one might structure the repo for different users.
This has been fixed by https://github.com/Clay-foundation/model/pull/273 using a custom environment.yml
file in a .binder
subfolder. Binder will use this in favor of the one in the main folder. In there we specified the cpuonly dependency, which limits to cpu install. The binder still takes a loooong time to build, but it works.
https://github.com/Clay-foundation/model/blob/main/.binder/environment.yml
Originally posted by @ritwikvashistha in https://github.com/Clay-foundation/model/issues/161#issuecomment-2002602847
The error I get when launching Binder at https://mybinder.org/v2/gh/Clay-foundation/model/main is:
For context, the binder button was added in #15 before we pinned to a specific CUDA version (done in 4d2d7c2b6c653fcd5452e38ee8b79f81174aab03/#37). We'll need to make the
environment.yml
file compatible with Binder again, probably by removing the*cuda*
pin, but still ensure that developers training the model have the correct version of CUDA installed (probably with more documentation).Alternatively, we could have the Binder build be dependent on Dockerfile - #166.