Skip to content
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 'merge_pooled_embeddings' #3481

Open
bharaniabhishek123 opened this issue Dec 8, 2024 · 2 comments

Comments

@bharaniabhishek123
Copy link

bharaniabhishek123 commented Dec 8, 2024

After following instructions on the page : https://pytorch.org/FBGEMM/fbgemm_gpu-development/InstallationInstructions.html

I am getting error as below :

python -c "import torch; import fbgemm_gpu; print(torch.ops.fbgemm.merge_pooled_embeddings)"
WARNING:root:Could not the library 'fbgemm_gpu_py.so': /usr/local/lib/python3.10/dist-packages/fbgemm_gpu/fbgemm_gpu_py.so: undefined symbol: _ZNK5torch8autograd4Node4nameEv. This may be expected depending on the FBGEMM_GPU variant.
WARNING:root:Could not the library 'experimental/gen_ai/fbgemm_gpu_experimental_gen_ai_py.so': /usr/local/lib/python3.10/dist-packages/fbgemm_gpu/experimental/gen_ai/fbgemm_gpu_experimental_gen_ai_py.so: undefined symbol: _ZN4c10d23ncclGetErrorWithVersionE12ncclResult_t. This may be expected depending on the FBGEMM_GPU variant.
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.10/dist-packages/torch/_ops.py", line 1225, in getattr
raise AttributeError(
AttributeError: '_OpNamespace' 'fbgemm' object has no attribute 'merge_pooled_embeddings'

I followed below threads ,
#1618
#2130

but no luck.

The docker file contains image : nvcr.io/nvidia/pytorch:24.10-py3

@q10
Copy link
Contributor

q10 commented Dec 8, 2024

Hi @bharaniabhishek123 , would you happen to know what is the variant (e.g. cpu-only, cuda, rocm) and version of pytorch you are using? The missing symbols might indicate you are using a different version from what is expected. The instructions we provide cover installing everything from scratch in a fresh Conda environment, including pytorch.

@bharaniabhishek123
Copy link
Author

Sure, It was fbgemm-gpu (I also tried cuda nightly variant) , Pytorch Version is 2.5.0a0+e000cf0ad9.nv24.10 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants