Closed wassimseif closed 3 years ago
Hey @wassimseif, sadly neither Longformer nor Reformer works on PyTorch/XLA . There is just too much dynamic tensor reshaping happening. I think @ibeltagy made Longformer work on PyTorch/XLA when respecting certain limitations (only local attention)
Hey @patrickvonplaten, Understood. Is there some wiki that specifies which model works on XLA & which don't ?
@wassimseif, running longformer on pytroch-xla is tracked in this issue https://github.com/allenai/longformer/issues/101. I am aiming to make that code available soon, probably this week.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi. Got the same error. Any update on this issue? Thanks!
Environment info
transformers
version: 3.0.2Who can help
Longformer/Reformer: @patrickvonplaten
Information
Model I am using (Bert, XLNet ...): longformer: allenai/longformer-large-4096
The problem arises when using:
The tasks I am working on is:
To reproduce
Steps to reproduce the behavior: My Model
Error