Commit Graph

1 Commits

Author SHA1 Message Date
chelsealong 5dfb3002ea Fix --disable-mmap not bypassing safetensors mmap read
load_torch_file only wrapped the tensor returned by
safetensors.safe_open()/get_tensor() in a copy when --disable-mmap was
set; the mmap-backed read that produces that tensor had already
happened by then. On Windows that mmap-backed read of large
safetensors files can crash the long-running ComfyUI process with an
access violation (#15424). --disable-mmap now reads tensors with plain
file I/O so no mmap of the file is created at all.
2026-08-09 01:18:48 +00:00