Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
co2_eq_emissions: 149200
|
11 |
+
model-index:
|
12 |
+
- name: distilgpt2
|
13 |
+
results:
|
14 |
+
- task:
|
15 |
+
type: text-generation
|
16 |
+
name: Text Generation
|
17 |
+
dataset:
|
18 |
+
name: WikiText-103
|
19 |
+
type: wikitext
|
20 |
+
metrics:
|
21 |
+
- type: perplexity
|
22 |
+
value: 21.1
|
23 |
+
name: Perplexity
|
24 |
+
---
|
25 |
+
|
26 |
+
This model was converted to OpenVINO from [`distilbert/distilgpt2`](https://huggingface.co/distilbert/distilgpt2) using [optimum-intel](https://github.com/huggingface/optimum-intel)
|
27 |
+
via the [export](https://huggingface.co/spaces/echarlaix/openvino-export) space.
|
28 |
+
|
29 |
+
First make sure you have optimum-intel installed:
|
30 |
+
|
31 |
+
```bash
|
32 |
+
pip install optimum[openvino]
|
33 |
+
```
|
34 |
+
|
35 |
+
To load your model you can do as follows:
|
36 |
+
|
37 |
+
```python
|
38 |
+
from optimum.intel import OVModelForCausalLM
|
39 |
+
|
40 |
+
model_id = "echarlaix/distilgpt2-openvino"
|
41 |
+
model = OVModelForCausalLM.from_pretrained(model_id)
|
42 |
+
```
|