katuni4ka commited on
Commit
4b46cdd
·
verified ·
1 Parent(s): 668702f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md CHANGED
@@ -17,6 +17,15 @@ The provided OpenVINO™ IR model is compatible with:
17
 
18
  ## Running Model Inference
19
 
 
 
 
 
 
 
 
 
 
20
  1. Install packages required for using [Optimum Intel](https://huggingface.co/docs/optimum/intel/index) integration with the OpenVINO backend:
21
 
22
  ```
@@ -42,6 +51,37 @@ print(text)
42
 
43
  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).
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  ## Limitations
46
 
47
  Check the original model card for [limitations]().
 
17
 
18
  ## Running Model Inference
19
 
20
+ 1. Install packages required for using [Optimum Intel](https://huggingface.co/docs/optimum/intel/index) integration with the OpenVINO backend:
21
+
22
+ ```
23
+ pip install optimum[openvino]
24
+ ```
25
+
26
+ ## Running Model Inference with [Optimum Intel](https://huggingface.co/docs/optimum/intel/index)
27
+
28
+
29
  1. Install packages required for using [Optimum Intel](https://huggingface.co/docs/optimum/intel/index) integration with the OpenVINO backend:
30
 
31
  ```
 
51
 
52
  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).
53
 
54
+ ## Running Model Inference with [OpenVINO GenAI](https://github.com/openvinotoolkit/openvino.genai)
55
+
56
+ 1. Install packages required for using OpenVINO GenAI.
57
+ ```
58
+ pip install openvino-genai huggingface_hub
59
+ ```
60
+
61
+ 2. Download model from HuggingFace Hub
62
+
63
+ ```
64
+ import huggingface_hub as hf_hub
65
+
66
+ model_id = "OpenVINO/pythia-12b-fp16-ov"
67
+ model_path = "pythia-12b-fp16-ov"
68
+
69
+ hf_hub.snapshot_download(model_id, local_dir=model_path)
70
+
71
+ ```
72
+
73
+ 3. Run model inference:
74
+
75
+ ```
76
+ import openvino_genai as ov_genai
77
+
78
+ device = "CPU"
79
+ pipe = ov_genai.LLMPipeline(model_path, device)
80
+ print(pipe.generate("What is OpenVINO?"))
81
+ ```
82
+
83
+ 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)
84
+
85
  ## Limitations
86
 
87
  Check the original model card for [limitations]().