Overview
This repository hosts the instruction‑tuned Qwen2.5-7B-Instruct model. Compared to earlier versions, Qwen2.5 offers stronger performance in areas such as coding, mathematics, long‑form generation, structured data handling, and JSON‑based outputs. It also responds more reliably to a wide range of system prompts, useful for scenarios like role‑playing agents or chatbot configuration. This specific repository provides the 7.61B‑parameter instruction‑tuned model quantized and compiled for Ara240 DNPU acceleration.
Model Description
This is a quantized and compiled version of Qwen/Qwen2.5-7B-Instruct optimized for Ara240 DNPU.
- Base Model: Qwen/Qwen2.5-7B-Instruct
- Original Model Authors: Qwen Team, Alibaba Cloud
- Original License: Apache-2.0
- Modified by: NXP
Performance
- SpecD - Uses a small draft model to generate speculated tokens, which the main model then verifies.
- Unpack - A smaller model with 4-bit layers for prompt processing; these layers are unpacked to 8-bit precision at runtime.
- TTFT: - Time to first token (TTFT). Reported as a range: the lower bound corresponds to prompts up to 128 tokens, and the upper bound reflects prompts at maximum context length.
- Avg. Token Rate: Averge token rate over the context length.
| Model | Runtime | Context Length | SpecD | Unpack | Params (billion) |
Time To First Token (s) |
Avg. Token rate (Tokens/second) |
DDR Memory (GB) |
|---|---|---|---|---|---|---|---|---|
| Qwen2.5-7B-Instruct | r2.0.4 | 4096 | false | true | 7.61 | 1.90 - 57.11 | 6.51 | 8.106 |
Modifications
This model is a derivative work with the following changes from the original:
- Quantization: W4A8 - QuaRot (wikitext-2-raw-v1) + EQAT (timdettmers/openassistant-guanaco)
- Compilation: Compiled for Ara240 DNPU
- Format: Converted to DVM format for NPU deployment
Original model available at: Qwen/Qwen2.5-7B-Instruct.
Limitations and Biases
This model inherits all limitations from the original Qwen2.5-7B-Instruct model. Additional limitations:
- Hardware-specific: Only runs on Ara240 DNPU
- Quantization effects: May have accuracy differences due to quantization
License
This model is released under the Apache License 2.0, the same license as the original Qwen/Qwen2.5-7B-Instruct model.
Citation
- Qwen Team, “Qwen2.5: A Party of Foundation Models.” Sep. 2024. [Online]. Available: https://qwenlm.github.io/blog/qwen2.5/
- A. Yang et al., “Qwen2 Technical Report,” arXiv preprint arXiv:2407.10671, 2024.
If you use this model, please cite both this work and the original model:
@misc{qwen2.5,
title = {Qwen2.5: A Party of Foundation Models},
url = {https://qwenlm.github.io/blog/qwen2.5/},
author = {Qwen Team},
month = {September},
year = {2024}
}
@article{qwen2,
title={Qwen2 Technical Report},
author={An Yang and Baosong Yang and Binyuan Hui and Bo Zheng and Bowen Yu and Chang Zhou and Chengpeng Li and Chengyuan Li and Dayiheng Liu and Fei Huang and Guanting Dong and Haoran Wei and Huan Lin and Jialong Tang and Jialin Wang and Jian Yang and Jianhong Tu and Jianwei Zhang and Jianxin Ma and Jin Xu and Jingren Zhou and Jinze Bai and Jinzheng He and Junyang Lin and Kai Dang and Keming Lu and Keqin Chen and Kexin Yang and Mei Li and Mingfeng Xue and Na Ni and Pei Zhang and Peng Wang and Ru Peng and Rui Men and Ruize Gao and Runji Lin and Shijie Wang and Shuai Bai and Sinan Tan and Tianhang Zhu and Tianhao Li and Tianyu Liu and Wenbin Ge and Xiaodong Deng and Xiaohuan Zhou and Xingzhang Ren and Xinyu Zhang and Xipin Wei and Xuancheng Ren and Yang Fan and Yang Yao and Yichang Zhang and Yu Wan and Yunfei Chu and Yuqiong Liu and Zeyu Cui and Zhenru Zhang and Zhihao Fan},
journal={arXiv preprint arXiv:2407.10671},
year={2024}
}
- Downloads last month
- 108