Address CodeRabbit review on the --disable-mmap fix: reject headers over the safetensors size limit and tensor data ranges that don't match their declared shape/dtype (previously a corrupt header with start==end for a non-empty shape produced an uninitialized tensor instead of an error), and read each tensor directly into a single bytearray via readinto() instead of read() + bytearray() copy to halve peak host memory use for large files. |
||
|---|---|---|
| .. | ||
| folder_path_test.py | ||
| load_torch_file_test.py | ||
| model_detection_test.py | ||
| seedvr_vae_forward_test.py | ||
| test_seedvr2_dtype.py | ||
| test_seedvr2_internals.py | ||
| test_seedvr2_model.py | ||
| test_seedvr2_vae_decode.py | ||
| test_seedvr2_vae_tiled.py | ||