lukeyourheart commited on
Commit
2a3d070
1 Parent(s): 516dd80

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +44 -0
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: distilbert/distilgpt2
3
+ datasets:
4
+ - openwebtext
5
+ language: en
6
+ license: apache-2.0
7
+ pipeline_tag: text-generation
8
+ tags:
9
+ - exbert
10
+ - openvino
11
+ - openvino-export
12
+ co2_eq_emissions: 149200
13
+ model-index:
14
+ - name: distilgpt2
15
+ results:
16
+ - task:
17
+ type: text-generation
18
+ name: Text Generation
19
+ dataset:
20
+ name: WikiText-103
21
+ type: wikitext
22
+ metrics:
23
+ - type: perplexity
24
+ value: 21.1
25
+ name: Perplexity
26
+ ---
27
+
28
+ This model was converted to OpenVINO from [`distilbert/distilgpt2`](https://huggingface.co/distilbert/distilgpt2) using [optimum-intel](https://github.com/huggingface/optimum-intel)
29
+ via the [export](https://huggingface.co/spaces/echarlaix/openvino-export) space.
30
+
31
+ First make sure you have optimum-intel installed:
32
+
33
+ ```bash
34
+ pip install optimum[openvino]
35
+ ```
36
+
37
+ To load your model you can do as follows:
38
+
39
+ ```python
40
+ from optimum.intel import OVModelForCausalLM
41
+
42
+ model_id = "lukeyourheart/distilgpt2-openvino"
43
+ model = OVModelForCausalLM.from_pretrained(model_id)
44
+ ```