Skip to content

Commit af32785

Browse files
committed
handle loading very old mmproj that broke after ggml-org#14928
1 parent 333e2bb commit af32785

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/mtmd/clip.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2587,7 +2587,10 @@ struct clip_model_loader {
25872587
}
25882588
}
25892589

2590-
model.proj_type = clip_projector_type_from_string(proj_type);
2590+
if (!proj_type.empty())
2591+
{
2592+
model.proj_type = clip_projector_type_from_string(proj_type);
2593+
}
25912594

25922595
if (model.proj_type == PROJECTOR_TYPE_UNKNOWN) {
25932596
throw std::runtime_error(string_format("%s: unknown projector type: %s\n", __func__, proj_type.c_str()));

0 commit comments

Comments
 (0)