File tree Expand file tree Collapse file tree
src/discord-cluster-manager Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 - dev
1212
1313jobs :
14- check-modal :
15- runs-on : ubuntu-latest
16- timeout-minutes : 30
14+ check-cuda :
15+ runs-on : [gpumode-nvidia-arc]
16+ timeout-minutes : 10
17+ container :
18+ image : nvidia/cuda:12.4.0-devel-ubuntu22.04
1719 steps :
1820 - uses : actions/checkout@v3
1921
2022 - name : Setup Python
2123 uses : actions/setup-python@v5
2224 with :
23- python-version : ' 3.13 '
25+ python-version : ' 3.10 '
2426
25- - name : Install dependencies
26- run : |
27- pip install modal
28- pip install -r requirements.txt
27+ - name : Install pytest
28+ shell : bash
29+ run : pip install pytest
30+
31+ - name : Run script
32+ shell : bash
33+ run : pytest scripts/ci_test_cuda.py
34+
35+ env :
36+ CUDA_VISIBLE_DEVICES : 0
37+
38+ check-pytorch :
39+ runs-on : [gpumode-nvidia-arc]
40+ timeout-minutes : 10
41+ container :
42+ image : nvidia/cuda:12.4.0-devel-ubuntu22.04
43+ steps :
44+ - uses : actions/checkout@v3
2945
30- - name : Run Modal tests
46+ - name : Setup Python
47+ uses : actions/setup-python@v5
48+ with :
49+ python-version : ' 3.10'
50+
51+ - name : Install uv
52+ uses : astral-sh/setup-uv@v3
53+ with :
54+ version : " latest"
55+
56+ - name : Setup Python environment
3157 run : |
32- python scripts/modal_ci_test.py
33- env :
34- MODAL_TOKEN_ID : ${{ secrets.MODAL_TOKEN_ID }}
35- MODAL_TOKEN_SECRET : ${{ secrets.MODAL_TOKEN_SECRET }}
58+ uv venv .venv
59+ echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
60+ echo "$PWD/.venv/bin" >> $GITHUB_PATH
61+ uv pip install numpy torch setuptools ninja pytest
62+
63+ - name : Run script
64+ shell : bash
65+ run : pytest scripts/ci_test_python.py
66+
67+ env :
68+ CUDA_VISIBLE_DEVICES : 0
69+
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ yoyo-migrations
1010ruff
1111pre-commit
1212better_profanity
13- pytest
1413
1514# api
1615fastapi [all ] # install all to avoid random bugs
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def custom_kernel(input):
5959 assert run .result ["test.0.status" ] == "fail"
6060 assert (
6161 run .result ["test.0.error" ]
62- == "mismatch found! custom implementation doesn't match reference. :"
62+ == "mismatch found! custom implementation doesn't match reference:"
6363 " Number of mismatched elements: 256"
6464 )
6565 assert run .exit_code == ExitCode .VALIDATE_FAIL
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2828 "requests~=2.32.4" ,
2929 "packaging~=25.0" ,
3030 "numpy~=2.3" ,
31- "pytest" ,
32-
3331 )
3432 .pip_install (
3533 "torch~=2.7" ,
3634 "torchvision~=0.22" ,
3735 "torchaudio~=2.7" ,
38- index_url = "https://download.pytorch.org/whl/cu128" ,
36+ index_url = "https://download.pytorch.org/whl/cu128"
3937 )
4038 # other frameworks
4139 .pip_install (
42- "jax[cuda12]==0.5.3" , # 0.6 want's cudnn 9.8 in conflict with torch 2.7
40+ "jax[cuda12]==0.5.3" , # 0.6 want's cudnn 9.8 in conflict with torch 2.7
4341 "jax2torch==0.0.7" ,
4442 "tinygrad~=0.10" ,
4543 )
4947 "nvidia-cutlass-dsl~=4.0" ,
5048 "cuda-core[cu12]~=0.3" ,
5149 "cuda-python[all]==12.8" ,
52- # "nvmath-python[cu12]~=0.4",
53- # "numba-cuda[cu12]~=0.15",
50+ #"nvmath-python[cu12]~=0.4",
51+ #"numba-cuda[cu12]~=0.15",
5452 )
5553)
5654
Original file line number Diff line number Diff line change @@ -191,5 +191,4 @@ def build_task_config(
191191 "sources" : sources ,
192192 "headers" : headers ,
193193 "include_dirs" : task .config .include_dirs ,
194- ** common ,
195194 }
You can’t perform that action at this time.
0 commit comments