Skip to content

Conversation

@mikaylagawarecki
Copy link
Contributor

Fixes T237454734

skip_init was originally added to support skipping initialization during load_state_dict, see pytorch/pytorch#29523

This has been superseded by model creation under the meta device context manager and then loading with assign=True, see https://docs.pytorch.org/tutorials/recipes/recipes/module_load_state_dict_tips.html#using-torch-device-meta

So this tutorial can be removed

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 12, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 16 Pending

As of commit 557f732 with merge base 91a1891 (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 Sep 12, 2025
Copy link
Contributor

@svekars svekars left a comment

Choose a reason for hiding this comment

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

@svekars svekars merged commit d81e832 into main Sep 15, 2025
20 checks passed
@AlannaBurke AlannaBurke added the tutorials_audit used on tutorial audit PRs label Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants