|
19 | 19 |
|
20 | 20 | env: |
21 | 21 | TORCH_CUDA_ARCH_LIST: "8.0 8.6 8.9 9.0+PTX" |
22 | | - FLASHINFER_CI_TORCH_VERSION: "2.1.0" |
23 | 22 |
|
24 | 23 | jobs: |
25 | 24 | build: |
|
28 | 27 | matrix: |
29 | 28 | python: ["3.10", "3.11"] |
30 | 29 | cuda: ["11.8", "12.1"] |
| 30 | + torch: ["2.1.0", "2.2.0"] |
31 | 31 | runs-on: [self-hosted] |
32 | 32 | steps: |
33 | 33 | - uses: actions/checkout@v4 |
|
43 | 43 | -v "$GITHUB_WORKSPACE":/app \ |
44 | 44 | -e FLASHINFER_CI_PYTHON_VERSION=${{ matrix.python }} \ |
45 | 45 | -e FLASHINFER_CI_CUDA_VERSION=${{ matrix.cuda }} \ |
46 | | - -e FLASHINFER_CI_TORCH_VERSION=$FLASHINFER_CI_TORCH_VERSION \ |
| 46 | + -e FLASHINFER_CI_TORCH_VERSION=${{ matrix.torch }} \ |
47 | 47 | -e FLASHINFER_BUILD_VERSION=$version \ |
48 | 48 | -e TORCH_CUDA_ARCH_LIST="$TORCH_CUDA_ARCH_LIST" \ |
49 | 49 | --user $CI_UID:$CI_GID \ |
|
54 | 54 |
|
55 | 55 | - uses: actions/upload-artifact@v4 |
56 | 56 | with: |
57 | | - name: wheel-cuda${{ matrix.cuda }}-python${{ matrix.python }} |
| 57 | + name: wheel-cuda${{ matrix.cuda }}-torch${{ matrix.torch }}-python${{ matrix.python }} |
58 | 58 | path: python/dist/* |
59 | 59 |
|
60 | 60 | release: |
|
90 | 90 | for path in sorted(pathlib.Path("python/dist").glob("*.whl")): |
91 | 91 | with open(path, "rb") as f: |
92 | 92 | sha256 = hashlib.sha256(f.read()).hexdigest() |
93 | | - ver, cu = re.findall(r"flashinfer-([0-9.]+)\+cu(\d+)-", path.name)[0] |
94 | | - with open(f"flashinfer-whl/cu{cu}/flashinfer/index.html", "a") as f: |
| 93 | + ver, cu, torch = re.findall(r"flashinfer-([0-9.]+)\+cu(\d+)\+torch([0-9.]+)-", path.name)[0] |
| 94 | + with open(f"flashinfer-whl/cu{cu}/torch{torch}/flashinfer/index.html", "a") as f: |
95 | 95 | f.write(f'<a href="https://github.com/flashinfer-ai/flashinfer/releases/download/v{ver}/{path.name}#sha256={sha256}">{path.name}</a><br>\n') |
96 | 96 |
|
97 | 97 | - name: Push wheel index |
|
0 commit comments