katuni4ka commited on
Commit
ac4c549
1 Parent(s): 35a325f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -1
README.md CHANGED
@@ -33,7 +33,7 @@ The provided OpenVINO™ IR model is compatible with:
33
  * OpenVINO version 2024.1.0 and higher
34
  * Optimum Intel 1.16.0 and higher
35
 
36
- ## Running Model Inference
37
 
38
  1. Install packages required for using [Optimum Intel](https://huggingface.co/docs/optimum/intel/index) integration with the OpenVINO backend:
39
 
@@ -60,6 +60,37 @@ The provided OpenVINO™ IR model is compatible with:
60
 
61
  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).
62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  ## Limitations
64
 
65
  Check the original model card for [limitations](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta#intended-uses--limitations).
 
33
  * OpenVINO version 2024.1.0 and higher
34
  * Optimum Intel 1.16.0 and higher
35
 
36
+ ## Running Model Inference with [Optimum Intel](https://huggingface.co/docs/optimum/intel/index)
37
 
38
  1. Install packages required for using [Optimum Intel](https://huggingface.co/docs/optimum/intel/index) integration with the OpenVINO backend:
39
 
 
60
 
61
  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).
62
 
63
+ ## Running Model Inference with [OpenVINO GenAI](https://github.com/openvinotoolkit/openvino.genai)
64
+
65
+ 1. Install packages required for using OpenVINO GenAI.
66
+ ```
67
+ pip install openvino-genai huggingface_hub
68
+ ```
69
+
70
+ 2. Download model from HuggingFace Hub
71
+
72
+ ```
73
+ import huggingface_hub as hf_hub
74
+
75
+ model_id = "OpenVINO/zephyr-7b-beta-int4-ov"
76
+ model_path = "zephyr-7b-beta-int4-ov"
77
+
78
+ hf_hub.snapshot_download(model_id, local_dir=model_path)
79
+
80
+ ```
81
+
82
+ 3. Run model inference:
83
+
84
+ ```
85
+ import openvino_genai as ov_genai
86
+
87
+ device = "CPU"
88
+ pipe = ov_genai.LLMPipeline(model_path, device)
89
+ print(pipe.generate("What is OpenVINO?"))
90
+ ```
91
+
92
+ More GenAI usage examples can be found in OpenVINO GenAI library [docs](https://github.com/openvinotoolkit/openvino.genai/blob/master/src/README.md) and [samples](https://github.com/openvinotoolkit/openvino.genai?tab=readme-ov-file#openvino-genai-samples)
93
+
94
  ## Limitations
95
 
96
  Check the original model card for [limitations](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta#intended-uses--limitations).