Closed AK51 closed 11 months ago
@AK51 Hey pleaase excuse us, can you try again when you can please?
@AK51 I was having the same issue initially. When installing LongNet using pip, it will also install torchscale. In the LongNet repository however, torchscale is forked and modified slightly in the init.py.
See original init.py from torchscale: https://github.com/microsoft/torchscale/blob/main/torchscale/__init__.py
In order to fix it you would need to clone the LongNet repository (which contains the respective changes) or clone + install torchscale to your working directory and modify the init.py yourself.
Mm... I tried to clone the LongNet repo again but I can not find cd flash_attn
May I have a straight forward installation instruction. Thx I can wait.
@kuehno Yeah torchscale was a big issue, we've fixed that now.
And, @AK51 and yeah we removed it as we made our own custom implementation for flash attention here: https://github.com/kyegomez/LongNet/blob/master/LongNet/attend.py
Hi,
I have installed LongNet in my Ubuntu with 4090. (Is it enough to run LongNet?) but when I type python example.py, there is error... I have tried "pip install torchscale", no help, same error.. >_< I am still reading the github and the paper, is there any demo python program I can play with first? Thx
Details (No error during LongNet installation)