Skip to content

Binaries R2 - s3 out of sync #179821

@malfet

Description

@malfet

🐛 Describe the bug

Reporting on behalf of @jameslamb

Running

docker run --rm python:3.11 /bin/bash -c "pip --version && pip download --no-deps --index-url https://download.pytorch.org/whl/cu129 'torch==2.9.0+cu129'"

Fails with:

pip 24.0 from /usr/local/lib/python3.11/site-packages/pip (python 3.11)

Looking in indexes: https://download.pytorch.org/whl/cu129
Collecting torch==2.9.0+cu129
  Downloading https://download-r2.pytorch.org/whl/cu129/torch-2.9.0%2Bcu129-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (30 kB)
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    torch==2.9.0+cu129 from https://download-r2.pytorch.org/whl/cu129/torch-2.9.0%2Bcu129-cp311-cp311-manylinux_2_28_x86_64.whl#sha256=78005065547658b8c3fd2dd4d68f34625b0543494c947001b5303d253b22da5f:
        Expected sha256 05df84ccec407908cb70f89d6c2675b8220661f23d7de0cf899f4401f8ab2798
             Got        2b0a3a5d37a8d7447e56e7e4e27280f881e805fbae79130fa8874bcfe6eae333

Likely because binary got corrupted when migrated from CloudFront to R2

$ curl -OL https://download-r2.pytorch.org/whl/cu129/torch-2.9.0%2Bcu129-cp311-cp311-manylinux_2_28_x86_64.whl
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1196M  100 1196M    0     0   125M      0  0:00:09  0:00:09 --:--:--  103M
$ shasum -a 256 torch-2.9.0%2Bcu129-cp311-cp311-manylinux_2_28_x86_64.whl 
aead92a82a01b859a54c933667fe5208598f1c58361b377f1c7e4c898702b341  torch-2.9.0%2Bcu129-cp311-cp311-manylinux_2_28_x86_64.whl
$ curl -OL https://download.pytorch.org/whl/cu129/torch-2.9.0%2Bcu129-cp311-cp311-manylinux_2_28_x86_64.whl
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1196M  100 1196M    0     0  44.7M      0  0:00:26  0:00:26 --:--:-- 32.1M
$ shasum -a 256 torch-2.9.0%2Bcu129-cp311-cp311-manylinux_2_28_x86_64.whl 
78005065547658b8c3fd2dd4d68f34625b0543494c947001b5303d253b22da5f  torch-2.9.0%2Bcu129-cp311-cp311-manylinux_2_28_x86_64.whl

Versions

¯\(ツ)/¯

cc @ezyang @gchanan @kadeng @msaroufim @seemethere @atalman @tinglvv @nWEIdia

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions