From b54bd83a3f1a3fab2375c41ce3e933803dedf10d Mon Sep 17 00:00:00 2001 From: Wagner Bruna Date: Sat, 30 May 2026 07:31:08 -0300 Subject: [PATCH] fix: explicitly exclude f8, f64 and i64 tensors from mmap (#1575) --- src/model.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/model.cpp b/src/model.cpp index 25d78b94..89d08a7a 100644 --- a/src/model.cpp +++ b/src/model.cpp @@ -865,8 +865,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;