-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstep-caching.json
More file actions
36 lines (36 loc) · 1.59 KB
/
Copy pathstep-caching.json
File metadata and controls
36 lines (36 loc) · 1.59 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
{
"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
},
"id": "FluxDevFirstBlockCache",
"description": "FLUX.1 dev accelerated with first-block caching, skipping redundant transformer work across denoise steps. Two cache implementations, one shape. This uses first-block caching, a 'cache' block of {\"type\": \"first_block\", \"threshold\": 0.05}. For TeaCache instead, replace it with a sibling 'teacache' block of {\"rel_l1_thresh\": 0.4}. Both trade a little fidelity for skipped transformer work; raise the threshold to skip more.",
"steps": [
{
"name": "txt2img",
"pipeline": {
"configuration": {
"component_type": "FluxPipeline",
"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
}
}
]
}