|
9 | 9 | # Create a stub for the Modal app |
10 | 10 | # IMPORTANT: This has to stay in separate file or modal breaks |
11 | 11 | app = App("discord-bot-runner") |
12 | | -cuda_version = "12.8.0" |
| 12 | +cuda_version = "13.1.0" |
13 | 13 | flavor = "devel" |
14 | 14 | operating_sys = "ubuntu24.04" |
15 | 15 | tag = f"{cuda_version}-{flavor}-{operating_sys}" |
|
33 | 33 | "PyYAML", |
34 | 34 | ) |
35 | 35 | .uv_pip_install( |
36 | | - "torch>=2.7.0,<2.8.0", |
37 | | - "torchvision~=0.22", |
38 | | - "torchaudio>=2.7.0,<2.8.0", |
39 | | - index_url="https://download.pytorch.org/whl/cu128", |
| 36 | + "torch==2.9.1", |
| 37 | + "torchvision", |
| 38 | + "torchaudio", |
| 39 | + index_url="https://download.pytorch.org/whl/cu130", |
40 | 40 | ) |
41 | 41 | # other frameworks |
42 | 42 | .uv_pip_install( |
43 | | - "jax[cuda12]==0.5.3", # 0.6 want's cudnn 9.8 in conflict with torch 2.7 |
44 | | - "jax2torch==0.0.7", |
45 | 43 | "tinygrad~=0.10", |
46 | 44 | ) |
47 | 45 | # nvidia cuda packages |
48 | 46 | .uv_pip_install( |
49 | 47 | "nvidia-cupynumeric~=25.3", |
50 | | - "nvidia-cutlass-dsl~=4.0", |
51 | | - "cuda-core[cu12]~=0.3", |
52 | | - "cuda-python[all]==12.8", |
53 | | - # "nvmath-python[cu12]~=0.4", |
54 | | - # "numba-cuda[cu12]~=0.15", |
| 48 | + "nvidia-cutlass-dsl==4.3.5", |
| 49 | + "cuda-core[cu13]", |
| 50 | + "cuda-python[all]==13.0", |
| 51 | + # "nvmath-python[cu13]~=0.4", |
| 52 | + # "numba-cuda[cu13]~=0.15", |
55 | 53 | ) |
56 | 54 | ) |
57 | 55 |
|
@@ -87,7 +85,7 @@ def timeout_handler(signum, frame): |
87 | 85 |
|
88 | 86 | def modal_run_config( # noqa: C901 |
89 | 87 | config: dict, |
90 | | - timeout_seconds: int = 1200, |
| 88 | + timeout_seconds: int = 600, |
91 | 89 | ) -> FullResult: |
92 | 90 | """Modal version of run_pytorch_script, handling timeouts""" |
93 | 91 | try: |
|
0 commit comments