Skip to content

Test Mosaic Tutorial Post 2.11#3809

Open
sekyondaMeta wants to merge 7 commits into
mainfrom
test_mosaic_tutorial_2.11
Open

Test Mosaic Tutorial Post 2.11#3809
sekyondaMeta wants to merge 7 commits into
mainfrom
test_mosaic_tutorial_2.11

Conversation

@sekyondaMeta
Copy link
Copy Markdown
Contributor

@sekyondaMeta sekyondaMeta commented Mar 30, 2026

Test mosaic tutorial post 2.11 release

Disabled GPT-2 dropout (resid_pdrop=0, attn_pdrop=0, embd_pdrop=0) in run_training_ac() to work around a PyTorch 2.11 bug where the CUDA dropout kernel crashes during gradient checkpointing recomputation (#3774). Dropout has no impact on this tutorial's purpose of memory profiling with Mosaic.

cc @basilwong

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Mar 30, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3809

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 78d59fe with merge base cc4874c (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the cla signed label Mar 30, 2026
Switches gradient_checkpointing_enable() to use non-reentrant
checkpointing, which properly preserves dropout RNG state during
recomputation and resolves the SystemError during loss.backward().

Issue: #3774
Disable dropout (resid_pdrop=0, attn_pdrop=0, embd_pdrop=0) in the
run_training_ac function to avoid SystemError from _VF.dropout returning
NULL during backward recomputation of GPT2Block. Dropout is irrelevant
to the memory profiling purpose of this tutorial.

Issue: #3774
@sekyondaMeta
Copy link
Copy Markdown
Contributor Author

@basilwong here is an attempt to get this to work. It is a bandaid at best, still needs an actual fix

@sekyondaMeta sekyondaMeta requested a review from basilwong April 2, 2026 14:35
@sekyondaMeta sekyondaMeta added mosaic 2.11 PRs for 2.11 release labels Apr 2, 2026
@sekyondaMeta sekyondaMeta marked this pull request as ready for review April 21, 2026 12:25
@meta-cla
Copy link
Copy Markdown

meta-cla Bot commented May 20, 2026

Hi @sekyondaMeta!

Thank you for your pull request.

We require contributors to sign our Contributor License Agreement, and yours needs attention.

You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

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

Labels

2.11 PRs for 2.11 release cla signed mosaic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant