Qwen3-4B: Optimized for Qualcomm Devices

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.

This is based on the implementation of Qwen3-4B found here. This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the Qualcomm® AI Hub Models library to export with custom configurations. More details on model performance across various devices, can be found here.

Qualcomm AI Hub Models uses Qualcomm AI Hub Workbench to compile, profile, and evaluate this model. Sign up to run these models on a hosted Qualcomm® device.

Deploying Qwen3-4B on-device

Follow the GenieX quickstart to install GenieX and deploy the model on a target device.

See the LLM-on-Genie tutorial to run with the Genie runtime. Note: Genie support will be deprecated soon.

Getting Started

There are two ways to deploy this model on your device:

Option 1: Download Pre-Exported Models

Below are pre-exported model assets ready for deployment.

Runtime Precision Chipset SDK Versions Download
GENIE w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile QAIRT 2.51 Download
GENIE w4a16 Snapdragon® 8 Elite For Galaxy Mobile QAIRT 2.51 Download
GENIE w4a16 Snapdragon® X2 Elite QAIRT 2.51 Download
GENIE w4a16 Snapdragon® X Elite QAIRT 2.51 Download
GENIE w4a16 Qualcomm® Dragonwing™ IQ-8275 QAIRT 2.51 Download
GENIE w4a16 Qualcomm® SA8775P QAIRT 2.51 Download
GENIE w4a16 Qualcomm® Dragonwing™ IQ-9075 QAIRT 2.51 Download
GENIEX_LLAMACPP q4_0 Universal Download
GENIEX_QAIRT w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile QAIRT 2.51 Download
GENIEX_QAIRT w4a16 Snapdragon® 8 Elite For Galaxy Mobile QAIRT 2.51 Download
GENIEX_QAIRT w4a16 Snapdragon® X2 Elite QAIRT 2.51 Download
GENIEX_QAIRT w4a16 Snapdragon® X Elite QAIRT 2.51 Download
GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-8275 QAIRT 2.51 Download
GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-9075 QAIRT 2.51 Download

For more device-specific assets and performance metrics, visit Qwen3-4B on Qualcomm® AI Hub.

Option 2: Export with Custom Configurations

Use the Qualcomm® AI Hub Models Python library to compile and export the model with your own:

  • Custom weights (e.g., fine-tuned checkpoints)
  • Custom input shapes
  • Target device and runtime configurations

This option is ideal if you need to customize the model beyond the default configuration provided here.

See our repository for Qwen3-4B on GitHub for usage instructions.

Model Details

Model Type: Model_use_case.text_generation

Model Stats:

  • 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.
  • Supported languages: 100+ languages and dialects.

Performance Summary

Model Runtime Precision Chipset Context Length Response Rate (tokens per second)
Qwen3-4B GENIE w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 28.636064529418945
Qwen3-4B GENIE w4a16 Snapdragon® 8 Elite For Galaxy Mobile 4096 26.132177352905273
Qwen3-4B GENIE w4a16 Snapdragon® X2 Elite 4096 30.268534088134764
Qwen3-4B GENIE w4a16 Qualcomm® Dragonwing™ IQ-8275 4096 18.016719818115234
Qwen3-4B GENIE w4a16 Qualcomm® Dragonwing™ IQ-9075 4096 17.71731367111206
Qwen3-4B GENIE w4a16 Qualcomm® Dragonwing™ IQ-X7181 4096 12.90106201171875
Qwen3-4B GENIE w4a16 Qualcomm® Dragonwing™ Q-8750 4096 26.132177352905273
Qwen3-4B GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 512 21.189457
Qwen3-4B GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 512 20.926878
Qwen3-4B GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 512 21.929483
Qwen3-4B GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 5.422877
Qwen3-4B GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 13.34938
Qwen3-4B GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 14.904372
Qwen3-4B GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 512 36.548247
Qwen3-4B GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 512 19.979462
Qwen3-4B GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 512 30.895964
Qwen3-4B GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 4096 18.568464
Qwen3-4B GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 4096 16.193164
Qwen3-4B GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 4096 18.421878
Qwen3-4B GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 512 30.652332
Qwen3-4B GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 512 23.405111
Qwen3-4B GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 512 12.791867
Qwen3-4B GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 512 22.5241
Qwen3-4B GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 512 19.213669
Qwen3-4B GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 512 15.193501
Qwen3-4B GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 4096 10.586283
Qwen3-4B GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 4096 13.749752
Qwen3-4B GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 4096 7.063795
Qwen3-4B GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 4096 6.217811
Qwen3-4B GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 4096 7.210687
Qwen3-4B GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 4096 8.564574
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 512 23.442996
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 1024 22.641396
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 2048 20.553427
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 3072 19.933817
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 16.195625
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® 8 Elite For Galaxy Mobile 512 20.847503
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® 8 Elite For Galaxy Mobile 1024 20.242124
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® 8 Elite For Galaxy Mobile 2048 18.844311
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® 8 Elite For Galaxy Mobile 3072 18.674439
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® 8 Elite For Galaxy Mobile 4096 16.274219
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® X2 Elite 512 36.282825
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® X2 Elite 1024 34.567142
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® X2 Elite 2048 32.676593
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® X2 Elite 3072 32.465054
Qwen3-4B GENIEX_QAIRT w4a16 Snapdragon® X2 Elite 4096 25.866816
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-8275 512 16.519371
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-8275 1024 15.578622
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-8275 2048 14.074832
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-8275 3072 14.087172
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-8275 4096 11.668377
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-9075 512 15.491338
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ Q-8750 512 20.847503
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-9075 1024 14.380093
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ Q-8750 1024 20.242124
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-9075 2048 13.694488
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ Q-8750 2048 18.844311
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-9075 3072 13.583309
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ Q-8750 3072 18.674439
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-9075 4096 11.047278
Qwen3-4B GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ Q-8750 4096 16.274219

License

  • The license for the original implementation of Qwen3-4B can be found here.

References

Community

Usage and Limitations

This model may not be used for or in connection with any of the following applications:

  • Accessing essential private and public services and benefits;
  • Administration of justice and democratic processes;
  • Assessing or recognizing the emotional state of a person;
  • Biometric and biometrics-based systems, including categorization of persons based on sensitive characteristics;
  • Education and vocational training;
  • Employment and workers management;
  • Exploitation of the vulnerabilities of persons resulting in harmful behavior;
  • General purpose social scoring;
  • Law enforcement;
  • Management and operation of critical infrastructure;
  • Migration, asylum and border control management;
  • Predictive policing;
  • Real-time remote biometric identification in public spaces;
  • Recommender systems of social media platforms;
  • Scraping of facial images (from the internet or otherwise); and/or
  • Subliminal manipulation
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for qualcomm/Qwen3-4B