Skip to content

Fix dead LeNet/MNIST download for fgsm_tutorial#3922

Open
yushangdi wants to merge 1 commit into
mainfrom
fix-fgsm-lenet-download
Open

Fix dead LeNet/MNIST download for fgsm_tutorial#3922
yushangdi wants to merge 1 commit into
mainfrom
fix-fgsm-lenet-download

Conversation

@yushangdi

Copy link
Copy Markdown
Contributor

Summary

make download fails on any build shard that runs fgsm_tutorial because the LeNet/MNIST checkpoint it depends on was fetched from a Google Drive link that now returns HTTP 404:

.jenkins/download_data.py -> download_lenet_mnist()
  https://docs.google.com/uc?export=download&id=1HJV2nUHJqclXQ8flKvcWmjZ-OU5DGatl
  -> urllib.error.HTTPError: HTTP Error 404: Not Found
make: *** [Makefile:73: docs] Error 2

This is a pre-existing, repo-wide breakage (the link died after the last main build, so it only surfaces on PRs whose shard rebalancing puts fgsm_tutorial on a worker that exercises the download).

Fix

Point download_lenet_mnist() at a public S3 mirror on pytorch-tutorial-assets (the same host the DCGAN download already uses) instead of the dead Drive link.

The checkpoint was retrained to match the exact Net architecture in beginner_source/fgsm_tutorial.py (conv1 32x1x3x3 / conv2 / fc1 9216x128 / fc2), so it loads with a strict load_state_dict.

Verification

  • Anonymous public fetch of the new S3 URL returns HTTP 200 with the pinned sha256.
  • Ran download_lenet_mnist() end-to-end: file lands at beginner_source/data/lenet_mnist_model.pth, sha256 matches.
  • Confirmed the checkpoint loads strictly into the current tutorial Net and runs an FGSM step.

🤖 Generated with Claude Code

@pytorch-bot

pytorch-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⏳ No Failures, 1 Pending

As of commit f7f128f with merge base 326edb0 (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 Jun 10, 2026
@yushangdi yushangdi requested a review from malfet June 10, 2026 20:30
The Google Drive link for the fgsm_tutorial LeNet/MNIST checkpoint started
returning HTTP 404, which broke `make download` on any build shard that runs
fgsm_tutorial. Use a refreshed Google Drive link as the primary source and a
public S3 mirror (s3://pytorch-tutorial-assets/lenet_mnist_model_v2.pth) as a
fallback so the download survives future Drive link rot.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@yushangdi yushangdi force-pushed the fix-fgsm-lenet-download branch from 46d11da to f7f128f Compare June 10, 2026 20:32
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.

2 participants