sd: sync to master-660-d2797b8 (#2241)

* sd: sync to master-659-d3b2cb0

* sd: sync to master-660-d2797b8
This commit is contained in:
Wagner Bruna
2026-05-31 03:04:25 -03:00
committed by GitHub
parent f90d9240f1
commit 2f100fe3d1
19 changed files with 167 additions and 55 deletions
+6
View File
@@ -1032,6 +1032,12 @@ bool ModelLoader::load_tensors(on_new_tensor_cb_t on_new_tensor_cb, int n_thread
continue;
}
if (dst_tensor->data == nullptr) {
LOG_ERROR("process tensor data failed: '%s'", tensor_storage.name.c_str());
failed = true;
break;
}
// skip mmapped tensors
if (dst_tensor->buffer != nullptr && dst_tensor->buffer == fdata.mmbuffer.get()) {
continue;