Phi-4-Mini-Instruct: Optimized for Qualcomm Devices

Phi-4-mini-instruct is a lightweight open model built upon synthetic data and filtered publicly available websites - with a focus on high-quality, reasoning dense data.

This is based on the implementation of Phi-4-Mini-Instruct 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 Phi-4-Mini-Instruct 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 Phi-4-Mini-Instruct 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 Phi-4-Mini-Instruct on GitHub for usage instructions.

Model Details

Model Type: Model_use_case.text_generation

Model Stats:

  • Number of parameters: 3.8B
  • Response Rate: Rate of response generation after the first response token.

Performance Summary

Model Runtime Precision Chipset Context Length Response Rate (tokens per second)
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 512 22.304404
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 512 22.496769
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 512 23.640727
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 7.112811
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 14.826851
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 16.987309
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 512 39.619308
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 512 23.061679
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 512 34.393754
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 4096 25.955944
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 4096 17.972727
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 4096 23.832616
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X Elite 512 25.208527
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X Elite 512 18.359854
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X Elite 512 16.426555
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X Elite 4096 16.972719
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X Elite 4096 12.252992
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X Elite 4096 10.372192
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-9075 512 18.191159
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-9075 512 9.071439
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-9075 512 15.390716
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 512 25.208527
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 512 18.359854
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 512 16.426555
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 512 22.321187
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 512 21.435994
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 512 18.488726
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-9075 4096 11.176135
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-9075 4096 6.289707
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-9075 4096 11.281653
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 4096 16.972719
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 4096 12.252992
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 4096 10.372192
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 4096 6.947748
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 4096 10.12928
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 4096 10.324552
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 512 17.826893
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 1024 16.795701
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 2048 16.372357
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 3072 16.602759
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 14.588675
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® 8 Elite For Galaxy Mobile 512 17.671203
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® 8 Elite For Galaxy Mobile 1024 17.361299
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® 8 Elite For Galaxy Mobile 2048 16.787152
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® 8 Elite For Galaxy Mobile 3072 16.642682
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® 8 Elite For Galaxy Mobile 4096 15.042438
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® X2 Elite 512 30.820645
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® X2 Elite 1024 30.731754
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® X2 Elite 2048 30.126655
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® X2 Elite 3072 28.868538
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® X2 Elite 4096 24.595505
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® X Elite 512 18.38793
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® X Elite 1024 17.009833
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® X Elite 2048 15.695379
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® X Elite 3072 15.661269
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Snapdragon® X Elite 4096 12.629402
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-8275 512 14.161165
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-8275 1024 13.479395
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-8275 2048 12.818995
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-8275 3072 13.237538
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-8275 4096 11.763803
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-9075 512 13.360236
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-X7181 512 18.38793
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ Q-8750 512 17.671203
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-9075 1024 12.736208
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-X7181 1024 17.009833
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ Q-8750 1024 17.361299
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-9075 2048 12.406062
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-X7181 2048 15.695379
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ Q-8750 2048 16.787152
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-9075 3072 12.345886
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-X7181 3072 15.661269
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ Q-8750 3072 16.642682
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-9075 4096 10.581773
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-X7181 4096 12.629402
Phi-4-Mini-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ Q-8750 4096 15.042438

License

  • The license for the original implementation of Phi-4-Mini-Instruct 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/Phi-4-Mini-Instruct