Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: black-forest-labs/FLUX.1-dev
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
license: other
|
6 |
+
license_name: flux-1-dev-non-commercial-license
|
7 |
+
license_link: LICENSE.md
|
8 |
+
tags:
|
9 |
+
- text-to-image
|
10 |
+
- image-generation
|
11 |
+
- flux
|
12 |
+
- openvino
|
13 |
+
- nncf
|
14 |
+
- 8-bit
|
15 |
+
extra_gated_prompt: By clicking "Agree", you agree to the [FluxDev Non-Commercial
|
16 |
+
License Agreement](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md)
|
17 |
+
and acknowledge the [Acceptable Use Policy](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/POLICY.md).
|
18 |
+
base_model_relation: quantized
|
19 |
+
---
|
20 |
+
|
21 |
+
This model is a quantized version of [`black-forest-labs/FLUX.1-dev`](https://huggingface.co/black-forest-labs/FLUX.1-dev) 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).
|
22 |
+
First make sure you have `optimum-intel` installed:
|
23 |
+
```bash
|
24 |
+
pip install optimum[openvino]
|
25 |
+
```
|
26 |
+
To load your model you can do as follows:
|
27 |
+
```python
|
28 |
+
from optimum.intel import OVPipelineForText2Image
|
29 |
+
model_id = "AIFunOver/FLUX.1-dev-openvino-8bit"
|
30 |
+
model = OVPipelineForText2Image.from_pretrained(model_id)
|
31 |
+
```
|