mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-03-13 17:09:49 +00:00
add two optimizations
--pin-shared-memory and --cuda-malloc See also the updates in Readme for more details
This commit is contained in:
@@ -43,6 +43,10 @@ def initialize_forge():
|
||||
os.environ['CUDA_VISIBLE_DEVICES'] = str(args_parser.args.gpu_device_id)
|
||||
print("Set device to:", args_parser.args.gpu_device_id)
|
||||
|
||||
if args_parser.args.cuda_malloc:
|
||||
from modules_forge.cuda_malloc import try_cuda_malloc
|
||||
try_cuda_malloc()
|
||||
|
||||
import ldm_patched.modules.model_management as model_management
|
||||
import torch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user