Fast video in four steps
Lesson "video-fast", in the group Video of the lesson list. Steps: 8.
What you will be able to do
You cut twenty steps down to four with a speed-up LoRA.
What you need
- It goes on from LoRA: add a style or a subject. The card says so; it is a hint, not a lock.
- Model files the lesson checks:
- the high_noise half of Wan 2.2:
models/diffusion_models, for exampleWan2_2-T2V-A14B-HIGH_fp8_e4m3fn_scaled_KJ.safetensors; - the low_noise half of Wan 2.2:
models/diffusion_models, for exampleWan2_2-T2V-A14B-LOW_fp8_e4m3fn_scaled_KJ.safetensors; - a speed-up LoRA for Wan (lightx2v or similar), its high file:
models/loras, for examplewan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors; - a speed-up LoRA for Wan (lightx2v or similar), its low file:
models/loras, for examplewan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors.
- the high_noise half of Wan 2.2:
- Nodes: Load Diffusion Model, ModelSamplingSD3, LoraLoaderModelOnly, KSampler (Advanced).
- The app downloads and installs nothing. The step texts below say which files and folders, and which ComfyUI template names them.
The steps
The words of each step, as the lesson shows them. Node names are in bold.
Where the speed comes from (reading)
A speed-up LoRA teaches the model to do in four steps what usually takes twenty. The best known one for Wan is called
lightx2v.The price: less variety and slightly rougher motion. For trying things out and finding the right prompt it nearly always pays: the clip is ready several times sooner.
A video graph is needed
This lesson goes on from the graph of "Video from text" or "Video from a picture". The canvas must have two Load Diffusion Model nodes and two ModelSamplingSD3 nodes.
If they are not there, do one of those lessons first.
Put a LoRA into both models
Two LoraLoaderModelOnly nodes are needed, each between its Load Diffusion Model node and its ModelSamplingSD3 node. How to put them in is shown in "LoRA: add a style or a subject".
Choose the speed-up files
In the node in the path of the
high_noisemodel choose thelightx2vfile withhighin its name inlora_name, and in the path oflow_noisethe file withlow.The files for
t2vandi2vmodels differ: take the ones that fit your models. Leavestrength_modelat 1.The two samplers
The two samplers of a video lesson are needed: the first takes the
high_noisemodel, the second takes thelow_noisemodel and the result of the first.Set four steps
Set
stepsto 4 in both samplers. Setend_at_stepto 2 in the first andstart_at_stepto 2 in the second.Four steps are split in half: the first model does two, the second does two.
Set cfg to 1
Set
cfgto 1 in both samplers.A speed-up LoRA is trained to work without text guidance. With a larger value the clip burns out and fills with artifacts. At
cfg1 the text of thenegativeinput stops acting.Now it is fast (reading)
The clip is made several times sooner.
Once the prompt is right you can go back to twenty steps for quality: take the speed-up LoRAs out and set
stepsback to 20,cfgto 3.5 and the hand-over to step 10.
What the lesson checks
A reading step is done when you press Got it, next. A doing step ticks itself off when the canvas holds:
- Step 2, A video graph is needed:
- a Load Diffusion Model node.
- a Load Diffusion Model node.
- a ModelSamplingSD3 node.
- a ModelSamplingSD3 node.
unet_nameof Load Diffusion Model (first pass) holds the high_noise half of Wan 2.2; such a file lies inmodels/diffusion_models, for exampleWan2_2-T2V-A14B-HIGH_fp8_e4m3fn_scaled_KJ.safetensors.unet_nameof Load Diffusion Model (second pass) holds the low_noise half of Wan 2.2; such a file lies inmodels/diffusion_models, for exampleWan2_2-T2V-A14B-LOW_fp8_e4m3fn_scaled_KJ.safetensors.
- Step 3, Put a LoRA into both models:
- a LoraLoaderModelOnly node.
- a LoraLoaderModelOnly node.
MODELof Load Diffusion Model (first pass) intomodelof LoraLoaderModelOnly (LoRA of the first pass) (a LoraLoaderModelOnly or ModelSamplingSD3 in between is accepted).MODELof LoraLoaderModelOnly (LoRA of the first pass) intomodelof ModelSamplingSD3 (shift of the first pass) (a LoraLoaderModelOnly in between is accepted); orMODELof ModelSamplingSD3 (shift of the first pass) intomodelof LoraLoaderModelOnly (LoRA of the first pass) (a LoraLoaderModelOnly in between is accepted).MODELof Load Diffusion Model (second pass) intomodelof LoraLoaderModelOnly (LoRA of the second pass) (a LoraLoaderModelOnly or ModelSamplingSD3 in between is accepted).MODELof LoraLoaderModelOnly (LoRA of the second pass) intomodelof ModelSamplingSD3 (shift of the second pass) (a LoraLoaderModelOnly in between is accepted); orMODELof ModelSamplingSD3 (shift of the second pass) intomodelof LoraLoaderModelOnly (LoRA of the second pass) (a LoraLoaderModelOnly in between is accepted).
- Step 4, Choose the speed-up files:
lora_nameof LoraLoaderModelOnly (LoRA of the first pass) holds a speed-up LoRA for Wan (lightx2v or similar), its high file; such a file lies inmodels/loras, for examplewan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors.lora_nameof LoraLoaderModelOnly (LoRA of the second pass) holds a speed-up LoRA for Wan (lightx2v or similar), its low file; such a file lies inmodels/loras, for examplewan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors.
- Step 5, The two samplers:
- a KSampler (Advanced) node.
- a KSampler (Advanced) node.
MODELof ModelSamplingSD3 (shift of the first pass) intomodelof KSampler (Advanced) (first pass) (a LoraLoaderModelOnly in between is accepted).MODELof ModelSamplingSD3 (shift of the second pass) intomodelof KSampler (Advanced) (second pass) (a LoraLoaderModelOnly in between is accepted).LATENTof KSampler (Advanced) (first pass) intolatent_imageof KSampler (Advanced) (second pass).
- Step 6, Set four steps:
stepsof KSampler (Advanced) (first pass) is4. Why: a speed-up LoRA is trained to do everything in four steps.stepsof KSampler (Advanced) (second pass) is4. Why: a speed-up LoRA is trained to do everything in four steps.end_at_stepof KSampler (Advanced) (first pass) is2. Why: four steps are split in half: the first model does two, the second does two.start_at_stepof KSampler (Advanced) (second pass) is2. Why: four steps are split in half: the first model does two, the second does two.
- Step 7, Set cfg to 1:
cfgof KSampler (Advanced) (first pass) is1. Why: a speed-up LoRA is trained without prompt guidance. With a higher cfg the clip burns out.cfgof KSampler (Advanced) (second pass) is1. Why: a speed-up LoRA is trained without prompt guidance. With a higher cfg the clip burns out.
Mistakes people make
- cfg left at 3.5: burnt, noisy clip.
t2vspeed-up files withi2vmodels, or the other way round.- Leaving 20 steps: no speed gain, often over-cooked results.
- Counting on the negative prompt: at cfg 1 it does nothing.