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
Hi, do you have plan to support Qwen2 training acceleration?
From transformers >= 4.37.0:
https://github.com/huggingface/transformers/blob/abbffc4525566a48a9733639797c812301218b83/src/transformers/models/qwen2/modeling_qwen2.py
But Unsloth cannot patch Attention layers with our manual autograd engine since either LoRA adapters are not enabled or a bias term (like in Qwen) is used.
Unsloth cannot patch O projection layer with our manual autograd engine since either LoRA adapters are not enabled or a bias term (like in Qwen) is used.
Unsloth 2024.1 patched 40 layers with 0 QKV layers, 0 O layers and 40 MLP layers.
@songkq Oh wait actually on further investigation Qwen 1.5 / 2 has combined sliding window and normal attention right - I think on shorter context windows it works, but larger ones I don't think I made it work (yet). On biases in QKV - I'll see what I can do for a future release for biases!
But Unsloth cannot patch Attention layers with our manual autograd engine since either LoRA adapters are not enabled or a bias term (like in Qwen) is used. Unsloth cannot patch O projection layer with our manual autograd engine since either LoRA adapters are not enabled or a bias term (like in Qwen) is used. Unsloth 2024.1 patched 40 layers with 0 QKV layers, 0 O layers and 40 MLP layers.
Do you have plan to support Qwen2 completely?
How did you convert the Qwen1.5/2 models to llama format?
@whyiug Hmmm I'm expecting most people to move over to Llama-3 - unless if Qwen is still needed by the community, I can work on it, but generally Llama-3 is SOTA for now
@whyiug Hmmm I'm expecting most people to move over to Llama-3 - unless if Qwen is still needed by the community, I can work on it, but generally Llama-3 is SOTA for now
@danielhanchen Hi, considering that Qwen is one of the most popular SOTA LLMs that support Chinese, it's worth to support it in unsloth.
Activity
danielhanchen commentedon Feb 3, 2024
@songkq Oh it should be supported if you use Llama-Factory's llamafy script. Ie maybe try https://huggingface.co/models?search=qwen%20llama. On the other hand, if some don't exist, you can try out Llama-Factory's script to convert Qwen to a Llama arch!
songkq commentedon Feb 8, 2024
@danielhanchen Yeah. It works.
But Unsloth cannot patch Attention layers with our manual autograd engine since either LoRA adapters are not enabled or a bias term (like in Qwen) is used.
Unsloth cannot patch O projection layer with our manual autograd engine since either LoRA adapters are not enabled or a bias term (like in Qwen) is used.
Unsloth 2024.1 patched 40 layers with 0 QKV layers, 0 O layers and 40 MLP layers.
Do you have plan to support Qwen2 completely?
danielhanchen commentedon Feb 8, 2024
@songkq Oh wait actually on further investigation Qwen 1.5 / 2 has combined sliding window and normal attention right - I think on shorter context windows it works, but larger ones I don't think I made it work (yet). On biases in QKV - I'll see what I can do for a future release for biases!
NilanEkanayake commentedon Feb 10, 2024
How did you convert the Qwen1.5/2 models to llama format?
danielhanchen commentedon Feb 11, 2024
@NilanEkanayake So there are some pre converted Qwen models on HuggingFace if you search for "qwen llama".
In terms of Qwen 1.5 / 2 - if it's a top feature request, I can add it in natively into Unsloth :)
Minami-su commentedon Feb 14, 2024
Please,add qwen1.5/2,need it.
Minami-su commentedon Feb 14, 2024
First, there is no code to convert Qwen 1.5 to Llama; Only the code that changed from Qwen to Llama. Second, the lamafied model has a lot to lose.
Minami-su commentedon Feb 14, 2024
danielhanchen commentedon Feb 15, 2024
@Minami-su Oh interesting llama-fying it made it worse? That's very unexpected
danielhanchen commentedon Feb 15, 2024
I'll see what I can do for Qwen 1.5/2 :))
whyiug commentedon Apr 19, 2024
Are you still doing the work? Hope to see any progress. @danielhanchen
danielhanchen commentedon Apr 21, 2024
@whyiug Hmmm I'm expecting most people to move over to Llama-3 - unless if Qwen is still needed by the community, I can work on it, but generally Llama-3 is SOTA for now
johnmai-dev commentedon Apr 27, 2024
Looking forward to supporting Qwen1.5
songkq commentedon Apr 30, 2024
@danielhanchen Hi, considering that Qwen is one of the most popular SOTA LLMs that support Chinese, it's worth to support it in unsloth.
danielhanchen commentedon May 1, 2024
Can take another look at Qwen!
danielhanchen commentedon May 16, 2024
So sorry on the delay @maiqingqiang @whyiug @songkq @Minami-su
Just added it in via a new PR by someone!
If you're on a local machine, please update Unsloth via
Colab and Kaggle is fine (just restart it)
141forever commentedon May 29, 2024
So do you support Qwen1.5 or Qwen2 after the1 updating?
danielhanchen commentedon Oct 9, 2024
@141forever Oh my apologies on the horrid delay - doing some Github Issues spring cleaning - I'm assuming you saw, but Qwen 2.5 is supported for now
Merge pull request unslothai#149 from rolandtannous/fix/fix-merged-mo…
Merge pull request unslothai#149 from rolandtannous/fix/fix-merged-mo…