Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
- fp16
|
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 |
+
---
|
19 |
+
|
20 |
+
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).
|
21 |
+
First make sure you have `optimum-intel` installed:
|
22 |
+
```bash
|
23 |
+
pip install optimum[openvino]
|
24 |
+
```
|
25 |
+
To load your model you can do as follows:
|
26 |
+
```python
|
27 |
+
from optimum.intel import OVPipelineForText2Image
|
28 |
+
model_id = "AIFunOver/FLUX.1-dev-openvino-fp16"
|
29 |
+
model = OVPipelineForText2Image.from_pretrained(model_id)
|
30 |
+
```
|