pytorch / FBGEMM

FB (Facebook) + GEMM (General Matrix-Matrix Multiplication) - https://code.fb.com/ml-applications/fbgemm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fbgemm.permute_2D_sparse_data RuntimeError: Tensors of type TensorImpl do not have numel

RenfeiChen-FB opened this issue · comments

How to reproduce:

conda install -y pytorch cudatoolkit=11.3 -c pytorch-nightly
pip install --pre torchrec_nightly -f https://download.pytorch.org/whl/nightly/torchrec_nightly/index.html
(Torchrec_nightly build the latest FBGemm from source)

torchx run -s local_cwd dist.ddp -j 1x2 --script test_installation.py (inside torchrec github)

How to fix:

conda install -y pytorch=1.13.0.dev20220620 cudatoolkit=11.3 -c pytorch-nightly

What's the root cause:

FBGemm cannot work with the latest pytorch-nightly (20220621), 0620 is good

Thanks, @RenfeiChen-FB! Looks like the pytorch-nightly is fixed now, closing the issue!