Skip to content

Commit 822807b

Browse files
committed
ignore missing
1 parent d13d6ff commit 822807b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/llama-model.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,8 @@ bool llama_model::load_tensors(llama_model_loader & ml) {
14071407
if (flags & TENSOR_NOT_REQUIRED) {
14081408
return nullptr;
14091409
}
1410-
throw std::runtime_error(format("missing tensor '%s'", tn.str().c_str()));
1410+
LLAMA_LOG_WARN("missing tensor info mapping for %s -- ignoring\n", tn.str().c_str());
1411+
return nullptr;
14111412
}
14121413

14131414
// some models use the token embedding tensor as the output, but since these are used in different layers and with different ops

0 commit comments

Comments
 (0)