cale=0.0. step_index and timestep tell you where you are in the denoising loop. Use step_index to turn off CFG after reaching 40% of num_timestep. callback_kwargs is a dict that contains tensor variables you can modify during the denoising loop. It only includes variables specified in the callback_on_step_end_tensor_inputs argument, which is passed to the pipeline’s __call__ method. Different pipelines may use different sets of variables, so pl