sylwia-kuros commited on
Commit
30f5343
1 Parent(s): 3517372

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +56 -3
README.md CHANGED
@@ -1,3 +1,56 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ ---
6
+
7
+ # dolly-v2-3b-fp16-ov
8
+
9
+ * Model creator: [Databricks](https://huggingface.co/databricks)
10
+ * Original model: [dolly-v2-3b](https://huggingface.co/databricks/dolly-v2-3b)
11
+
12
+ ## Description
13
+
14
+ This is [dolly-v2-3b](https://huggingface.co/databricks/dolly-v2-3b) model converted to the [OpenVINO™ IR](https://docs.openvino.ai/2024/documentation/openvino-ir-format.html) (Intermediate Representation) format.
15
+
16
+ ## Compatibility
17
+
18
+ The provided OpenVINO™ IR model is compatible with:
19
+
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
+
27
+ ```
28
+ pip install optimum[openvino]
29
+ ```
30
+
31
+ 2. Run model inference:
32
+
33
+ ```
34
+ from transformers import AutoTokenizer
35
+ from optimum.intel.openvino import OVModelForCausalLM
36
+
37
+ model_id = "OpenVINO/dolly-v2-3b-fp16-ov"
38
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
39
+ model = OVModelForCausalLM.from_pretrained(model_id)
40
+
41
+ inputs = tokenizer("What is OpenVINO?", return_tensors="pt")
42
+
43
+ outputs = model.generate(**inputs, max_length=200)
44
+ text = tokenizer.batch_decode(outputs)[0]
45
+ print(text)
46
+ ```
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).
53
+
54
+ ## Legal information
55
+
56
+ The original model is distributed under mit license. More details can be found in [original model card](https://huggingface.co/databricks/dolly-v2-3b).