Skip to content

Test Mosaic Tutorial Post 2.11#3809

Draft
sekyondaMeta wants to merge 6 commits intomainfrom
test_mosaic_tutorial_2.11
Draft

Test Mosaic Tutorial Post 2.11#3809
sekyondaMeta wants to merge 6 commits intomainfrom
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.

@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 2eaef42 with merge base 084b358 (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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant