CoolFace
Modelpublic

qualcomm/Llama-v3.2-3B-Instruct

sourceHugging Facellama3updated 11d agoView on Hugging Face
3likes
Model Card

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

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

This is based on the implementation of Llama-v3.2-3B-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-3B-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-3B-Instruct on GitHub for usage instructions.

Model Details

Model Type: Modelusecase.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

ModelRuntimePrecisionChipsetContext LengthResponse Rate (tokens per second)Time To First Token (range, seconds)
Llama-v3.2-3B-InstructGENIEw4Snapdragon® 8 Elite Gen 5 Mobile409618.008830.131546 - 4.209475
Llama-v3.2-3B-InstructGENIEw4Snapdragon® X Elite40967.15773487091064450.25013599999999997 - 8.004351999999999
Llama-v3.2-3B-InstructGENIEw4Qualcomm® SA8295P10243.5230.37311700000000003 - 2.9849360000000003
Llama-v3.2-3B-InstructGENIEw4Qualcomm® Dragonwing™ IQ-X718140967.15773487091064450.25013599999999997 - 8.004351999999999
Llama-v3.2-3B-InstructGENIEw4a16Snapdragon® 8 Elite Gen 5 Mobile409632.392830657958980.06259719999999999 - 2.0031103999999997
Llama-v3.2-3B-InstructGENIEw4a16Snapdragon® 8 Elite Mobile409628.3784542083740230.084778 - 2.712896
Llama-v3.2-3B-InstructGENIEw4a16Snapdragon® X2 Elite409642.453830718994140.08531 - 2.72992
Llama-v3.2-3B-InstructGENIEw4a16Snapdragon® X Elite409611.3225917816162110.119393 - 3.820576
Llama-v3.2-3B-InstructGENIEw4a16Qualcomm® SA8775P409617.470.109614 - 3.507648
Llama-v3.2-3B-InstructGENIEw4a16Qualcomm® SA8650P409617.470.109614 - 3.507648
Llama-v3.2-3B-InstructGENIEw4a16Qualcomm® SA8255P409617.470.109614 - 3.507648
Llama-v3.2-3B-InstructGENIEw4a16Qualcomm® Dragonwing™ IQ-9075409618.148490905761720.10404000000000001 - 3.3292800000000002
Llama-v3.2-3B-InstructGENIEw4a16Qualcomm® Dragonwing™ IQ-X7181409611.3225917816162110.119393 - 3.820576
Llama-v3.2-3B-InstructGENIEw4a16Qualcomm® Dragonwing™ Q-8750409628.3784542083740230.084778 - 2.712896
Llama-v3.2-3B-InstructGENIEX_QAIRTw4Snapdragon® 8 Elite Gen 5 Mobile409617.244650.171428 - 5.485696
Llama-v3.2-3B-InstructGENIEX_QAIRTw4Snapdragon® 8 Elite Mobile409612.8883890.190329 - 6.090528
Llama-v3.2-3B-InstructGENIEX_QAIRTw4Snapdragon® X2 Elite409616.4092950.16508099999999998 - 5.282591999999999
Llama-v3.2-3B-InstructGENIEX_QAIRTw4Snapdragon® X Elite40968.7943680.274154 - 8.772928
Llama-v3.2-3B-InstructGENIEX_QAIRTw4Qualcomm® Dragonwing™ IQ-827540968.4318660.344866 - 11.035712
Llama-v3.2-3B-InstructGENIEX_QAIRTw4Qualcomm® Dragonwing™ IQ-907540968.4456660.345638 - 11.060416
Llama-v3.2-3B-InstructGENIEX_QAIRTw4Qualcomm® Dragonwing™ IQ-X718140968.7943680.274154 - 8.772928
Llama-v3.2-3B-InstructGENIEX_QAIRTw4Qualcomm® Dragonwing™ Q-8750409612.8883890.190329 - 6.090528
Llama-v3.2-3B-InstructGENIEX_QAIRTw4a16Snapdragon® 8 Elite Gen 5 Mobile409632.2306280.07395 - 2.3664
Llama-v3.2-3B-InstructGENIEX_QAIRTw4a16Snapdragon® 8 Elite Mobile409627.6512140.101896 - 3.260672
Llama-v3.2-3B-InstructGENIEX_QAIRTw4a16Snapdragon® X2 Elite409642.7518920.061876 - 1.980032
Llama-v3.2-3B-InstructGENIEX_QAIRTw4a16Snapdragon® X Elite409619.8248730.129435 - 4.14192
Llama-v3.2-3B-InstructGENIEX_QAIRTw4a16Qualcomm® Dragonwing™ IQ-8275409616.7599640.12714 - 4.06848
Llama-v3.2-3B-InstructGENIEX_QAIRTw4a16Qualcomm® Dragonwing™ IQ-9075409618.3853060.12773 - 4.08736
Llama-v3.2-3B-InstructGENIEX_QAIRTw4a16Qualcomm® Dragonwing™ IQ-X7181409619.8248730.129435 - 4.14192
Llama-v3.2-3B-InstructGENIEX_QAIRTw4a16Qualcomm® Dragonwing™ Q-8750409627.6512140.101896 - 3.260672

License

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