Skip to content

torch/torchvision nightly as of 2025-01

Pre-release
Pre-release
Compare
Choose a tag to compare
@mgehre-amd mgehre-amd released this 16 Jan 08:26
· 247 commits to feature/backport_ea1_ops since this release
bcbcdb4

This contains all torch/torchvision wheels (python 3.10) used in torch-mlir between our merge-base and current upstream.
Downloaded via

#!/bin/bash

COMMIT1=$(git merge-base upstream/main origin/feature/backport_ea1_ops)
COMMIT2="upstream/main"

# Define the file path and the commit range
for FILE_PATH in pytorch-requirements.txt torchvision-requirements.txt; do

    # Get all commit hashes that changed the file between the two commits
    COMMITS=$(git log --oneline --reverse $COMMIT1..$COMMIT2 -- $FILE_PATH | awk '{print $1}')

    # Extract file content from each commit and store unique lines
    declare -A unique_lines

    for COMMIT in $COMMITS; do
        # Get the file content at this commit
        LINE=$(git show $COMMIT:$FILE_PATH | tail -n1)

        # Add the line to the associative array
        unique_lines["$LINE"]=1
    done

    # Print all unique lines
    echo "Unique lines between $COMMIT1 and $COMMIT2 in $FILE_PATH:"
    for LINE in "${!unique_lines[@]}"; do
        echo "$LINE"
        pip download $LINE --no-deps --dest deps --python-version 3.10 \
            -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html \
            -f https://download.pytorch.org/whl/nightly/cpu/torchvision/ \
            -f https://download.pytorch.org/whl/nightly/cpu/torch/ \
            --extra-index-url https://download.pytorch.org/whl/nightly/cpu
    done
done

Then release created manually, assets uploaded via

gh release -R xilinx/torch-mlir upload --clobber snapshot-nightly-2025-01 deps/*

and then update the package-index (https://xilinx.github.io/torch-mlir/package-index/) by triggering the job https://github.com/Xilinx/torch-mlir/actions/workflows/gh-pages-releases.yml.