qaihm-bot commited on
Commit
8077ebd
·
verified ·
1 Parent(s): 5e98d4f

See https://github.com/quic/ai-hub-models/releases/v0.45.0 for changelog.

Files changed (2) hide show
  1. LICENSE +1 -0
  2. README.md +79 -4
LICENSE ADDED
@@ -0,0 +1 @@
 
 
1
+ The license of the original trained model can be found at https://huggingface.co/microsoft/Phi-3.5-mini-instruct/blob/main/LICENSE.
README.md CHANGED
@@ -1,10 +1,85 @@
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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/phi_3_5_mini_instruct/web-assets/model_demo.png)
13
+
14
+ # Phi-3.5-Mini-Instruct: Optimized for Mobile Deployment
15
+ ## State-of-the-art large language model useful on a variety of language understanding and generation tasks
16
+
17
+
18
+ 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.
19
+
20
+ This model is an implementation of Phi-3.5-Mini-Instruct found [here](https://huggingface.co/microsoft/Phi-3.5-mini-instruct).
21
+
22
+
23
+ More details on model performance across various devices, can be found [here](https://aihub.qualcomm.com/models/phi_3_5_mini_instruct).
24
+
25
+
26
+
27
+ ### Model Details
28
+
29
+ - **Model Type:** Model_use_case.text_generation
30
+ - **Model Stats:**
31
+ - Input sequence length for Prompt Processor: 128
32
+ - Context length: 4096
33
+ - Number of parameters: 3.8B
34
+ - Precision: w4a16 + w8a16 (few layers)
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
+ | Phi-3.5-Mini-Instruct | w4a16 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_CONTEXT_BINARY | 13.01 | 0.1469056 - 4.7009792 | -- | Use Export Script |
41
+ | Phi-3.5-Mini-Instruct | w4a16 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_CONTEXT_BINARY | 6.2 | 0.185833 - 5.946656 | -- | Use Export Script |
42
+ | Phi-3.5-Mini-Instruct | w4a16 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite Mobile | QNN_CONTEXT_BINARY | 14.73 | 0.1195948 - 3.8270336 | -- | Use Export Script |
43
+
44
+ ## Deploying Phi-3.5-mini-instruct on-device
45
+
46
+ Please follow the [LLM on-device deployment](https://github.com/quic/ai-hub-apps/tree/main/tutorials/llm_on_genie) tutorial.
47
+
48
+
49
+
50
+ ## License
51
+ * The license for the original implementation of Phi-3.5-Mini-Instruct can be found
52
+ [here](https://huggingface.co/microsoft/Phi-3.5-mini-instruct/blob/main/LICENSE).
53
+
54
+
55
+
56
+ ## References
57
+ * [Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone](https://arxiv.org/abs/2404.14219)
58
+ * [Source Model Implementation](https://huggingface.co/microsoft/Phi-3.5-mini-instruct)
59
+
60
+
61
+
62
+ ## Community
63
+ * 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.
64
+ * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
65
+
66
+ ## Usage and Limitations
67
+
68
+ Model may not be used for or in connection with any of the following applications:
69
+
70
+ - Accessing essential private and public services and benefits;
71
+ - Administration of justice and democratic processes;
72
+ - Assessing or recognizing the emotional state of a person;
73
+ - Biometric and biometrics-based systems, including categorization of persons based on sensitive characteristics;
74
+ - Education and vocational training;
75
+ - Employment and workers management;
76
+ - Exploitation of the vulnerabilities of persons resulting in harmful behavior;
77
+ - General purpose social scoring;
78
+ - Law enforcement;
79
+ - Management and operation of critical infrastructure;
80
+ - Migration, asylum and border control management;
81
+ - Predictive policing;
82
+ - Real-time remote biometric identification in public spaces;
83
+ - Recommender systems of social media platforms;
84
+ - Scraping of facial images (from the internet or otherwise); and/or
85
+ - Subliminal manipulation