From d4b513c19da0f64b50cf74c38c88c7b5bab30afc Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sat, 30 May 2026 16:12:34 +0800 Subject: [PATCH] mmap fix from https://github.com/leejet/stable-diffusion.cpp/pull/1575 --- otherarch/sdcpp/model.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/otherarch/sdcpp/model.cpp b/otherarch/sdcpp/model.cpp index 566090766..47e859bde 100644 --- a/otherarch/sdcpp/model.cpp +++ b/otherarch/sdcpp/model.cpp @@ -893,8 +893,13 @@ std::vector ModelLoader::mmap_tensors(std::maptype) + if (tensor_storage.is_f8_e4m3 || + tensor_storage.is_f8_e5m2 || + tensor_storage.is_f64 || + tensor_storage.is_i64 || + tensor_storage.type != dst_tensor->type) { continue; + } size_t tensor_size = tensor_storage.nbytes(); size_t tensor_offset = tensor_storage.offset;