Instructions to use Yi30/FLUX.1-dev-AutoRound-w4a16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Yi30/FLUX.1-dev-AutoRound-w4a16 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Yi30/FLUX.1-dev-AutoRound-w4a16", torch_dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Add files using upload-large-folder tool
Browse files- model_index.json +0 -12
- transformer/config.json +2 -2
model_index.json
CHANGED
|
@@ -10,18 +10,6 @@
|
|
| 10 |
null,
|
| 11 |
null
|
| 12 |
],
|
| 13 |
-
"quantization_config": {
|
| 14 |
-
"autoround_version": "0.12.0",
|
| 15 |
-
"batch_size": 1,
|
| 16 |
-
"bits": 4,
|
| 17 |
-
"block_name_to_quantize": "transformer_blocks,single_transformer_blocks",
|
| 18 |
-
"data_type": "int",
|
| 19 |
-
"group_size": 128,
|
| 20 |
-
"iters": 0,
|
| 21 |
-
"packing_format": "auto_round:auto_gptq",
|
| 22 |
-
"quant_method": "auto-round",
|
| 23 |
-
"sym": true
|
| 24 |
-
},
|
| 25 |
"scheduler": [
|
| 26 |
"diffusers",
|
| 27 |
"FlowMatchEulerDiscreteScheduler"
|
|
|
|
| 10 |
null,
|
| 11 |
null
|
| 12 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
"scheduler": [
|
| 14 |
"diffusers",
|
| 15 |
"FlowMatchEulerDiscreteScheduler"
|
transformer/config.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
| 3 |
"_diffusers_version": "0.30.0.dev0",
|
| 4 |
"_name_or_path": "/storage/yiliu7/black-forest-labs/FLUX.1-dev/transformer",
|
| 5 |
"_use_default_values": [
|
| 6 |
-
"
|
| 7 |
-
"
|
| 8 |
],
|
| 9 |
"attention_head_dim": 128,
|
| 10 |
"axes_dims_rope": [
|
|
|
|
| 3 |
"_diffusers_version": "0.30.0.dev0",
|
| 4 |
"_name_or_path": "/storage/yiliu7/black-forest-labs/FLUX.1-dev/transformer",
|
| 5 |
"_use_default_values": [
|
| 6 |
+
"axes_dims_rope",
|
| 7 |
+
"out_channels"
|
| 8 |
],
|
| 9 |
"attention_head_dim": 128,
|
| 10 |
"axes_dims_rope": [
|