-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathflux2-dev.json
More file actions
58 lines (58 loc) · 2.31 KB
/
Copy pathflux2-dev.json
File metadata and controls
58 lines (58 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"cost_drivers": ["num_images_per_prompt", "num_inference_steps"],
"variables": {
"prompt": "A realistic photograph of a mouse wearing a skirt playing volleyball against a team of professional volleyball players.",
"num_images_per_prompt": 1,
"num_inference_steps": 40,
"guidance_scale": 4.0,
"seed": null
},
"id": "Flux2Dev",
"description": "Text-to-image with FLUX.2 dev, pre-quantized to 4-bit BitsAndBytes. The 4-bit text encoder is loaded first as its own component and rested on the CPU, since BitsAndBytes materializes on the accelerator and the two together do not fit at load; model offloading then hands the accelerator to one component at a time, so both run on a 24 GB card.",
"cost": [
{
"device": "cuda",
"name": "RTX 3090",
"vram_gb": 24,
"minutes": 3.3
}
],
"configures": "templates/text-to-image",
"seed": "variable:seed",
"steps": [
{
"name": "txt2img",
"pipeline": {
"configuration": {
"component_type": "Flux2Pipeline",
"offload": "model"
},
"text_encoder": {
"configuration": {
"component_type": "transformers.Mistral3ForConditionalGeneration",
"device": "cpu"
},
"from_pretrained_arguments": {
"model_name": "diffusers/FLUX.2-dev-bnb-4bit",
"subfolder": "text_encoder",
"torch_dtype": "torch.bfloat16"
}
},
"from_pretrained_arguments": {
"model_name": "diffusers/FLUX.2-dev-bnb-4bit",
"torch_dtype": "torch.bfloat16"
},
"arguments": {
"prompt": "variable:prompt",
"num_inference_steps": "variable:num_inference_steps",
"num_images_per_prompt": "variable:num_images_per_prompt",
"guidance_scale": "variable:guidance_scale"
}
},
"result": {
"content_type": "image/jpeg",
"embed_metadata": true
}
}
]
}