IlyasMoutawwakil HF staff commited on
Commit
4d4a6a7
1 Parent(s): 8860ea6

Upload README.md with huggingface_hub

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