-
Notifications
You must be signed in to change notification settings - Fork 515
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
AttributeError: '_OpNamespace' 'fbgemm' object has no attribute 'jagged_2d_to_dense' #2425
Comments
Hi @zhuhaozhe could you let us know what is the PyTorch version you are using? It is likely that you have a non-nightly version of PyTorch installed. We will make this clearer in the installation instructions, but nightly fbgemm_gpu is intended to run against nightly PyTorch. |
Hi, @q10.
nightly fbgemm_gpu is intended to run against nightly PyTorch
|
I have same question.
but I just install fbgemm-gpu by pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/cu118/ |
Hi @gamdwk you should be installing the latest pytorch nightly, since fbgemm-gpu 0.6.0 is only compatible with pytorch 2.2+. The full installation instructions can be found in https://pytorch.org/FBGEMM/fbgemm_gpu-development/BuildInstructions.html. |
@zhuhaozhe Unfortunately, we don't have the bandwidth to offer support for the situation you have described. In general, our CI builds and tests the fbgemm-gpu package against published pytorch nightly releases, and the error signature you observe generally points to a mismatch between the pytorch version that the fbgemm-gpu pacakge was built against, vs the pytorch version installed in the system. If you have not already, please check the full installation instructions for fbgemm-gpu in https://pytorch.org/FBGEMM/fbgemm_gpu-development/InstallationInstructions.html, and let us know if you continue to see the issue. |
This is not expected to work as Pytorch will be compiled with C++11 ABI when you build from source whereas the Pytorch binary wheel be compiled with pre-C++11 ABI. FBGEMM nightly wheel via pip expects to be used with a pytorch compiled with pre-C++11 ABI. So, you have to either build both pytorch and fbgemm from source (with C++11 ABI) or use pip wheels for both. |
We are working on CPU-only build env.
When building latest Pytorch from src and install fbgemm_nightly via pip
We will met
Is there a way to build latest Pytorch from src while install fbgemm_gpu via pip can work?
Install pytorch nightly and fbgemm_gpu nightly via pip can work.
The text was updated successfully, but these errors were encountered: