Skip to content

[models] feat: define SFT caption dropout for image adapters - #397

Merged
Jayce-Ping merged 3 commits into
mainfrom
feat/p23-image-dropout
Nov 24, 2026
Merged

Jayce-Ping merged 3 commits into
mainfrom
feat/p23-image-dropout

Conversation

@Jayce-Ping

@Jayce-Ping Jayce-Ping commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Scope

P23 starts with the model-side policy and the ten image generation and editing adapters. The caption policy selects an absent instruction per record and epoch. Model preprocessing still owns pooled and sequence embeddings, masks, ordered edit references and embedded guidance. This PR introduces the contract used by the subsequent SFT trainer change.

Evidence

  • Five CPU policy/native input tests and 114 routed CPU regressions passed.
  • Two CUDA controls passed on Torch 2.11.0+cu128 and Diffusers 0.42.1. SD3.5 matched the directly encoded empty sequence and pooled embeddings. At fixed latent, timestep and two ordered edit references, Klein Base matched the empty-text CFG arm's velocity before mixing.
  • Qwen Edit Plus and Qwen Image 2.1 controls check that changing reference order changes the empty-instruction representation.
  • Black and isort passed on the changed Python files.

The top of the stack enables the user-facing default and exercises the raw and cached public training paths.

Validation routing

Changes confined to the image adapters’ caption-policy declarations select one GPU case. Changes to forward methods, unknown imports or other module-level code retain their existing validation routes. The catalog binds the test and its native model fixtures, including the shared Flux tokenizer. The selected plan also runs the repository consistency and harness CPU checks.

At fd3a9d45, all seven items in sft-image-caption-dropout passed on a single NVIDIA L20Y with Torch 2.11.0+cu128 and Diffusers 0.42.1. The evidence bundle contains the command output, pytest JUnit results and CUDA process observations. Recorded GPU evidence · PR validation

Copilot AI balanced review requested due to automatic review settings November 24, 2026 07:57

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Jayce-Ping
Jayce-Ping added this pull request to stack #401 November 24, 2026 08:24
@Jayce-Ping
Jayce-Ping merged commit e4dc605 into main Nov 24, 2026
9 of 10 checks passed
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.

2 participants