Skip to content

Commit e75fe30

Browse files
author
Mark Saroufim
authored
Update CUDA version and dependencies in modal_runner
1 parent 2a5a2f0 commit e75fe30

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

src/runners/modal_runner.py

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Create a stub for the Modal app
1010
# IMPORTANT: This has to stay in separate file or modal breaks
1111
app = App("discord-bot-runner")
12-
cuda_version = "12.8.0"
12+
cuda_version = "13.1.0"
1313
flavor = "devel"
1414
operating_sys = "ubuntu24.04"
1515
tag = f"{cuda_version}-{flavor}-{operating_sys}"
@@ -33,25 +33,23 @@
3333
"PyYAML",
3434
)
3535
.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",
4040
)
4141
# other frameworks
4242
.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",
4543
"tinygrad~=0.10",
4644
)
4745
# nvidia cuda packages
4846
.uv_pip_install(
4947
"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",
5553
)
5654
)
5755

@@ -87,7 +85,7 @@ def timeout_handler(signum, frame):
8785

8886
def modal_run_config( # noqa: C901
8987
config: dict,
90-
timeout_seconds: int = 1200,
88+
timeout_seconds: int = 600,
9189
) -> FullResult:
9290
"""Modal version of run_pytorch_script, handling timeouts"""
9391
try:

0 commit comments

Comments
 (0)