katuni4ka commited on
Commit
056d84a
1 Parent(s): 4065c89

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -1
README.md CHANGED
@@ -21,7 +21,7 @@ The provided OpenVINO™ IR model is compatible with:
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
 
@@ -48,6 +48,37 @@ The provided OpenVINO™ IR model is compatible with:
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).
 
21
  * OpenVINO version 2024.1.0 and higher
22
  * Optimum Intel 1.16.0 and higher
23
 
24
+ ## Running Model Inference with [Optimum Intel](https://huggingface.co/docs/optimum/intel/index)
25
 
26
  1. Install packages required for using [Optimum Intel](https://huggingface.co/docs/optimum/intel/index) integration with the OpenVINO backend:
27
 
 
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
+ ## Running Model Inference with [OpenVINO GenAI](https://github.com/openvinotoolkit/openvino.genai)
52
+
53
+ 1. Install packages required for using OpenVINO GenAI.
54
+ ```
55
+ pip install openvino-genai huggingface_hub
56
+ ```
57
+
58
+ 2. Download model from HuggingFace Hub
59
+
60
+ ```
61
+ import huggingface_hub as hf_hub
62
+
63
+ model_id = "OpenVINO/zephyr-7b-beta-fp16-ov"
64
+ model_path = "zephyr-7b-beta-fp16-ov"
65
+
66
+ hf_hub.snapshot_download(model_id, local_dir=model_path)
67
+
68
+ ```
69
+
70
+ 3. Run model inference:
71
+
72
+ ```
73
+ import openvino_genai as ov_genai
74
+
75
+ device = "CPU"
76
+ pipe = ov_genai.LLMPipeline(model_path, device)
77
+ print(pipe.generate("What is OpenVINO?"))
78
+ ```
79
+
80
+ 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)
81
+
82
  ## Limitations
83
 
84
  Check the original model card for [limitations](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta#intended-uses--limitations).