mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-10 04:00:53 +00:00
handle loading very old mmproj that broke after https://github.com/ggml-org/llama.cpp/pull/14928
This commit is contained in:
parent
333e2bb30b
commit
af327857ec
1 changed files with 4 additions and 1 deletions
|
|
@ -2587,7 +2587,10 @@ struct clip_model_loader {
|
|||
}
|
||||
}
|
||||
|
||||
model.proj_type = clip_projector_type_from_string(proj_type);
|
||||
if (!proj_type.empty())
|
||||
{
|
||||
model.proj_type = clip_projector_type_from_string(proj_type);
|
||||
}
|
||||
|
||||
if (model.proj_type == PROJECTOR_TYPE_UNKNOWN) {
|
||||
throw std::runtime_error(string_format("%s: unknown projector type: %s\n", __func__, proj_type.c_str()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue