Skip to content

Method comparison: Small optimizations to image-gen - #3523

Open
BenjaminBossan wants to merge 1 commit into
huggingface:mainfrom
BenjaminBossan:method-comparison-image-gen-small-optimizations
Open

Method comparison: Small optimizations to image-gen#3523
BenjaminBossan wants to merge 1 commit into
huggingface:mainfrom
BenjaminBossan:method-comparison-image-gen-small-optimizations

Conversation

@BenjaminBossan

@BenjaminBossan BenjaminBossan commented Aug 6, 2026

Copy link
Copy Markdown
Member
  1. Don't recalculate step indices

We already have them, it was an unnecessary calculation. I did a double check that the indices are indeed the same.

  1. Detach loss before logging

Avoids small memory leak due to retaining graph.

I ran a test with default LoRA and both losses and runtime were unaffected, so I think there is no need to re-run all experiments when this is merged.

1. Don't recalculate step indices

We already have them, it was an unnecessary calculation. I did a
double check that the indices are indeed the same.

2. Detach loss before logging

Avoids small memory leak due to retaining graph.
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