feat: add Qwen2.5 0.5B Compatibility#282
Open
kjh2159 wants to merge 2 commits intoUbiquitousLearning:mainfrom
Open
feat: add Qwen2.5 0.5B Compatibility#282kjh2159 wants to merge 2 commits intoUbiquitousLearning:mainfrom
kjh2159 wants to merge 2 commits intoUbiquitousLearning:mainfrom
Conversation
Now QwenConfig can handle Qwen2.5 0.5B models Compatibility: fp32, q4_0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. Description
The current mllm cannot handle Qwen2.5 0.5B models.
For example, the existing mllm throws dummy words even though the model is FP32.
However, now
QwenConfigcan handle Qwen2.5 0.5B models.Basically, this modified
QwenConfigclass and its member functions do not harm the compatibility of the existing functionalities.2. Usage
The default Qwen model version of
QwenConfigis 1.5.To use Qwen2.5 0.5B models, you can add only "Qwen2.5" string to the arguments when constructing "QwenConfig" object.
# execution command example ./bin/demo_qwen \ -m qwen2.5-0.5b-instruct-q4_0.mllm \ -v vocab/qwen2.5_vocab.mllm \ -e vocab/qwen2.5_merges.txt \ -b 0.5B \ -r Qwen2.53. Model Files
I utilized the quantization and converters that mllm team provides.
And, the files for deployment of
qwen2.5-0.5bmodels are uploaded on my huggingface repository and you can download the file withcurlcommand.Click here for the huggingface repository.
Execute the following command to download it.