v0.46.1
Browse filesSee https://github.com/quic/ai-hub-models/releases/v0.46.1 for changelog.
README.md
CHANGED
|
@@ -11,61 +11,58 @@ pipeline_tag: text-generation
|
|
| 11 |
|
| 12 |

|
| 13 |
|
| 14 |
-
# Qwen2-7B-Instruct: Optimized for
|
| 15 |
-
## State-of-the-art large language model useful on a variety of language understanding and generation tasks
|
| 16 |
-
|
| 17 |
|
| 18 |
The Qwen2-7B-Instruct is a state-of-the-art multilingual language model with 7.07 billion parameters, excelling in language understanding, generation, coding, and mathematics.
|
| 19 |
|
| 20 |
-
This
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
|
|
|
|
| 25 |
|
|
|
|
| 26 |
|
| 27 |
-
|
|
|
|
| 28 |
|
| 29 |
-
- **Model Type:** Model_use_case.text_generation
|
| 30 |
-
- **Model Stats:**
|
| 31 |
-
- Input sequence length for Prompt Processor: 128
|
| 32 |
-
- Context length: 4096
|
| 33 |
-
- Number of parameters: 7.07B
|
| 34 |
-
- Precision: w4a16 + w8a16 (few layers)
|
| 35 |
-
- Information about the model parts: Prompt Processor and Token Generator are split into 5 parts each. Each corresponding Prompt Processor and Token Generator part share weights.
|
| 36 |
-
- Supported languages: English, Chinese, German, French, Spanish, Portuguese, Italian, Dutch, Russian, Czech, Polish, Arabic, Persian, Hebrew, Turkish, Japanese, Korean, Vietnamese, Thai, Indonesian, Malay, Lao, Burmese, Cebuano, Khmer, Tagalog, Hindi, Bengali, Urdu.
|
| 37 |
-
- TTFT: Time To First Token is the time it takes to generate the first response token. This is expressed as a range because it varies based on the length of the prompt. The lower bound is for a short prompt (up to 128 tokens, i.e., one iteration of the prompt processor) and the upper bound is for a prompt using the full context length (4096 tokens).
|
| 38 |
-
- Response Rate: Rate of response generation after the first response token.
|
| 39 |
|
| 40 |
-
| Model | Precision | Device | Chipset | Target Runtime | Response Rate (tokens per second) | Time To First Token (range, seconds)
|
| 41 |
-
|---|---|---|---|---|---|
|
| 42 |
-
| Qwen2-7B-Instruct | w4a16 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite Mobile | QNN_CONTEXT_BINARY | 13.65 | 0.170593 - 5.458976 | -- | Use Export Script |
|
| 43 |
|
| 44 |
-
##
|
| 45 |
|
| 46 |
-
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
## License
|
| 51 |
* The license for the original implementation of Qwen2-7B-Instruct can be found
|
| 52 |
[here](https://huggingface.co/Qwen/Qwen2-7B-Instruct/blob/main/LICENSE).
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
## References
|
| 57 |
* [Qwen2 Technical Report](https://arxiv.org/abs/2407.10671v1)
|
| 58 |
* [Source Model Implementation](https://github.com/QwenLM/Qwen2.5)
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
| 62 |
## Community
|
| 63 |
-
* Join [our AI Hub Slack community](https://qualcomm
|
| 64 |
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
|
| 65 |
|
| 66 |
## Usage and Limitations
|
| 67 |
|
| 68 |
-
|
| 69 |
|
| 70 |
- Accessing essential private and public services and benefits;
|
| 71 |
- Administration of justice and democratic processes;
|
|
|
|
| 11 |
|
| 12 |

|
| 13 |
|
| 14 |
+
# Qwen2-7B-Instruct: Optimized for Qualcomm Devices
|
|
|
|
|
|
|
| 15 |
|
| 16 |
The Qwen2-7B-Instruct is a state-of-the-art multilingual language model with 7.07 billion parameters, excelling in language understanding, generation, coding, and mathematics.
|
| 17 |
|
| 18 |
+
This is based on the implementation of Qwen2-7B-Instruct found [here](https://github.com/QwenLM/Qwen2.5).
|
| 19 |
+
This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/qwen2_7b_instruct) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary).
|
| 20 |
|
| 21 |
+
Qualcomm AI Hub Models uses [Qualcomm AI Hub Workbench](https://workbench.aihub.qualcomm.com) to compile, profile, and evaluate this model. [Sign up](https://myaccount.qualcomm.com/signup) to run these models on a hosted Qualcomm® device.
|
| 22 |
|
| 23 |
+
## Deploying Qwen2-7B-Instruct on-device
|
| 24 |
|
| 25 |
+
Please follow the [LLM on-device deployment](https://github.com/quic/ai-hub-apps/tree/main/tutorials/llm_on_genie) tutorial.
|
| 26 |
|
| 27 |
+
## Getting Started
|
| 28 |
+
Download pre-exported model assets from **[Qwen2-7B-Instruct on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/qwen2_7b_instruct)**.
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
+
## Model Details
|
| 33 |
|
| 34 |
+
**Model Type:** Model_use_case.text_generation
|
| 35 |
|
| 36 |
+
**Model Stats:**
|
| 37 |
+
- Input sequence length for Prompt Processor: 128
|
| 38 |
+
- Context length: 4096
|
| 39 |
+
- Number of parameters: 7.07B
|
| 40 |
+
- Precision: w4a16 + w8a16 (few layers)
|
| 41 |
+
- Information about the model parts: Prompt Processor and Token Generator are split into 5 parts each. Each corresponding Prompt Processor and Token Generator part share weights.
|
| 42 |
+
- Supported languages: English, Chinese, German, French, Spanish, Portuguese, Italian, Dutch, Russian, Czech, Polish, Arabic, Persian, Hebrew, Turkish, Japanese, Korean, Vietnamese, Thai, Indonesian, Malay, Lao, Burmese, Cebuano, Khmer, Tagalog, Hindi, Bengali, Urdu.
|
| 43 |
+
- TTFT: Time To First Token is the time it takes to generate the first response token. This is expressed as a range because it varies based on the length of the prompt. The lower bound is for a short prompt (up to 128 tokens, i.e., one iteration of the prompt processor) and the upper bound is for a prompt using the full context length (4096 tokens).
|
| 44 |
+
- Response Rate: Rate of response generation after the first response token.
|
| 45 |
|
| 46 |
+
## Performance Summary
|
| 47 |
+
| Model | Runtime | Precision | Chipset | Context Length | Response Rate (tokens per second) | Time To First Token (range, seconds)
|
| 48 |
+
|---|---|---|---|---|---|---
|
| 49 |
+
| Qwen2-7B-Instruct | QNN_CONTEXT_BINARY | w4a16 | Snapdragon® 8 Elite Mobile | 4096 | 13.65 | 0.170593 - 5.458976
|
| 50 |
|
| 51 |
## License
|
| 52 |
* The license for the original implementation of Qwen2-7B-Instruct can be found
|
| 53 |
[here](https://huggingface.co/Qwen/Qwen2-7B-Instruct/blob/main/LICENSE).
|
| 54 |
|
|
|
|
|
|
|
| 55 |
## References
|
| 56 |
* [Qwen2 Technical Report](https://arxiv.org/abs/2407.10671v1)
|
| 57 |
* [Source Model Implementation](https://github.com/QwenLM/Qwen2.5)
|
| 58 |
|
|
|
|
|
|
|
| 59 |
## Community
|
| 60 |
+
* Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
|
| 61 |
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
|
| 62 |
|
| 63 |
## Usage and Limitations
|
| 64 |
|
| 65 |
+
This model may not be used for or in connection with any of the following applications:
|
| 66 |
|
| 67 |
- Accessing essential private and public services and benefits;
|
| 68 |
- Administration of justice and democratic processes;
|