Merge pull request #5028 from cjmcgee/fix/rocm-disable-mmap

fix(rocm): add option to load models without mmap
This commit is contained in:
Vladimir Mandic
2026-08-16 18:19:38 +02:00
committed by GitHub
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -904,6 +904,7 @@ def load_diffuser(checkpoint_info: CheckpointInfo | None = None, op='model', rev
timer.load.record("diffusers")
diffusers_load_config = {
"low_cpu_mem_usage": True,
"disable_mmap": shared.opts.diffusers_disable_mmap,
"torch_dtype": devices.dtype,
"load_connected_pipeline": True,
"safety_checker": None, # sd15 specific but we cant know ahead of time