-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SONAR installation issue on colab and kaggle #49
Comments
Reproduce on Kaggle CPU notebook:
Run imports: Throws error: Install fairseq2 on CPU: Run imports again: Throws error: how to resolve? I am following the recommended installation instructions given at github repos of sonar and fairseq2 |
pls resolve, same for me |
Hi, @nitishpandey04, @t1waz! variant=cpu
pip install torch==2.5.1 --extra-index-url https://download.pytorch.org/whl/${variant}
pip install fairseq2==v0.3.0rc1 --pre --extra-index-url https://fair.pkg.atmeta.com/fairseq2/whl/rc/pt2.5.1/${variant} Then If you prefer another version of Pytorch, then I believe all of the versions in the HEAD section here are available in 0.3.0 rc1; simply change to something like:
|
@elbayadm, just checked the CPU variant - it's working, thanks a lot for Your help |
Hi @elbayadm I am trying to run on GPU of Kaggle first, then I plan to replicate the process in my GPU with a different Cuda version. So, when I try on Kaggle GPU, this is happening - kaggle notebook link Can you please clarity how to install it on GPU variants? And one more doubt is that the cuda variants mentioned in this are cu118, cu121 or cu124 only. Kaggle P100 has 12.6 and my HPC has 12.2. How do I install it for cuda versions other than 11.8, 12.1 and 12.4? |
Hi @nitishpandey04! It looks like it was an issue with reading the variable ${variant}, this works for me PyTorch binaries ship with their own CUDA runtime, so you shouldn't worry about your machine's nvcc version as long as your GPU is compatible with the variant you select. In your case, A40 GPU is compatible with CUDA version 11.x and above. |
I am following the installation instructions given here. But running
pip install sonar-space
is overwriting the specific pytorch implementation I have installed following the set of variants given here.That is the reason fairseq2 is not working afterwords I guess, because sonar-space is overwriting the pytorch version other than what is required according to the variants table of fairseq2.
Please help, how to install SONAR in cloud notebooks like colab and kaggle?
The text was updated successfully, but these errors were encountered: