riacheruvu commited on
Commit
06e0edd
1 Parent(s): 40a1b0d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: microsoft/phi-2
3
+ language:
4
+ - en
5
+ license: mit
6
+ license_link: https://huggingface.co/microsoft/phi-2/resolve/main/LICENSE
7
+ pipeline_tag: text-generation
8
+ tags:
9
+ - nlp
10
+ - code
11
+ - openvino
12
+ - nncf
13
+ - 8-bit
14
+ ---
15
+
16
+ This model is a quantized version of [`microsoft/phi-2`](https://huggingface.co/microsoft/phi-2) 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).
17
+
18
+ First make sure you have `optimum-intel` installed:
19
+
20
+ ```bash
21
+ pip install optimum[openvino]
22
+ ```
23
+
24
+ To load your model you can do as follows:
25
+
26
+ ```python
27
+ from optimum.intel import OVModelForCausalLM
28
+
29
+ model_id = "riacheruvu/phi-2-openvino-8bit"
30
+ model = OVModelForCausalLM.from_pretrained(model_id)
31
+ ```