Skip to content

Commit

Permalink
add --cuda-malloc, --disable-cuda-malloc cmd args
Browse files Browse the repository at this point in the history
  • Loading branch information
wkpark committed Oct 20, 2024
1 parent 6668e87 commit e78be27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/cmd_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
parser.add_argument("--update-all-extensions", action='store_true', help="launch.py argument: download updates for all extensions when starting the program")
parser.add_argument("--skip-python-version-check", action='store_true', help="launch.py argument: do not check python version")
parser.add_argument("--skip-torch-cuda-test", action='store_true', help="launch.py argument: do not check if CUDA is able to work properly")
cm_group = parser.add_mutually_exclusive_group()
cm_group.add_argument("--cuda-malloc", action='store_true', help="Enable cudaMallocAsync (enabled by default for torch 2.0 and up).")
cm_group.add_argument("--disable-cuda-malloc", action="store_true", help="Disable cudaMallocAsync.")
parser.add_argument("--reinstall-xformers", action='store_true', help="launch.py argument: install the appropriate version of xformers even if you have some version already installed")
parser.add_argument("--reinstall-torch", action='store_true', help="launch.py argument: install the appropriate version of torch even if you have some version already installed")
parser.add_argument("--update-check", action='store_true', help="launch.py argument: check for updates at startup")
Expand Down

0 comments on commit e78be27

Please sign in to comment.