v0.43.0
Browse filesDeprecation notice.
LICENSE
DELETED
|
File without changes
|
README.md
CHANGED
|
@@ -1,73 +1,10 @@
|
|
|
|
|
| 1 |
---
|
| 2 |
library_name: pytorch
|
| 3 |
-
license:
|
| 4 |
tags:
|
| 5 |
-
-
|
| 6 |
-
|
| 7 |
-
- android
|
| 8 |
-
pipeline_tag: text-generation
|
| 9 |
|
| 10 |
---
|
| 11 |
-
|
| 12 |
-

|
| 13 |
-
|
| 14 |
-
# ALLaM-7B: Optimized for Mobile Deployment
|
| 15 |
-
## Large Language Model supporting Arabic and English
|
| 16 |
-
|
| 17 |
-
ALLaM 7B is SDAIA's first generation edge model, optimized for performance on Snapdragon X Elite.
|
| 18 |
-
|
| 19 |
-
More details on model performance across various devices, can be found [here](https://aihub.qualcomm.com/models/allam_7b).
|
| 20 |
-
|
| 21 |
-
**WARNING**: The model assets are not readily available for download due to licensing restrictions.
|
| 22 |
-
|
| 23 |
-
### Model Details
|
| 24 |
-
|
| 25 |
-
- **Model Type:** Model_use_case.text_generation
|
| 26 |
-
- **Model Stats:**
|
| 27 |
-
- Input sequence length for Prompt Processor: 128
|
| 28 |
-
- Max context length: 1024
|
| 29 |
-
- Num of key-value heads: 32
|
| 30 |
-
- Number of parameters: 7B
|
| 31 |
-
- Precision: w4a16 + w8a16 (few layers)
|
| 32 |
-
- Use: Initiate conversation with prompt-processor and then token generator for subsequent iterations.
|
| 33 |
-
- Minimum QNN SDK version required: 2.28.2
|
| 34 |
-
- Supported languages: English, Arabic.
|
| 35 |
-
- 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).
|
| 36 |
-
- Response Rate: Rate of response generation after the first response token.
|
| 37 |
-
|
| 38 |
-
| Model | Precision | Device | Chipset | Target Runtime | Response Rate (tokens per second) | Time To First Token (range, seconds)
|
| 39 |
-
|---|---|---|---|---|---|
|
| 40 |
-
| ALLaM-7B | w4a16 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_CONTEXT_BINARY | 9.5 | 0.23854499999999998 - 1.399168 | -- | -- |
|
| 41 |
-
|
| 42 |
-
## Deploy Allam 7B on Snapdragon X Elite NPU
|
| 43 |
-
|
| 44 |
-
Please follow the [LLM on-device deployment](https://github.com/quic/ai-hub-apps/tree/main/tutorials/llm_on_genie) tutorial.
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
## Community
|
| 51 |
-
* Join [our AI Hub Slack community](https://qualcomm-ai-hub.slack.com/join/shared_invite/zt-2d5zsmas3-Sj0Q9TzslueCjS31eXG2UA#/shared-invite/email) to collaborate, post questions and learn more about on-device AI.
|
| 52 |
-
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
|
| 53 |
-
|
| 54 |
-
## Usage and Limitations
|
| 55 |
-
|
| 56 |
-
Model may not be used for or in connection with any of the following applications:
|
| 57 |
-
|
| 58 |
-
- Accessing essential private and public services and benefits;
|
| 59 |
-
- Administration of justice and democratic processes;
|
| 60 |
-
- Assessing or recognizing the emotional state of a person;
|
| 61 |
-
- Biometric and biometrics-based systems, including categorization of persons based on sensitive characteristics;
|
| 62 |
-
- Education and vocational training;
|
| 63 |
-
- Employment and workers management;
|
| 64 |
-
- Exploitation of the vulnerabilities of persons resulting in harmful behavior;
|
| 65 |
-
- General purpose social scoring;
|
| 66 |
-
- Law enforcement;
|
| 67 |
-
- Management and operation of critical infrastructure;
|
| 68 |
-
- Migration, asylum and border control management;
|
| 69 |
-
- Predictive policing;
|
| 70 |
-
- Real-time remote biometric identification in public spaces;
|
| 71 |
-
- Recommender systems of social media platforms;
|
| 72 |
-
- Scraping of facial images (from the internet or otherwise); and/or
|
| 73 |
-
- Subliminal manipulation
|
|
|
|
| 1 |
+
|
| 2 |
---
|
| 3 |
library_name: pytorch
|
| 4 |
+
license: other
|
| 5 |
tags:
|
| 6 |
+
- deprecated
|
| 7 |
+
pipeline_tag: other
|
|
|
|
|
|
|
| 8 |
|
| 9 |
---
|
| 10 |
+
This model is deprecated. Please refer to https://aihub.qualcomm.com for the latest models and updates.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|