Repository navigation
Expand file tree
/
Copy pathstep-caching.json
More file actions
52 lines (52 loc) · 2.15 KB
/
Copy pathstep-caching.json
File metadata and controls
52 lines (52 loc) · 2.15 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
{
"variables": {
"prompt": "A photorealistic image of a red fox sitting in a snowy forest clearing, soft morning light filtering through the trees",
"num_inference_steps": 28,
"guidance_scale": 3.5,
"seed": null
},
"id": "FluxDevFirstBlockCache",
"description": "FLUX.1 dev accelerated with first-block caching, skipping redundant transformer work across denoise steps. This uses first-block caching, a 'cache' block of {\"type\": \"first_block\", \"threshold\": 0.05}. It trades a little fidelity for skipped transformer work; raise the threshold to skip more.",
"seed": "variable:seed",
"steps": [
{
"name": "txt2img",
"pipeline": {
"configuration": {
"component_type": "FluxPipeline",
"components": {
"transformer": {
"group_offload": {
"offload_type": "block_level",
"num_blocks_per_group": 1,
"use_stream": true,
"record_stream": true
}
},
"text_encoder": { "device": "cuda" },
"text_encoder_2": { "device": "cuda" },
"vae": { "device": "cuda" }
},
"cache": {
"type": "first_block",
"threshold": 0.05
}
},
"from_pretrained_arguments": {
"model_name": "black-forest-labs/FLUX.1-dev",
"torch_dtype": "torch.bfloat16"
},
"arguments": {
"prompt": "variable:prompt",
"num_inference_steps": "variable:num_inference_steps",
"guidance_scale": "variable:guidance_scale"
}
},
"result": {
"content_type": "image/jpeg",
"embed_metadata": true,
"subfolder": "final"
}
}
]
}