unrestricted.image
PerformanceOptimisation

Speed Up AI Image Generation: 10 Proven Techniques

Make local image generation faster: step-distilled LoRAs, FP8, attention optimisations, caching, torch.compile, smaller sizes and smarter workflows.

By the Unrestricted Image Generator AI editorial team· Updated · 3 min read

Generation speed decides how much you can explore. These techniques are ordered roughly by impact.

1. Fewer steps

Step-distilled models and LoRAs (turbo, lightning, hyper and similar) cut steps from 25-30 to 4-8. The biggest single speedup. See how many sampling steps.

2. Keep everything in VRAM

Offloading to system RAM is far slower. Use quantised weights that fit. See GGUF and FP8 image models.

3. FP8 on supported GPUs

Native FP8 support on newer NVIDIA GPUs speeds up matrix operations, not just memory.

4. Optimised attention

Backends such as SageAttention or memory-efficient attention speed up transformer models.

5. torch.compile

Compiling the model takes time once, then speeds up subsequent runs. Best for long sessions with the same model and size.

6. Caching techniques

Methods that reuse computation across similar steps (for example TeaCache-style caching) skip work with a small quality cost.

7. Lower CFG where possible

CFG above 1 runs two passes per step. Distilled guidance or CFG 1 halves compute. See CFG scale explained.

8. Smaller previews

Explore at lower resolution, then upscale winners. See the AI image upscaling guide.

9. Batch smartly

Batch size above 1 can improve throughput if VRAM allows.

10. Update drivers and software

New releases often include significant optimisations.

Measure

Change one thing at a time and time ten generations. Quality checks matter as much as speed.

Common questions

What is the fastest way to speed up FLUX?

Use a step-distilled variant or LoRA to cut steps, keep weights in VRAM with FP8 or GGUF, and use optimised attention.

What is SageAttention?

An optimised attention implementation that speeds up transformer models on supported NVIDIA GPUs, with minimal quality impact.

Does lowering resolution help?

Yes, substantially. Generate smaller and upscale afterwards for final images.

Related reading

Browse more: all guides · comparisons · glossary · free tools

Unlock the whole studio.

Open the unrestricted AI image generator and take every setting into your own hands.