Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nodes_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ def predict_with_cfg(z, cfg_scale, positive_embeds, negative_embeds, timestep, i
with torch.autocast(device_type=mm.get_autocast_device(device), dtype=dtype) if autocast_enabled else nullcontext():

if use_cfg_zero_star and (idx <= zero_star_steps) and use_zero_init:
return z*0, None
return z*0, None, cache_state

nonlocal patcher
current_step_percentage = idx / len(timesteps)
Expand Down