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
{{ message }}
Repository navigation
Feature request: discussions around new features within HF ecosystem with unsloth #34
Thank you very much for this great project and pushing this forward for the community !
With TRL / PEFT team we've seen that your example scripts heavily rely on PEFT / TRL libraries and we wanted to see if you need any help or have any feature request around HF ecosystem we would be happy to collaborate and see what we can do together
Note also recently SDPA has been integrated into transformers core huggingface/transformers#26572 we were also wondering if you did some comparisons with unsloth against transformers 4.36.0
changed the title [-]Feature request: discussions around new features within HF ecosystem[/-][+]Feature request: discussions around new features within HF ecosystem with unsloth[/+]on Dec 14, 2023
%%capture
# scaled_dot_product_attention added in 9th December 2023
# Supports Xformers, FA on old GPUs now (T4 for eg)
# But only for Pytorch 2.1.1+ We shall patch it ourselves for now
!pip install transformers bitsandbytes datasets sentencepiece accelerate trl peft
I manually patched them for SDPA, and so on Tesla T4s, I did in fact benchmark SDPA (not native transformers, but just SDPA).
So vs SDPA, Unsloth is 1.56x faster on a Tesla T4.
I wanted to actually use the latest transformers branch, but Colab's Pytorch is 2.1.0, and upgrading it to 2.1.1 would be quite slow - I started benchmarking Dec 8 ish, then HF released SDPA support I think Dec 9?
But more than happy to collaborate on anything!! Again great work with TRL and PEFT! I'm actively following huggingface/transformers#26037 :) so that'll be massive for the next HF release!
I'm also investigating LoftQ via PEFT as suggested by someone I was chatting with - I haven't tried it yet, but hopefully VRAM doesn't explode!
Thanks very much for your positive reply @danielhanchen !
We can collaborate on many things, one thing I had in mind is to integrate an API that can leverage unsloth as backend on PEFT. It will be easier for us if we can discuss about it on slack, can you send me an email address I can reach you out at?
Activity
[-]Feature request: discussions around new features within HF ecosystem[/-][+]Feature request: discussions around new features within HF ecosystem with unsloth[/+]danielhanchen commentedon Dec 14, 2023
@younesbelkada Hey there! Saw many of ur PRs for HF - so great work again! So I actually saw SDPA support and I think I wrote a note in my benchmarks.
For eg: Alpaca with SDPA on Tesla T4 ie:
I manually patched them for SDPA, and so on Tesla T4s, I did in fact benchmark SDPA (not native transformers, but just SDPA).
Eg (The Flash Attention column is in fact SDPA)
So vs SDPA, Unsloth is 1.56x faster on a Tesla T4.
I wanted to actually use the latest transformers branch, but Colab's Pytorch is 2.1.0, and upgrading it to 2.1.1 would be quite slow - I started benchmarking Dec 8 ish, then HF released SDPA support I think Dec 9?
danielhanchen commentedon Dec 14, 2023
But more than happy to collaborate on anything!! Again great work with TRL and PEFT! I'm actively following huggingface/transformers#26037 :) so that'll be massive for the next HF release!
I'm also investigating LoftQ via PEFT as suggested by someone I was chatting with - I haven't tried it yet, but hopefully VRAM doesn't explode!
younesbelkada commentedon Dec 15, 2023
Thanks very much for your positive reply @danielhanchen !
We can collaborate on many things, one thing I had in mind is to integrate an API that can leverage unsloth as backend on PEFT. It will be easier for us if we can discuss about it on slack, can you send me an email address I can reach you out at?
danielhanchen commentedon Dec 16, 2023
@younesbelkada Email is on my profile! :)
Nightly (unslothai#34)
Nightly (unslothai#34)
Nightly (unslothai#34)
Merge pull request unslothai#34 from unslothai/feature/openai-chat-co…