Skip to content

Commit b25b69d

Browse files
cebtenzzrevick08
authored andcommitted
llmodel: do not call magic_match unless build variant is correct (nomic-ai#1488)
1 parent a322338 commit b25b69d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gpt4all-backend/llmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ const std::vector<LLModel::Implementation> &LLModel::Implementation::implementat
113113

114114
const LLModel::Implementation* LLModel::Implementation::implementation(const char *fname, const std::string& buildVariant) {
115115
for (const auto& i : implementationList()) {
116-
if (!i.m_magicMatch(fname)) continue;
117116
if (buildVariant != i.m_buildVariant) continue;
117+
if (!i.m_magicMatch(fname)) continue;
118118
return &i;
119119
}
120120
return nullptr;

0 commit comments

Comments
 (0)