Skip to content

Fix comment referencing non-existent variable in sft_model - #761

Open
PratikDhanave wants to merge 1 commit into
google-deepmind:mainfrom
PratikDhanaveFork:fix/sft-model-sc-logits-comment
Open

Fix comment referencing non-existent variable in sft_model#761
PratikDhanave wants to merge 1 commit into
google-deepmind:mainfrom
PratikDhanaveFork:fix/sft-model-sc-logits-comment

Conversation

@PratikDhanave

Copy link
Copy Markdown

In gemma/diffusion/hackable_diffusion_adapter/hd/sft_model.py, a comment reads # Reshape to broadcast with x0_hat_logits, but no x0_hat_logits exists in the module. The reshape on the following lines broadcasts do_self_cond against sc_logits (used in the subsequent jnp.where(do_self_cond, sc_logits, zero_logits)). Update the comment to sc_logits. Comment only; no behavior change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant