Add Boogu Image segmented checkpointing support - #2935
Merged
bghira merged 2 commits intoAug 3, 2026
Merged
Conversation
bghira
force-pushed
the
agent/segmented-checkpointing-boogu-image
branch
from
August 3, 2026 08:50
da6d8e8 to
ae6544a
Compare
bghira
marked this pull request as ready for review
August 3, 2026 08:52
Contributor
There was a problem hiding this comment.
Pull request overview
Adds segmented gradient-checkpointing support for the Boogu Image transformer family by wiring interval/segment-stride knobs into the model and enabling the corresponding safety-check allow-lists, with targeted unit tests to validate the new controls and an autograd safety regression.
Changes:
- Add
gradient_checkpointing_interval/gradient_checkpointing_segment_stridestate + setters toBooguImageTransformer2DModel, and useshould_checkpoint_block()to decide per-layer checkpointing. - Allow-list
boogu_imagefor interval + segmented stride insafety_check. - Add unit tests covering checkpointing-control surface area and a regression test ensuring
img_patch_embed_and_refine()is safe with custom autograd outputs.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/test_segmented_checkpointing_model_support.py | Adds a Boogu Image capability test to ensure interval/stride controls are exposed. |
| tests/test_boogu_image_model.py | Adds a regression test ensuring patch-embed/refine remains autograd-safe after layout writes. |
| simpletuner/helpers/training/default_settings/safety_check.py | Adds boogu_image to checkpointing interval + segment-stride allow-lists. |
| simpletuner/helpers/models/boogu_image/transformer.py | Implements interval/stride checkpointing decisions and adds cloning around embedder outputs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bghira
force-pushed
the
agent/segmented-checkpointing-boogu-image
branch
from
August 3, 2026 09:02
ae6544a to
6417e20
Compare
bghira
force-pushed
the
agent/segmented-checkpointing-boogu-image
branch
from
August 3, 2026 10:45
4131112 to
265863e
Compare
bghira
force-pushed
the
agent/segmented-checkpointing-boogu-image
branch
from
August 3, 2026 15:30
265863e to
98c820c
Compare
bghira
force-pushed
the
agent/segmented-checkpointing-boogu-image
branch
from
August 3, 2026 15:32
98c820c to
cec1c1a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Splits the Boogu Image segmented checkpointing support model integration out of #2925.
Stack
Base branch:
agent/segmented-checkpointing-auraflowValidation
.venv/bin/python -m unittest tests.test_segmented_checkpointing_model_support -v.venv/bin/python -m unittest tests.test_boogu_image_model -v