Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default CUDA version to 12.4. #222

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/run-on-gpu.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
env:
PYTHONPATH: ${{ github.workspace }}
TEST_E2E: true
TEST_E2E_COMFY_INSTALL_FLAGS: --nvidia --cuda-version 11.8
TEST_E2E_COMFY_INSTALL_FLAGS: --nvidia --cuda-version 12.4
TEST_E2E_COMFY_LAUNCH_FLAGS_EXTRA: ""
run: |
pytest tests/e2e
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-windows.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
python -m pip install --upgrade pip
pip install pytest
pip install -e .
comfy --skip-prompt --workspace ./ComfyUI install --fast-deps --nvidia --cuda-version 12.1 --skip-manager
comfy --skip-prompt --workspace ./ComfyUI install --fast-deps --nvidia --cuda-version 12.4 --skip-manager
comfy --workspace ./ComfyUI standalone --platform windows --proc x86_64
ls
comfy standalone --rehydrate --platform windows --proc x86_64
Expand Down
2 changes: 1 addition & 1 deletion comfy_cli/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def install(
callback=g_gpu_exclusivity.validate,
),
] = None,
cuda_version: Annotated[CUDAVersion, typer.Option(show_default=True)] = CUDAVersion.v12_1,
cuda_version: Annotated[CUDAVersion, typer.Option(show_default=True)] = CUDAVersion.v12_4,
amd: Annotated[
Optional[bool],
typer.Option(
Expand Down
9 changes: 7 additions & 2 deletions comfy_cli/command/install.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ def pip_install_comfyui_dependencies(
"torchvision",
"torchaudio",
]
if plat == constants.OS.WINDOWS and cuda_version == constants.CUDAVersion.v12_1:
if plat == constants.OS.WINDOWS and cuda_version == constants.CUDAVersion.v12_4:
base_command += [
"--extra-index-url",
"https://download.pytorch.org/whl/cu124",
]
elif plat == constants.OS.WINDOWS and cuda_version == constants.CUDAVersion.v12_1:
base_command += [
"--extra-index-url",
"https://download.pytorch.org/whl/cu121",
Expand Down Expand Up @@ -159,7 +164,7 @@ def execute(
commit: Optional[str] = None,
manager_commit: Optional[str] = None,
gpu: constants.GPU_OPTION = None,
cuda_version: constants.CUDAVersion = constants.CUDAVersion.v12_1,
cuda_version: constants.CUDAVersion = constants.CUDAVersion.v12_4,
plat: constants.OS = None,
skip_torch_or_directml: bool = False,
skip_requirement: bool = False,
Expand Down
1 change: 1 addition & 0 deletions comfy_cli/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class PROC(str, Enum):


class CUDAVersion(str, Enum):
v12_4 = "12.4"
v12_1 = "12.1"
v11_8 = "11.8"

Expand Down
Loading