v0.57.0
Browse files- LICENSE +1 -0
- README.md +115 -0
- release_assets.json +12 -0
LICENSE
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
The license of the original trained model can be found at https://github.com/ibm-granite/granite-4.0-language-models/blob/main/LICENSE.
|
README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: pytorch
|
| 3 |
+
license: other
|
| 4 |
+
tags:
|
| 5 |
+
- llm
|
| 6 |
+
- generative_ai
|
| 7 |
+
- android
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+

|
| 13 |
+
|
| 14 |
+
# Granite-4.0-Micro: Optimized for Qualcomm Devices
|
| 15 |
+
|
| 16 |
+
Granite 4.0 is a family of open language models from IBM designed for enterprise AI workloads including code generation, summarization, and retrieval-augmented generation.
|
| 17 |
+
|
| 18 |
+
This is based on the implementation of Granite-4.0-Micro found [here](https://huggingface.co/ibm-granite/granite-4.0-h-micro).
|
| 19 |
+
This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.57.0/src/qai_hub_models/models/granite_4_0_micro) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary).
|
| 20 |
+
|
| 21 |
+
Qualcomm AI Hub Models uses [Qualcomm AI Hub Workbench](https://workbench.aihub.qualcomm.com) to compile, profile, and evaluate this model. [Sign up](https://myaccount.qualcomm.com/signup) to run these models on a hosted Qualcomm® device.
|
| 22 |
+
|
| 23 |
+
## Deploying Granite-4.0-Micro on-device
|
| 24 |
+
|
| 25 |
+
Follow the [GenieX quickstart](https://geniex.aihub.qualcomm.com/en/get-started/quickstart) to install GenieX and deploy the model on a target device.
|
| 26 |
+
|
| 27 |
+
## Getting Started
|
| 28 |
+
There are two ways to deploy this model on your device:
|
| 29 |
+
|
| 30 |
+
### Option 1: Download Pre-Exported Models
|
| 31 |
+
|
| 32 |
+
Below are pre-exported model assets ready for deployment.
|
| 33 |
+
|
| 34 |
+
| Runtime | Precision | Chipset | SDK Versions | Download |
|
| 35 |
+
|---|---|---|---|---|
|
| 36 |
+
| GENIEX_LLAMACPP | q4_0 | Universal | | [Download](https://huggingface.co/unsloth/granite-4.0-h-micro-GGUF/resolve/main/granite-4.0-h-micro-Q4_0.gguf)
|
| 37 |
+
|
| 38 |
+
For more device-specific assets and performance metrics, visit **[Granite-4.0-Micro on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/granite_4_0_micro)**.
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
### Option 2: Export with Custom Configurations
|
| 42 |
+
|
| 43 |
+
Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.57.0/src/qai_hub_models/models/granite_4_0_micro) Python library to compile and export the model with your own:
|
| 44 |
+
- Custom weights (e.g., fine-tuned checkpoints)
|
| 45 |
+
- Custom input shapes
|
| 46 |
+
- Target device and runtime configurations
|
| 47 |
+
|
| 48 |
+
This option is ideal if you need to customize the model beyond the default configuration provided here.
|
| 49 |
+
|
| 50 |
+
See our repository for [Granite-4.0-Micro on GitHub](https://github.com/qualcomm/ai-hub-models/blob/v0.57.0/src/qai_hub_models/models/granite_4_0_micro) for usage instructions.
|
| 51 |
+
|
| 52 |
+
## Model Details
|
| 53 |
+
|
| 54 |
+
**Model Type:** Model_use_case.text_generation
|
| 55 |
+
|
| 56 |
+
**Model Stats:**
|
| 57 |
+
- Model architecture: Mamba-2 Hybrid architecture combining State Space Model (SSM) layers with Attention layers for efficient long-context processing.
|
| 58 |
+
- Supported languages: English
|
| 59 |
+
- 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.
|
| 60 |
+
- Response Rate: Rate of response generation after the first response token.
|
| 61 |
+
|
| 62 |
+
## Performance Summary
|
| 63 |
+
| Model | Runtime | Precision | Chipset | Context Length | Response Rate (tokens per second) | Time To First Token (range, seconds)
|
| 64 |
+
|---|---|---|---|---|---|---
|
| 65 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® 8 Elite Gen 5 Mobile | 512 | 25.719503 | 0.8499905 - 3.399962
|
| 66 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® 8 Elite Gen 5 Mobile | 512 | 26.283972 | 0.8927765000000001 - 3.5711060000000003
|
| 67 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® 8 Elite Gen 5 Mobile | 512 | 16.840913 | 0.23313175 - 0.932527
|
| 68 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® 8 Elite Gen 5 Mobile | 4096 | 24.522214 | 1.1895051875 - 38.064166
|
| 69 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® 8 Elite Gen 5 Mobile | 4096 | 22.047256 | 1.4127757187499999 - 45.208822999999995
|
| 70 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® 8 Elite Gen 5 Mobile | 4096 | 15.315768 | 0.3090850625 - 9.890722
|
| 71 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® 8 Elite Mobile | 512 | 25.130048 | 0.9481944999999999 - 3.7927779999999998
|
| 72 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® 8 Elite Mobile | 512 | 26.288118 | 0.95749725 - 3.829989
|
| 73 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® 8 Elite Mobile | 512 | 15.760148 | 0.30860325 - 1.234413
|
| 74 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® 8 Elite Mobile | 4096 | 22.639083 | 1.1536551875 - 36.916966
|
| 75 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® 8 Elite Mobile | 4096 | 23.049816 | 1.22555709375 - 39.217827
|
| 76 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® 8 Elite Mobile | 4096 | 14.515548 | 0.36028896875 - 11.529247
|
| 77 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® X Elite | 512 | 17.843282 | 0.69928525 - 2.797141
|
| 78 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® X Elite | 512 | 13.447186 | 0.6960275 - 2.78411
|
| 79 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® X Elite | 512 | 11.275263 | 0.34302550000000004 - 1.3721020000000002
|
| 80 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® X Elite | 4096 | 25.288631 | 0.51570025 - 16.502408
|
| 81 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® X Elite | 4096 | 24.661293 | 0.54267315625 - 17.365541
|
| 82 |
+
| Granite-4.0-Micro | GENIEX_LLAMACPP | q4_0 | Snapdragon® X Elite | 4096 | 11.122384 | 0.37017084375000003 - 11.845467000000001
|
| 83 |
+
|
| 84 |
+
## License
|
| 85 |
+
* The license for the original implementation of Granite-4.0-Micro can be found
|
| 86 |
+
[here](https://github.com/ibm-granite/granite-4.0-language-models/blob/main/LICENSE).
|
| 87 |
+
|
| 88 |
+
## References
|
| 89 |
+
* [Granite 4.0](https://www.ibm.com/granite/docs/models/granite)
|
| 90 |
+
* [Source Model Implementation](https://huggingface.co/ibm-granite/granite-4.0-h-micro)
|
| 91 |
+
|
| 92 |
+
## Community
|
| 93 |
+
* Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
|
| 94 |
+
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
|
| 95 |
+
|
| 96 |
+
## Usage and Limitations
|
| 97 |
+
|
| 98 |
+
This model may not be used for or in connection with any of the following applications:
|
| 99 |
+
|
| 100 |
+
- Accessing essential private and public services and benefits;
|
| 101 |
+
- Administration of justice and democratic processes;
|
| 102 |
+
- Assessing or recognizing the emotional state of a person;
|
| 103 |
+
- Biometric and biometrics-based systems, including categorization of persons based on sensitive characteristics;
|
| 104 |
+
- Education and vocational training;
|
| 105 |
+
- Employment and workers management;
|
| 106 |
+
- Exploitation of the vulnerabilities of persons resulting in harmful behavior;
|
| 107 |
+
- General purpose social scoring;
|
| 108 |
+
- Law enforcement;
|
| 109 |
+
- Management and operation of critical infrastructure;
|
| 110 |
+
- Migration, asylum and border control management;
|
| 111 |
+
- Predictive policing;
|
| 112 |
+
- Real-time remote biometric identification in public spaces;
|
| 113 |
+
- Recommender systems of social media platforms;
|
| 114 |
+
- Scraping of facial images (from the internet or otherwise); and/or
|
| 115 |
+
- Subliminal manipulation
|
release_assets.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "0.57.0",
|
| 3 |
+
"precisions": {
|
| 4 |
+
"q4_0": {
|
| 5 |
+
"universal_assets": {
|
| 6 |
+
"geniex_llamacpp": {
|
| 7 |
+
"download_url": "https://huggingface.co/unsloth/granite-4.0-h-micro-GGUF/resolve/main/granite-4.0-h-micro-Q4_0.gguf"
|
| 8 |
+
}
|
| 9 |
+
}
|
| 10 |
+
}
|
| 11 |
+
}
|
| 12 |
+
}
|