v0.47.0
Browse filesDeprecation notice.
LICENSE
DELETED
|
@@ -1 +0,0 @@
|
|
| 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
|
@@ -2,81 +2,8 @@
|
|
| 2 |
library_name: pytorch
|
| 3 |
license: other
|
| 4 |
tags:
|
| 5 |
-
-
|
| 6 |
-
|
| 7 |
-
- android
|
| 8 |
-
pipeline_tag: text-generation
|
| 9 |
|
| 10 |
---
|
| 11 |
-
|
| 12 |
-

|
| 13 |
-
|
| 14 |
-
# Phi-3.5-Mini-Instruct: Optimized for Qualcomm Devices
|
| 15 |
-
|
| 16 |
-
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.
|
| 17 |
-
|
| 18 |
-
This is based on the implementation of Phi-3.5-Mini-Instruct found [here](https://huggingface.co/microsoft/Phi-3.5-mini-instruct).
|
| 19 |
-
This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/phi_3_5_mini_instruct) 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 Phi-3.5-mini-instruct on-device
|
| 24 |
-
|
| 25 |
-
Please follow the [LLM on-device deployment](https://github.com/quic/ai-hub-apps/tree/main/tutorials/llm_on_genie) tutorial.
|
| 26 |
-
|
| 27 |
-
## Getting Started
|
| 28 |
-
Download pre-exported model assets from **[Phi-3.5-Mini-Instruct on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/phi_3_5_mini_instruct)**.
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
## Model Details
|
| 33 |
-
|
| 34 |
-
**Model Type:** Model_use_case.text_generation
|
| 35 |
-
|
| 36 |
-
**Model Stats:**
|
| 37 |
-
- Input sequence length for Prompt Processor: 128
|
| 38 |
-
- Context length: 4096
|
| 39 |
-
- Number of parameters: 3.8B
|
| 40 |
-
- Precision: w4a16 + w8a16 (few layers)
|
| 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 |
-
## Performance Summary
|
| 45 |
-
| Model | Runtime | Precision | Chipset | Context Length | Response Rate (tokens per second) | Time To First Token (range, seconds)
|
| 46 |
-
|---|---|---|---|---|---|---
|
| 47 |
-
| Phi-3.5-Mini-Instruct | QNN_CONTEXT_BINARY | w4a16 | Snapdragon® 8 Elite Mobile | 4096 | 14.73 | 0.1195948 - 3.8270336
|
| 48 |
-
| Phi-3.5-Mini-Instruct | QNN_CONTEXT_BINARY | w4a16 | Snapdragon® X Elite | 4096 | 6.2 | 0.185833 - 5.946656
|
| 49 |
-
| Phi-3.5-Mini-Instruct | QNN_CONTEXT_BINARY | w4a16 | Snapdragon® 8 Gen 3 Mobile | 4096 | 13.01 | 0.1469056 - 4.7009792
|
| 50 |
-
|
| 51 |
-
## License
|
| 52 |
-
* The license for the original implementation of Phi-3.5-Mini-Instruct can be found
|
| 53 |
-
[here](https://huggingface.co/microsoft/Phi-3.5-mini-instruct/blob/main/LICENSE).
|
| 54 |
-
|
| 55 |
-
## References
|
| 56 |
-
* [Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone](https://arxiv.org/abs/2404.14219)
|
| 57 |
-
* [Source Model Implementation](https://huggingface.co/microsoft/Phi-3.5-mini-instruct)
|
| 58 |
-
|
| 59 |
-
## Community
|
| 60 |
-
* Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
|
| 61 |
-
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
|
| 62 |
-
|
| 63 |
-
## Usage and Limitations
|
| 64 |
-
|
| 65 |
-
This model may not be used for or in connection with any of the following applications:
|
| 66 |
-
|
| 67 |
-
- Accessing essential private and public services and benefits;
|
| 68 |
-
- Administration of justice and democratic processes;
|
| 69 |
-
- Assessing or recognizing the emotional state of a person;
|
| 70 |
-
- Biometric and biometrics-based systems, including categorization of persons based on sensitive characteristics;
|
| 71 |
-
- Education and vocational training;
|
| 72 |
-
- Employment and workers management;
|
| 73 |
-
- Exploitation of the vulnerabilities of persons resulting in harmful behavior;
|
| 74 |
-
- General purpose social scoring;
|
| 75 |
-
- Law enforcement;
|
| 76 |
-
- Management and operation of critical infrastructure;
|
| 77 |
-
- Migration, asylum and border control management;
|
| 78 |
-
- Predictive policing;
|
| 79 |
-
- Real-time remote biometric identification in public spaces;
|
| 80 |
-
- Recommender systems of social media platforms;
|
| 81 |
-
- Scraping of facial images (from the internet or otherwise); and/or
|
| 82 |
-
- Subliminal manipulation
|
|
|
|
| 2 |
library_name: pytorch
|
| 3 |
license: other
|
| 4 |
tags:
|
| 5 |
+
- deprecated
|
| 6 |
+
pipeline_tag: other
|
|
|
|
|
|
|
| 7 |
|
| 8 |
---
|
| 9 |
+
This model is deprecated. Please refer to https://aihub.qualcomm.com for the latest models and updates.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|