qaihm-bot commited on
Commit
f32cb70
·
verified ·
1 Parent(s): 14ef28f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +92 -0
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: pytorch
3
+ license: mit
4
+ tags:
5
+ - llm
6
+ - generative_ai
7
+ - quantized
8
+ - android
9
+ pipeline_tag: text-generation
10
+
11
+ ---
12
+
13
+ ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/phi_3_5_mini_instruct_quantized/web-assets/model_demo.png)
14
+
15
+ # Phi-3.5-mini-instruct: Optimized for Mobile Deployment
16
+ ## State-of-the-art large language model useful on a variety of language understanding and generation tasks
17
+
18
+
19
+ Phi-3.5-mini is a lightweight, state-of-the-art open model built upon datasets used for Phi-3 - synthetic data and filtered publicly available websites - with a focus on very high-quality, reasoning dense data. The model belongs to the Phi-3 model family and supports 128K token context length. The model underwent a rigorous enhancement process, incorporating both supervised fine-tuning, proximal policy optimization, and direct preference optimization to ensure precise instruction adherence and robust safety measures.
20
+
21
+ This model is an implementation of Phi-3.5-mini-instruct found [here](https://huggingface.co/microsoft/Phi-3.5-mini-instruct).
22
+
23
+
24
+ More details on model performance across various devices, can be found [here](https://aihub.qualcomm.com/models/phi_3_5_mini_instruct_quantized).
25
+
26
+ ### Model Details
27
+
28
+ - **Model Type:** Text generation
29
+ - **Model Stats:**
30
+ - Input sequence length for Prompt Processor: 128
31
+ - Context length: 4096
32
+ - Number of parameters: None
33
+ - Precision: w4a16 + w8a16 (few layers)
34
+ - Num of key-value heads: 8
35
+ - Information about the model parts: Prompt Processor and Token Generator are split into 4 parts each. Each corresponding Prompt Processor and Token Generator part share weights.
36
+ - Prompt processor model size: 2.16 GB
37
+ - Token generator model size: 2.16 GB
38
+ - Use: Initiate conversation with prompt-processor and then token generator for subsequent iterations.
39
+ - Supported languages: English, Arabic, Chinese, Dutch, French, German, Italian, Russian, Spanish, Ukranian
40
+ - Minimum QNN SDK version required: 2.28.2
41
+ - 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).
42
+ - Response Rate: Rate of response generation after the first response token.
43
+
44
+ | Model | Device | Chipset | Target Runtime | Response Rate (tokens per second) | Time To First Token (range, seconds)
45
+ |---|---|---|---|---|---|
46
+ | Phi-3.5-mini-instruct | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 13.01 | 0.1469056 - 4.7009792 | -- | [Phi-3.5-mini-instruct.bin](https://huggingface.co/qualcomm/Phi-3.5-mini-instruct/blob/main/Phi-3.5-mini-instruct.bin) |
47
+ | Phi-3.5-mini-instruct | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 6.2 | 0.185833 - 5.946656 | -- | Use Export Script |
48
+ | Phi-3.5-mini-instruct | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 14.73 | 0.1195948 - 3.8270336 | -- | Use Export Script |
49
+
50
+ ## Deploying Phi-3.5-mini-instruct on-device
51
+
52
+ Please follow the [LLM on-device deployment](https://github.com/quic/ai-hub-apps/tree/main/tutorials/llm_on_genie) tutorial.
53
+
54
+
55
+
56
+ ## License
57
+ * The license for the original implementation of Phi-3.5-mini-instruct can be found
58
+ [here](https://huggingface.co/microsoft/Phi-3.5-mini-instruct/blob/main/LICENSE).
59
+ * The license for the compiled assets for on-device deployment can be found [here](https://github.com/baichuan-inc/Baichuan-7B/blob/main/LICENSE)
60
+
61
+
62
+
63
+ ## References
64
+ * [Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone](https://arxiv.org/abs/2404.14219)
65
+ * [Source Model Implementation](https://huggingface.co/microsoft/Phi-3.5-mini-instruct)
66
+
67
+
68
+
69
+ ## Community
70
+ * 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.
71
+ * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
72
+
73
+ ## Usage and Limitations
74
+
75
+ Model may not be used for or in connection with any of the following applications:
76
+
77
+ - Accessing essential private and public services and benefits;
78
+ - Administration of justice and democratic processes;
79
+ - Assessing or recognizing the emotional state of a person;
80
+ - Biometric and biometrics-based systems, including categorization of persons based on sensitive characteristics;
81
+ - Education and vocational training;
82
+ - Employment and workers management;
83
+ - Exploitation of the vulnerabilities of persons resulting in harmful behavior;
84
+ - General purpose social scoring;
85
+ - Law enforcement;
86
+ - Management and operation of critical infrastructure;
87
+ - Migration, asylum and border control management;
88
+ - Predictive policing;
89
+ - Real-time remote biometric identification in public spaces;
90
+ - Recommender systems of social media platforms;
91
+ - Scraping of facial images (from the internet or otherwise); and/or
92
+ - Subliminal manipulation