to performance. The callback function should have the following arguments: pipe (or the pipeline instance) provides access to useful properties such as num_timestep and guidance_scale. You can modify these properties by updating the underlying attributes. For this example, you’ll disable CFG by setting pipe._guidance_scale=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