Commit
•
4c9f3db
1
Parent(s):
2294a56
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: openai-community/gpt2
|
3 |
+
language: en
|
4 |
+
license: mit
|
5 |
+
tags:
|
6 |
+
- exbert
|
7 |
+
- openvino
|
8 |
+
- openvino-export
|
9 |
+
---
|
10 |
+
|
11 |
+
This model was converted to OpenVINO from [`openai-community/gpt2`](https://huggingface.co/openai-community/gpt2) using [optimum-intel](https://github.com/huggingface/optimum-intel)
|
12 |
+
via the [export](https://huggingface.co/spaces/echarlaix/openvino-export) space.
|
13 |
+
|
14 |
+
First make sure you have optimum-intel installed:
|
15 |
+
|
16 |
+
```bash
|
17 |
+
pip install optimum[openvino]
|
18 |
+
```
|
19 |
+
|
20 |
+
To load your model you can do as follows:
|
21 |
+
|
22 |
+
```python
|
23 |
+
from optimum.intel import OVModelForCausalLM
|
24 |
+
|
25 |
+
model_id = "IlyasMoutawwakil/gpt2-openvino"
|
26 |
+
model = OVModelForCausalLM.from_pretrained(model_id)
|
27 |
+
```
|