Llama-v3.2-1B-Instruct: Optimized for Qualcomm Devices

Llama 3 is a family of LLMs. The model is quantized to w4 (4-bit weights) and part of the model is quantized to w8 (8-bit weights) making it suitable for on-device deployment.

This is based on the implementation of Llama-v3.2-1B-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 Llama-v3.2-1B-Instruct on-device

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

You'll need to export the model artifact using the steps below, then follow Run a Local Model with GenieX.

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

Getting Started

Due to licensing restrictions, we cannot distribute pre-exported model assets for this model. 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

See our repository for Llama-v3.2-1B-Instruct 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.
  • Supported languages: English.
  • 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)
Llama-v3.2-1B-Instruct GENIE w4 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 36.33720779418945 0.062048 - 1.985536
Llama-v3.2-1B-Instruct GENIE w4 Snapdragon® 8 Elite For Galaxy Mobile 4096 34.532772064208984 0.063293 - 2.025376
Llama-v3.2-1B-Instruct GENIE w4 Snapdragon® X2 Elite 4096 35.45219421386719 0.052402000000000004 - 1.6768640000000001
Llama-v3.2-1B-Instruct GENIE w4 Snapdragon® X Elite 4096 9.924277305603027 0.143123 - 4.579936
Llama-v3.2-1B-Instruct GENIE w4 Qualcomm® Dragonwing™ IQ-8275 4096 17.95815658569336 0.16422 - 5.25504
Llama-v3.2-1B-Instruct GENIE w4 Qualcomm® Dragonwing™ IQ-9075 4096 18.8284912109375 0.146154 - 4.676928
Llama-v3.2-1B-Instruct GENIE w4 Qualcomm® Dragonwing™ IQ-X7181 4096 9.924277305603027 0.143123 - 4.579936
Llama-v3.2-1B-Instruct GENIE w4 Qualcomm® Dragonwing™ Q-8750 4096 34.532772064208984 0.063293 - 2.025376
Llama-v3.2-1B-Instruct GENIE w4 Qualcomm® SA8295P 4096 13.10221004486084 0.159446 - 5.102272
Llama-v3.2-1B-Instruct GENIE w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 65.24008178710938 0.034485999999999996 - 1.1035519999999999
Llama-v3.2-1B-Instruct GENIE w4a16 Snapdragon® 8 Elite For Galaxy Mobile 4096 67.21784973144531 0.031467 - 1.006944
Llama-v3.2-1B-Instruct GENIE w4a16 Snapdragon® X2 Elite 4096 83.5631332397461 0.034478999999999996 - 1.1033279999999999
Llama-v3.2-1B-Instruct GENIE w4a16 Snapdragon® X Elite 4096 34.17634963989258 0.058183 - 1.861856
Llama-v3.2-1B-Instruct GENIE w4a16 Qualcomm® Dragonwing™ IQ-8275 4096 38.55495834350586 0.053002 - 1.696064
Llama-v3.2-1B-Instruct GENIE w4a16 Qualcomm® SA8775P 4096 35.01155471801758 0.056225000000000004 - 1.7992000000000001
Llama-v3.2-1B-Instruct GENIE w4a16 Qualcomm® SA8650P 4096 35.01155471801758 0.056225000000000004 - 1.7992000000000001
Llama-v3.2-1B-Instruct GENIE w4a16 Qualcomm® SA8255P 4096 35.01155471801758 0.056225000000000004 - 1.7992000000000001
Llama-v3.2-1B-Instruct GENIE w4a16 Qualcomm® Dragonwing™ IQ-9075 4096 41.56794357299805 0.053308 - 1.705856
Llama-v3.2-1B-Instruct GENIE w4a16 Qualcomm® Dragonwing™ IQ-X7181 4096 34.17634963989258 0.058183 - 1.861856
Llama-v3.2-1B-Instruct GENIE w4a16 Qualcomm® Dragonwing™ Q-8750 4096 67.21784973144531 0.031467 - 1.006944
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 26.922985 0.09478593548387097 - 3.033149935483871
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4 Snapdragon® 8 Elite For Galaxy Mobile 4096 24.492292 0.12336712903225806 - 3.947748129032258
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4 Snapdragon® X2 Elite 4096 28.02396 0.0763756129032258 - 2.4440196129032254
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4 Snapdragon® X Elite 4096 17.242041 0.1363967741935484 - 4.364696774193549
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4 Qualcomm® Dragonwing™ IQ-8275 4096 17.650746 0.15465912903225806 - 4.949092129032258
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4 Qualcomm® Dragonwing™ IQ-9075 4096 16.19026 0.15748132258064515 - 5.039402322580645
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4 Qualcomm® Dragonwing™ IQ-X7181 4096 17.242041 0.1363967741935484 - 4.364696774193549
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4 Qualcomm® Dragonwing™ Q-8750 4096 24.492292 0.12336712903225806 - 3.947748129032258
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4096 50.926687 0.04313983870967742 - 1.3804748387096775
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4a16 Snapdragon® 8 Elite For Galaxy Mobile 4096 47.608492 0.050247225806451606 - 1.6079112258064514
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4a16 Snapdragon® X2 Elite 4096 68.383045 0.029907806451612902 - 0.9570498064516129
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4a16 Snapdragon® X Elite 4096 39.862909 0.05819799999999999 - 1.8623359999999998
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-8275 4096 35.425112 0.058939129032258064 - 1.886052129032258
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-9075 4096 38.459181 0.05681561290322581 - 1.8180996129032259
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ IQ-X7181 4096 39.862909 0.05819799999999999 - 1.8623359999999998
Llama-v3.2-1B-Instruct GENIEX_QAIRT w4a16 Qualcomm® Dragonwing™ Q-8750 4096 47.608492 0.050247225806451606 - 1.6079112258064514

License

  • The license for the original implementation of Llama-v3.2-1B-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