qaihm-bot commited on
Commit
6747d92
·
verified ·
1 Parent(s): 1ba5a6d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +72 -0
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: pytorch
3
+ license: other
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - llm
7
+ - generative_ai
8
+ - quantized
9
+ - android
10
+
11
+ ---
12
+
13
+ ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/allam_7b_quantized/web-assets/model_demo.png)
14
+
15
+ # Allam-7B: Optimized for Mobile Deployment
16
+ ## Llama2 based large language model supporting English and Arabic
17
+
18
+ Allam 7B is SDAIA's first generation edge model, optimized for performance on Snapdragon X Elite.
19
+
20
+ More details on model performance across various devices, can be found [here](https://aihub.qualcomm.com/models/allam_7b_quantized).
21
+
22
+ ### Model Details
23
+
24
+ - **Model Type:** Text generation
25
+ - **Model Stats:**
26
+ - Input sequence length for Prompt Processor: 128
27
+ - Max context length: 1024
28
+ - Num of key-value heads: 32
29
+ - Number of parameters: 7B
30
+ - Precision: w4a16 + w8a16 (few layers)
31
+ - Use: Initiate conversation with prompt-processor and then token generator for subsequent iterations.
32
+ - Minimum QNN SDK version required: 2.28.2
33
+ - Supported languages: English, Arabic.
34
+ - 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).
35
+ - Response Rate: Rate of response generation after the first response token.
36
+
37
+ | Model | Device | Chipset | Target Runtime | Response Rate (tokens per second) | Time To First Token (range, seconds)
38
+ |---|---|---|---|---|---|
39
+ | ALLaM-7B-Quantized | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 21.05 | 0.092289 - 2.9532736 | -- | -- |
40
+
41
+ ## Deploy Allam 7B on Snapdragon X Elite NPU
42
+
43
+ Please follow the [LLM on-device deployment](https://github.com/quic/ai-hub-apps/tree/main/tutorials/llm_on_genie) tutorial.
44
+
45
+
46
+
47
+
48
+
49
+ ## Community
50
+ * 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.
51
+ * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
52
+
53
+ ## Usage and Limitations
54
+
55
+ Model may not be used for or in connection with any of the following applications:
56
+
57
+ - Accessing essential private and public services and benefits;
58
+ - Administration of justice and democratic processes;
59
+ - Assessing or recognizing the emotional state of a person;
60
+ - Biometric and biometrics-based systems, including categorization of persons based on sensitive characteristics;
61
+ - Education and vocational training;
62
+ - Employment and workers management;
63
+ - Exploitation of the vulnerabilities of persons resulting in harmful behavior;
64
+ - General purpose social scoring;
65
+ - Law enforcement;
66
+ - Management and operation of critical infrastructure;
67
+ - Migration, asylum and border control management;
68
+ - Predictive policing;
69
+ - Real-time remote biometric identification in public spaces;
70
+ - Recommender systems of social media platforms;
71
+ - Scraping of facial images (from the internet or otherwise); and/or
72
+ - Subliminal manipulation