Skip to content

Conversation

@yanmxa
Copy link
Member

@yanmxa yanmxa commented Nov 27, 2025

Summary

Upgrade torch from 2.5.0 to 2.7.0 and torchvision from 0.20.0 to 0.22.0 to fix MNIST dataset download failure.

Problem

Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
Failed to download (trying next):
HTTP Error 404: Not Found

The original MNIST download URL (yann.lecun.com) frequently returns HTTP 404 errors, causing confusing error messages during federated learning client startup.

Solution

Upgrade to torchvision 0.22.0 which includes the fix from pytorch/vision#8865. This PR reorders the mirror list to prioritize the reliable AWS S3 mirror (ossci-datasets.s3.amazonaws.com) over the unreliable yann.lecun.com.

Related Issues

🤖 Generated with Claude Code

@openshift-ci openshift-ci bot requested review from mikeshng and qiujian16 November 27, 2025 14:33
@openshift-ci
Copy link

openshift-ci bot commented Nov 27, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yanmxa

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@yanmxa yanmxa changed the title Upgrade torch/torchvision to fix MNIST download 404 error 🐛 Upgrade torch/torchvision to fix MNIST download 404 error Nov 27, 2025
Upgrade torch from 2.5.0 to 2.9.0 and torchvision from 0.20.0 to 0.24.0
to fix MNIST dataset download failure caused by unreliable yann.lecun.com
server returning HTTP 404 errors.

The fix was merged in pytorch/vision#8865 which reorders the mirror list
to prioritize the reliable AWS S3 mirror over yann.lecun.com.

Related issues:
- pytorch/vision#8568
- pytorch/vision#8865

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Meng Yan <[email protected]>
@yanmxa yanmxa force-pushed the fix-mnist-download-upgrade-torchvision branch from f9f14c1 to fd4e6fe Compare November 27, 2025 14:37
@haoqing0110
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 28, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 3ee29bf into open-cluster-management-io:main Nov 28, 2025
11 checks passed
@yanmxa yanmxa deleted the fix-mnist-download-upgrade-torchvision branch November 28, 2025 03:26
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