xformers icon indicating copy to clipboard operation
xformers copied to clipboard

AttributeError: 'str' object has no attribute 'impl'

Open le-wei opened this issue 10 months ago • 3 comments

❓ Questions and Help

Hello, I am requesting assistance. I encountered the following error while using from xformers.ops import SwiGLU. My environment is cuda 11.8, torch 2.1.2+cu118, torchaudio 2.1.2+cu118, torchvision 0.16.2+cu118, and I compiled and installed it using:

pip install ninja
pip install -v -U git+https://github.com/facebookresearch/xformers.git@main#egg=xformers

Please provide some suggestions, thank you very much. image

le-wei avatar Apr 26 '24 01:04 le-wei

Have you solved this problem? I have a similar problem.

wuyefa avatar Apr 28 '24 02:04 wuyefa

try to use pip install xformers==0.0.23.post1

davidluciolu avatar Apr 28 '24 16:04 davidluciolu

Hi, You should try to update PyTorch to 2.2.0 - we will add this requirement soon anyway.

danthe3rd avatar Apr 29 '24 14:04 danthe3rd