Skip to content

Commit

Permalink
pass directml
Browse files Browse the repository at this point in the history
  • Loading branch information
HPPinata committed Nov 23, 2024
1 parent 3433ed6 commit c5812d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions horde_worker_regen/process_management/worker_entry_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def start_inference_process(
f"and amd_gpu={amd_gpu}",
)

extra_comfyui_args = ["--disable-smart-memory --directml"]
extra_comfyui_args = ["--disable-smart-memory", "--directml=0"]

if amd_gpu:
extra_comfyui_args.append("--use-pytorch-cross-attention")
Expand Down Expand Up @@ -148,7 +148,7 @@ def start_safety_process(

logger.debug(f"Initialising hordelib with process_id={process_id} and high_memory_mode={high_memory_mode}")

extra_comfyui_args = ["--disable-smart-memory --directml"]
extra_comfyui_args = ["--disable-smart-memory", "--directml=0"]

if amd_gpu:
extra_comfyui_args.append("--use-pytorch-cross-attention")
Expand Down

0 comments on commit c5812d6

Please sign in to comment.