Skip to content

Deb/flux2 dmd2#1205

Open
wangshankun wants to merge 3 commits into
mainfrom
deb/flux2_dmd2
Open

Deb/flux2 dmd2#1205
wangshankun wants to merge 3 commits into
mainfrom
deb/flux2_dmd2

Conversation

@wangshankun

Copy link
Copy Markdown
Collaborator

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces training configurations and model updates for Flux2 Klein using DMD and LoRA. Key changes include adding a new YAML configuration file, updating load_components in Flux2KleinModel to support transformer-only loading, and implementing latent shape and conditioning helper methods. Feedback is provided regarding a potential duplicate definition of dmd_latent_shape in the base model class.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines 29 to +31

def dmd_latent_shape(self, batch_size, height, width):
raise NotImplementedError(f"{self.__class__.__name__} must define dmd_latent_shape().")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The method dmd_latent_shape is already defined at lines 169-170 in this file. Adding it here at lines 30-31 introduces a duplicate method definition. Please remove this duplicate definition to keep the class clean and maintainable.

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