katuni4ka commited on
Commit
ec07ca2
·
verified ·
1 Parent(s): 812909d

Update README.md

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