You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I saw in its official code, it's highly sub-optimal (it uses the "vanillest" implementation of Attention, not even the Flash one!). I believe it will benefit greatly for pre-existing and recent optimizations from the NLP community. Examples include:
Linear "Rebased" Flash Attention - eliminates the quadratic attention cost and requires less rework than switching to Mamba, more compatible to existing architecture
Hybrid attention head sequence parallelism (e.g. FastSeq) including ZeRO (see Accelerated Transformer)
Layer offloading
Bitsandbytes/AutoGPTQ Quantization
And the best thing is that all these points (except for 1/2 and 3/4) can be combined!
With these optimizations we can hope to shrink the gap between the current requirements and the consumer/low spectrum server requirement
Can't wait to have it in the Transformers library 😬 Track
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, xAI!
From what I saw in its official code, it's highly sub-optimal (it uses the "vanillest" implementation of Attention, not even the Flash one!). I believe it will benefit greatly for pre-existing and recent optimizations from the NLP community. Examples include:
And the best thing is that all these points (except for 1/2 and 3/4) can be combined!
With these optimizations we can hope to shrink the gap between the current requirements and the consumer/low spectrum server requirement
Can't wait to have it in the Transformers library 😬 Track
Edit: add links to resources
Feel free to give feedback!
Beta Was this translation helpful? Give feedback.
All reactions