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.

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
GENIEX_LLAMACPP q4_0 Universal 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.
  • 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).

Performance Summary

Model Runtime Precision Chipset Context Length Response Rate (tokens per second) Time To First Token (range, seconds)
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 512 21.373669 1.195355 - 4.78142
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 512 23.01676 0.4301586666666667 - 1.7206346666666668
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 512 23.169505 0.09322866666666665 - 0.3729146666666666
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 7.164959 2.516420129032258 - 80.52544412903225
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 11.034155 0.9345251290322579 - 29.904804129032254
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 13.129164 0.10923896774193548 - 3.4956469677419353
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite For Galaxy Mobile 512 22.321187 0.9555736666666667 - 3.8222946666666666
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite For Galaxy Mobile 512 21.435994 0.445336 - 1.781344
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite For Galaxy Mobile 512 18.488726 0.10527033333333333 - 0.4210813333333333
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite For Galaxy Mobile 4096 6.947748 2.3129144838709674 - 74.01326348387096
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite For Galaxy Mobile 4096 10.12928 1.0503154838709676 - 33.610095483870964
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® 8 Elite For Galaxy Mobile 4096 10.324552 0.13998816129032257 - 4.479621161290322
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 512 34.223958 1.015909 - 4.063636
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 512 28.03951 0.813092 - 3.252368
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 512 26.878243 0.30885199999999996 - 1.2354079999999998
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 4096 22.358129 14.089633 - 450.868256
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 4096 21.080379 11.711404 - 374.764928
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X2 Elite 4096 18.123052 3.209757 - 102.712224
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X Elite 512 27.988389 0.40832025 - 1.633281
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X Elite 512 27.143556 0.46132475 - 1.845299
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X Elite 512 16.042448 0.25184725 - 1.007389
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X Elite 4096 15.617096 0.913791375 - 29.241324
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X Elite 4096 16.000366 0.9590768749999999 - 30.690459999999998
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Snapdragon® X Elite 4096 9.673267 0.41174053125 - 13.175697
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-8275 512 4.552376 12.93992 - 51.75968
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-8275 512 2.596201 18.429702000000002 - 73.71880800000001
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-8275 512 9.976684 1.089346 - 4.357384
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-8275 4096 1.597252 140.87717800000001 - 4508.0696960000005
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-8275 4096 1.921158 213.723029 - 6839.136928
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-8275 4096 6.191769 10.702895 - 342.49264
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 512 27.988389 0.40832025 - 1.633281
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 512 27.143556 0.46132475 - 1.845299
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 512 16.042448 0.25184725 - 1.007389
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 512 22.321187 0.9555736666666667 - 3.8222946666666666
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 512 21.435994 0.445336 - 1.781344
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 512 18.488726 0.10527033333333333 - 0.4210813333333333
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-9075 4096 13.1 1.9971918880000001 - 63.91014
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-9075 4096 3.0 2.471042471 - 79.073359
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-9075 4096 10.0 0.44137930999999997 - 14.124138
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 4096 15.617096 0.913791375 - 29.241324
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 4096 16.000366 0.9590768749999999 - 30.690459999999998
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ IQ-X7181 4096 9.673267 0.41174053125 - 13.175697
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 4096 6.947748 2.3129144838709674 - 74.01326348387096
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 4096 10.12928 1.0503154838709676 - 33.610095483870964
Phi-4-Mini-Instruct GENIEX_LLAMACPP q4_0 Qualcomm® Dragonwing™ Q-8750 4096 10.324552 0.13998816129032257 - 4.479621161290322

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