megablocks warning and poetry

#8
by bzikst - opened

I"m getting warning !!!!!megablocks not available, using torch.matmul instead when using this model. Trying to install megablocks works well but poetry add git+https://github.com/nomic-ai/megablocks.git failes with ModuleNotFoundError: No module named 'torch'.

Is there any way to add megablocks with poetry?

Nomic AI org

I don't have any experience with poetry but you probably need to install megablocks after you have torch and run the equivalent of

pip install git+https://github.com/nomic-ai/megablocks.git --no-build-isolation
zpn changed discussion status to closed

For anyone getting the same error: poetry add megablocks works just fine. @zpn thank you for so fast help.

Nomic AI org

we made some modifications to megablocks so you need to install our updated version @bzikst

Got you. In fact, I'm getting faster inference with no megablocks installed in my case. As far as I see from modeling_hf_nomic_bert.py it's not critical to have this module installed. Maybe I'll just leave this for now :-)

Nomic AI org

that’s surprising! out of curiosity what type of hardware and batch size are you running this on?

i'm testing on RTX 3080 with bach size 64, CUDA 12.4

Sign up or log in to comment