qaihm-bot commited on
Commit
b207760
·
verified ·
1 Parent(s): 8cdcdb5

See https://github.com/qualcomm/ai-hub-models/releases/v0.48.0 for changelog.

Files changed (2) hide show
  1. LICENSE +1 -0
  2. README.md +110 -0
LICENSE ADDED
@@ -0,0 +1 @@
 
 
1
+ The license of the original trained model can be found at https://huggingface.co/Qwen/Qwen3-4B/blob/main/LICENSE.
README.md ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: pytorch
3
+ license: other
4
+ tags:
5
+ - llm
6
+ - generative_ai
7
+ - android
8
+ pipeline_tag: text-generation
9
+
10
+ ---
11
+
12
+ ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/qwen3_4b/web-assets/model_demo.png)
13
+
14
+ # Qwen3-4B: Optimized for Qualcomm Devices
15
+
16
+ The Qwen3-4B is a state-of-the-art multilingual base language model with 4 billion parameters, excelling in language understanding, generation, coding, and mathematics.
17
+
18
+ This is based on the implementation of Qwen3-4B found [here](https://huggingface.co/Qwen/Qwen3-4B).
19
+ This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/main/qai_hub_models/models/qwen3_4b) 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 Qwen3-4B 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
+ There are two ways to deploy this model on your device:
29
+
30
+ ### Option 1: Download Pre-Exported Models
31
+
32
+ Below are pre-exported model assets ready for deployment.
33
+
34
+ | Runtime | Precision | Chipset | SDK Versions | Download |
35
+ |---|---|---|---|---|
36
+ | GENIE | w4a16 | Snapdragon® 8 Elite Mobile | QAIRT 2.42 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/qwen3_4b/releases/v0.48.0/qwen3_4b-genie-w4a16-qualcomm_snapdragon_8_elite.zip)
37
+ | GENIE | w4a16 | Snapdragon® X2 Elite | QAIRT 2.42 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/qwen3_4b/releases/v0.48.0/qwen3_4b-genie-w4a16-qualcomm_snapdragon_x2_elite.zip)
38
+ | GENIE | w4a16 | Snapdragon® X Elite | QAIRT 2.42 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/qwen3_4b/releases/v0.48.0/qwen3_4b-genie-w4a16-qualcomm_snapdragon_x_elite.zip)
39
+ | GENIE | w4a16 | qualcomm-qcs8275 | QAIRT 2.42 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/qwen3_4b/releases/v0.48.0/qwen3_4b-genie-w4a16-qualcomm_qcs8275.zip)
40
+ | GENIE | w4a16 | Qualcomm® QCS9075 | QAIRT 2.42 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/qwen3_4b/releases/v0.48.0/qwen3_4b-genie-w4a16-qualcomm_qcs9075.zip)
41
+ | GENIE | w4a16 | Snapdragon® 8 Elite Gen 5 Mobile | QAIRT 2.42 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/qwen3_4b/releases/v0.48.0/qwen3_4b-genie-w4a16-qualcomm_snapdragon_8_elite_gen5.zip)
42
+
43
+ For more device-specific assets and performance metrics, visit **[Qwen3-4B on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/qwen3_4b)**.
44
+
45
+
46
+ ### Option 2: Export with Custom Configurations
47
+
48
+ Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/main/qai_hub_models/models/qwen3_4b) Python library to compile and export the model with your own:
49
+ - Custom weights (e.g., fine-tuned checkpoints)
50
+ - Custom input shapes
51
+ - Target device and runtime configurations
52
+
53
+ This option is ideal if you need to customize the model beyond the default configuration provided here.
54
+
55
+ See our repository for [Qwen3-4B on GitHub](https://github.com/qualcomm/ai-hub-models/blob/main/qai_hub_models/models/qwen3_4b) for usage instructions.
56
+
57
+ ## Model Details
58
+
59
+ **Model Type:** Model_use_case.text_generation
60
+
61
+ **Model Stats:**
62
+ - Input sequence length for Prompt Processor: 128
63
+ - Context lengths: 512,1024,2048,3072,4096
64
+ - Use: Initiate conversation with prompt-processor and then token generator for subsequent iterations.
65
+ - Minimum QNN SDK version required: 2.42.0
66
+ - Supported languages: 100+ languages and dialects.
67
+ - 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).
68
+ - Response Rate: Rate of response generation after the first response token. Measured on a short prompt with a long response (with thinking); may slow down when using longer context lengths.
69
+
70
+ ## Performance Summary
71
+ | Model | Runtime | Precision | Chipset | Context Length | Response Rate (tokens per second) | Time To First Token (range, seconds)
72
+ |---|---|---|---|---|---|---
73
+ | Qwen3-4B | GENIE | w4a16 | Snapdragon® X2 Elite | 4096 | 29.989173316955565 | 0.07306119999999999 - 2.3379583999999998
74
+ | Qwen3-4B | GENIE | w4a16 | Snapdragon® X Elite | 4096 | 14.786919736862183 | 0.1217166 - 3.8949312
75
+ | Qwen3-4B | GENIE | w4a16 | Snapdragon® 8 Elite For Galaxy Mobile | 4096 | 25.431722831726074 | 0.0689817 - 2.2074144
76
+ | Qwen3-4B | GENIE | w4a16 | Snapdragon® 8 Elite Gen 5 Mobile | 4096 | 29.032558250427247 | 0.0536603 - 1.7171296
77
+ | Qwen3-4B | GENIE | w4a16 | Qualcomm® QCS9075 | 4096 | 12.981898975372314 | 0.1621608 - 5.1891456
78
+
79
+ ## License
80
+ * The license for the original implementation of Qwen3-4B can be found
81
+ [here](https://huggingface.co/Qwen/Qwen3-4B/blob/main/LICENSE).
82
+
83
+ ## References
84
+ * [Qwen3 Technical Report](https://arxiv.org/abs/2505.09388)
85
+ * [Source Model Implementation](https://huggingface.co/Qwen/Qwen3-4B)
86
+
87
+ ## Community
88
+ * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
89
+ * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
90
+
91
+ ## Usage and Limitations
92
+
93
+ This model may not be used for or in connection with any of the following applications:
94
+
95
+ - Accessing essential private and public services and benefits;
96
+ - Administration of justice and democratic processes;
97
+ - Assessing or recognizing the emotional state of a person;
98
+ - Biometric and biometrics-based systems, including categorization of persons based on sensitive characteristics;
99
+ - Education and vocational training;
100
+ - Employment and workers management;
101
+ - Exploitation of the vulnerabilities of persons resulting in harmful behavior;
102
+ - General purpose social scoring;
103
+ - Law enforcement;
104
+ - Management and operation of critical infrastructure;
105
+ - Migration, asylum and border control management;
106
+ - Predictive policing;
107
+ - Real-time remote biometric identification in public spaces;
108
+ - Recommender systems of social media platforms;
109
+ - Scraping of facial images (from the internet or otherwise); and/or
110
+ - Subliminal manipulation