Skip to content

Commit 8a1a11d

Browse files
authored
Update default CUDA version to 12.4. (#222)
1 parent 1b250be commit 8a1a11d

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

.github/workflows/run-on-gpu.yml

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
env:
6262
PYTHONPATH: ${{ github.workspace }}
6363
TEST_E2E: true
64-
TEST_E2E_COMFY_INSTALL_FLAGS: --nvidia --cuda-version 11.8
64+
TEST_E2E_COMFY_INSTALL_FLAGS: --nvidia --cuda-version 12.4
6565
TEST_E2E_COMFY_LAUNCH_FLAGS_EXTRA: ""
6666
run: |
6767
pytest tests/e2e

.github/workflows/test-windows.yml

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
python -m pip install --upgrade pip
3030
pip install pytest
3131
pip install -e .
32-
comfy --skip-prompt --workspace ./ComfyUI install --fast-deps --nvidia --cuda-version 12.1 --skip-manager
32+
comfy --skip-prompt --workspace ./ComfyUI install --fast-deps --nvidia --cuda-version 12.4 --skip-manager
3333
comfy --workspace ./ComfyUI standalone --platform windows --proc x86_64
3434
ls
3535
comfy standalone --rehydrate --platform windows --proc x86_64

comfy_cli/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def install(
198198
callback=g_gpu_exclusivity.validate,
199199
),
200200
] = None,
201-
cuda_version: Annotated[CUDAVersion, typer.Option(show_default=True)] = CUDAVersion.v12_1,
201+
cuda_version: Annotated[CUDAVersion, typer.Option(show_default=True)] = CUDAVersion.v12_4,
202202
amd: Annotated[
203203
Optional[bool],
204204
typer.Option(

comfy_cli/command/install.py

100644100755
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ def pip_install_comfyui_dependencies(
6868
"torchvision",
6969
"torchaudio",
7070
]
71-
if plat == constants.OS.WINDOWS and cuda_version == constants.CUDAVersion.v12_1:
71+
if plat == constants.OS.WINDOWS and cuda_version == constants.CUDAVersion.v12_4:
72+
base_command += [
73+
"--extra-index-url",
74+
"https://download.pytorch.org/whl/cu124",
75+
]
76+
elif plat == constants.OS.WINDOWS and cuda_version == constants.CUDAVersion.v12_1:
7277
base_command += [
7378
"--extra-index-url",
7479
"https://download.pytorch.org/whl/cu121",
@@ -159,7 +164,7 @@ def execute(
159164
commit: Optional[str] = None,
160165
manager_commit: Optional[str] = None,
161166
gpu: constants.GPU_OPTION = None,
162-
cuda_version: constants.CUDAVersion = constants.CUDAVersion.v12_1,
167+
cuda_version: constants.CUDAVersion = constants.CUDAVersion.v12_4,
163168
plat: constants.OS = None,
164169
skip_torch_or_directml: bool = False,
165170
skip_requirement: bool = False,

comfy_cli/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class PROC(str, Enum):
6060

6161

6262
class CUDAVersion(str, Enum):
63+
v12_4 = "12.4"
6364
v12_1 = "12.1"
6465
v11_8 = "11.8"
6566

0 commit comments

Comments
 (0)