Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: stable-diffusion-v1-5/stable-diffusion-v1-5
|
3 |
+
license: creativeml-openrail-m
|
4 |
+
tags:
|
5 |
+
- stable-diffusion
|
6 |
+
- stable-diffusion-diffusers
|
7 |
+
- text-to-image
|
8 |
+
- openvino
|
9 |
+
- nncf
|
10 |
+
- 8-bit
|
11 |
+
inference: true
|
12 |
+
base_model_relation: quantized
|
13 |
+
---
|
14 |
+
|
15 |
+
This model is a quantized version of [`stable-diffusion-v1-5/stable-diffusion-v1-5`](https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5) and is converted to the OpenVINO format. This model was obtained via the [nncf-quantization](https://huggingface.co/spaces/echarlaix/nncf-quantization) space with [optimum-intel](https://github.com/huggingface/optimum-intel).
|
16 |
+
First make sure you have `optimum-intel` installed:
|
17 |
+
```bash
|
18 |
+
pip install optimum[openvino]
|
19 |
+
```
|
20 |
+
To load your model you can do as follows:
|
21 |
+
```python
|
22 |
+
from optimum.intel import OVPipelineForText2Image
|
23 |
+
model_id = "AIFunOver/stable-diffusion-v1-5-openvino-8bit"
|
24 |
+
model = OVPipelineForText2Image.from_pretrained(model_id)
|
25 |
+
```
|