Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: microsoft/Phi-3.5-mini-instruct
|
3 |
+
language:
|
4 |
+
- multilingual
|
5 |
+
library_name: transformers
|
6 |
+
license: mit
|
7 |
+
license_link: https://huggingface.co/microsoft/Phi-3.5-mini-instruct/resolve/main/LICENSE
|
8 |
+
pipeline_tag: text-generation
|
9 |
+
tags:
|
10 |
+
- nlp
|
11 |
+
- code
|
12 |
+
- openvino
|
13 |
+
- nncf
|
14 |
+
- 4-bit
|
15 |
+
widget:
|
16 |
+
- messages:
|
17 |
+
- role: user
|
18 |
+
content: Can you provide ways to eat combinations of bananas and dragonfruits?
|
19 |
+
base_model_relation: quantized
|
20 |
+
---
|
21 |
+
|
22 |
+
This model is a quantized version of [`microsoft/Phi-3.5-mini-instruct`](https://huggingface.co/microsoft/Phi-3.5-mini-instruct) and is converted to the OpenVINO format. This model was obtained via the [nncf-quantization](https://huggingface.co/spaces/echarlaix/nncf-quantization) space with [optimum-intel](https://github.com/huggingface/optimum-intel).
|
23 |
+
First make sure you have `optimum-intel` installed:
|
24 |
+
```bash
|
25 |
+
pip install optimum[openvino]
|
26 |
+
```
|
27 |
+
To load your model you can do as follows:
|
28 |
+
```python
|
29 |
+
from optimum.intel import OVModelForCausalLM
|
30 |
+
model_id = "AIFunOver/Phi-3.5-mini-instruct-openvino-4bit"
|
31 |
+
model = OVModelForCausalLM.from_pretrained(model_id)
|
32 |
+
```
|