Classifier-free guidance sharpens how well samples match the text prompt. The model is run twice, once with and once without the condition, and the difference is amplified by a guidance weight.
Implement cfg_combine(eps_u, eps_c, w), returning the unconditional prediction pushed toward the conditional one by weight w.
w can exceed one for stronger guidance.Compute the difference eps_c - eps_u, scale it by w, and add to eps_u.
No results yet
Run your code to check it against the examples, or submit to run every test.