Views
No views yet


comfy/ directory, converted by ByteZSzn.1import torch
2from diffusers import Flux2Pipeline
3
4# Pre-shifted custom sigmas for 8-step turbo inference
5TURBO_SIGMAS = [1.0, 0.6509, 0.4374, 0.2932, 0.1893, 0.1108, 0.0495, 0.00031]
6
7pipe = Flux2Pipeline.from_pretrained(
8 "black-forest-labs/FLUX.2-dev",
9 torch_dtype=torch.bfloat16
10).to("cuda")
11
12pipe.load_lora_weights(
13 "fal/FLUX.2-dev-Turbo",
14 weight_name="flux.2-turbo-lora.safetensors"
15)
16
17prompt = "Industrial product shot of a chrome turbocharger with glowing hot exhaust manifold, engraved text 'FLUX.2 [dev] Turbo by fal' on the compressor housing and 'fal' on the turbine wheel, gradient heat glow from orange to electric blue , studio lighting with dramatic shadows, shallow depth of field, engineering blueprint pattern in background."
18
19image = pipe(
20 prompt=prompt,
21 sigmas=TURBO_SIGMAS,
22 guidance_scale=2.5,
23 height=1024,
24 width=1024,
25 num_inference_steps=8,
26).images[0]
27
28image.save("output.png")