feat: add Qwen2.5 0.5B Compatibility #282
Open
+33
−8
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
QwenConfig
can handle Qwen2.5 0.5B models.Basically, this modified
QwenConfig
class and its member functions do not harm the compatibility of the existing functionalities.2. Usage
The default Qwen model version of
QwenConfig
is 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.5
3. Model Files
I utilized the quantization and converters that mllm team provides.
And, the files for deployment of
qwen2.5-0.5b
models are uploaded on my huggingface repository and you can download the file withcurl
command.Click here for the huggingface repository.
Execute the following command to download it.