sylwia-kuros commited on
Commit
fb87d11
1 Parent(s): 1b6e5b7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +57 -3
README.md CHANGED
@@ -1,3 +1,57 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ ---
6
+
7
+ # zephyr-7b-beta-fp16-ov
8
+
9
+ * Model creator: [Hugging Face H4](https://huggingface.co/HuggingFaceH4)
10
+ * Original model: [zephyr-7b-beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta)
11
+
12
+
13
+ ## Description
14
+
15
+ This is [zephyr-7b-beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) model converted to the [OpenVINO™ IR](https://docs.openvino.ai/2024/documentation/openvino-ir-format.html) (Intermediate Representation) format.
16
+
17
+ ## Compatibility
18
+
19
+ The provided OpenVINO™ IR model is compatible with:
20
+
21
+ * OpenVINO version 2024.1.0 and higher
22
+ * Optimum Intel 1.16.0 and higher
23
+
24
+ ## Running Model Inference
25
+
26
+ 1. Install packages required for using [Optimum Intel](https://huggingface.co/docs/optimum/intel/index) integration with the OpenVINO backend:
27
+
28
+ ```
29
+ pip install optimum[openvino]
30
+ ```
31
+
32
+ 2. Run model inference:
33
+
34
+ ```
35
+ from transformers import AutoTokenizer
36
+ from optimum.intel.openvino import OVModelForCausalLM
37
+
38
+ model_id = "OpenVINO/zephyr-7b-beta-fp16-ov"
39
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
40
+ model = OVModelForCausalLM.from_pretrained(model_id)
41
+
42
+ inputs = tokenizer("What is OpenVINO?", return_tensors="pt")
43
+
44
+ outputs = model.generate(**inputs, max_length=200)
45
+ text = tokenizer.batch_decode(outputs)[0]
46
+ print(text)
47
+ ```
48
+
49
+ For more examples and possible optimizations, refer to the [OpenVINO Large Language Model Inference Guide](https://docs.openvino.ai/2024/learn-openvino/llm_inference_guide.html).
50
+
51
+ ## Limitations
52
+
53
+ Check the original model card for [limitations](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta#intended-uses--limitations).
54
+
55
+ ## Legal information
56
+
57
+ The original model is distributed under mit license. More details can be found in [original model card](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta).