import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("RunDiffusion/Juggernaut-XL-Lightning", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]
Juggernaut XL Lightning by RunDiffusion
Juggernaut quality at SDXL Lightning speed β 5β7 steps, photo-grade output.
Juggernaut XL Lightning is the speed-optimized member of the Juggernaut family β built on SDXL Lightning distillation, it produces photo-grade Juggernaut output in just 5β7 inference steps instead of the usual 30β40. Same aesthetic, ~5Γ faster, ideal for batch generation, real-time iteration, and live demos.
When to Use It
- β‘ Batch generation β render hundreds of variations in the time you'd usually generate a few.
- π Real-time iteration β preview prompt changes in seconds, not minutes.
- π» Lower-end hardware β fewer steps means lower VRAM pressure during inference.
- π€ Live demos and showcases β instant turnaround when latency is the bottleneck.
If you need the very best per-image quality and don't mind the wait, use Juggernaut XL v9 instead β full-step inference holds slightly more detail.
β‘ Want speed without setup? Run Lightning on RunDiffusion.
Pre-loaded with the right scheduler, sampler, and CFG. No installs. No GPU rental.
Pre-loaded into ComfyUI Β· Forge Β· Automatic1111 Β· Fooocus Β· InvokeAI Β· SwarmUI
Recommended Settings
These are different from standard Juggernaut. Lightning needs fewer steps and lower CFG.
| Parameter | Value |
|---|---|
| Sampler | DPM++ SDE or DPM++ SDE Karras |
| Steps | 5 β 7 |
| CFG scale | 1.5 β 2.0 |
| Resolution | β₯ 1024 Γ 1024 (use SDXL-native sizes) |
| VAE | Already baked in β no external VAE required |
Standard Juggernaut prompts work as-is. Don't adjust your prompt for Lightning β just adjust the sampler, steps, and CFG.
π Want to go deeper on prompting? See the RunDiffusion prompting library. Free to read, no signup.
Two Ways to Run Juggernaut XL Lightning
π Easiest β Run it on RunDiffusion (recommended)
One-click access inside ComfyUI, Forge, Automatic1111, Fooocus, InvokeAI, or SwarmUI. Free trial included, plus access to every other Juggernaut model on the same account.
π» Or run it locally β Diffusers
import torch
from diffusers import DiffusionPipeline, DPMSolverSinglestepScheduler
pipe = DiffusionPipeline.from_pretrained(
"RunDiffusion/Juggernaut-XL-Lightning",
torch_dtype=torch.float16,
use_safetensors=True,
).to("cuda")
# DPM++ SDE Karras
pipe.scheduler = DPMSolverSinglestepScheduler.from_config(
pipe.scheduler.config, use_karras_sigmas=True
)
prompt = "Cinematic mid shot photo of an astronaut walking through a neon-lit Tokyo alley at night, hyperdetailed photography, skin details, shallow depth of field"
image = pipe(prompt, width=1024, height=1024, num_inference_steps=6, guidance_scale=1.8).images[0]
image.save("juggernaut_xl_lightning.png")
For ComfyUI / Forge / InvokeAI / SwarmUI: download the single-file checkpoint and drop it into your models/checkpoints/ directory.
The Rest of the Family
| Model | Best for |
|---|---|
| Juggernaut XL v9 | The flagship SDXL β full-step photorealism workhorse. 6M+ downloads. |
| Juggernaut XI v11 | Latest SDXL-line refinement |
| Juggernaut XI Lightning | Speed variant on the XI base |
| Juggernaut Z | Lumina-Image-2 architecture β cinematic, presentation-ready |
| Juggernaut Pro Flux | FLUX.1 backbone β top-tier photo quality |
Commercial Use
This model may not be deployed behind paid API services without explicit licensing. For commercial licensing, custom models, business inquiries, or consultation, contact [email protected].
You are free to use this model for personal and creative work under the terms of the CreativeML Open RAIL-M license.
Credits
Juggernaut XL Lightning was created by KandooAI in collaboration with RunDiffusion, distilled on top of SDXL Lightning.
Ready to generate at speed?
Juggernaut Lightning is one click away β no setup, no GPU rental, no model downloads.
Compare the full Juggernaut lineup Β· Prompting guides Β· Commercial licensing
- Downloads last month
- 10,262
Model tree for RunDiffusion/Juggernaut-XL-Lightning
Base model
stabilityai/stable-diffusion-xl-base-1.0