|
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 | build: |
12 | | - name: Build kernel |
| 12 | + name: Build kernels |
13 | 13 | runs-on: |
14 | | - group: aws-g6-12xlarge-plus |
| 14 | + group: aws-highmemory-32-plus-nix |
15 | 15 | steps: |
16 | 16 | - uses: actions/checkout@v4 |
17 | | - - uses: cachix/install-nix-action@v27 |
| 17 | + - uses: DeterminateSystems/nix-installer-action@main |
18 | 18 | with: |
19 | | - nix_path: nixpkgs=channel:nixos-unstable |
20 | | - - uses: cachix/cachix-action@v14 |
| 19 | + extra-conf: | |
| 20 | + max-jobs = 4 |
| 21 | + cores = 12 |
| 22 | + sandbox-fallback = false |
| 23 | + - uses: cachix/cachix-action@v16 |
21 | 24 | with: |
22 | 25 | name: huggingface |
23 | | - #authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" |
| 26 | + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" |
24 | 27 | env: |
25 | | - USER: github_runner |
| 28 | + USER: runner |
| 29 | + - name: Nix info |
| 30 | + run: nix-shell -p nix-info --run "nix-info -m" |
26 | 31 | - name: Build activation kernel |
27 | 32 | run: ( cd examples/activation && nix build .\#redistributable.torch29-cxx11-cu126-x86_64-linux ) |
28 | 33 | - name: Copy activation kernel |
|
58 | 63 | - name: Copy silu-and-mul-universal kernel |
59 | 64 | run: cp -rL examples/silu-and-mul-universal/result silu-and-mul-universal-kernel |
60 | 65 |
|
| 66 | + - name: Upload kernel artifacts |
| 67 | + uses: actions/upload-artifact@v4 |
| 68 | + with: |
| 69 | + name: built-kernels |
| 70 | + path: | |
| 71 | + activation-kernel |
| 72 | + cutlass-gemm-kernel |
| 73 | + relu-kernel |
| 74 | + relu-backprop-compile-kernel |
| 75 | + silu-and-mul-universal-kernel |
| 76 | +
|
| 77 | + test: |
| 78 | + name: Test kernels |
| 79 | + needs: build |
| 80 | + runs-on: |
| 81 | + group: aws-g6-12xlarge-plus |
| 82 | + steps: |
| 83 | + - uses: actions/checkout@v4 |
| 84 | + |
| 85 | + - name: Download kernel artifacts |
| 86 | + uses: actions/download-artifact@v4 |
| 87 | + with: |
| 88 | + name: built-kernels |
| 89 | + path: . |
| 90 | + |
61 | 91 | - name: Set up Docker Buildx |
62 | 92 | uses: docker/setup-buildx-action@v3 |
63 | 93 | - name: Build Docker image |
|
0 commit comments