Diffusion inference makes two predictions per step β one with the prompt off (uncond) and one with it on (cond). It combines the two by a guidance strength scale to form the step's final prediction. The larger scale is, the more strongly the output is pulled toward cond. Complete apply_cfg(uncond, cond, scale). Example uncond = [0, 0, 0], cond = [1, 2, -1] β the larger scale is, the further the output moves toward cond.
In diffusion inference each step yields two predictions β one with the prompt off (uncond) and one with it on (cond). This problem has you complete the combiner function in numpy, combining the two by a guidance strength scale into the step's final prediction. You work with same-shape real arrays and verify in code how the output should change as scale changes.
Classifier-free guidance (CFG) is the step in diffusion inference that combines two predictions by a single guidance strength to decide how strongly the prompt is reflected. Combining two arrays into one like this usually comes with promises (invariants) about what the result must be at particular scale values. So rather than trusting an output that merely looks plausible, the habit that matters is checking those promises in numbers. It is practice in numpy array arithmetic and in verifying boundary values (the two ends of scale).