Skip to content

Commit 7a19047

Browse files
authored
llmodel: do not call magic_match unless build variant is correct (#1488)
1 parent df8528d commit 7a19047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gpt4all-backend/llmodel.cpp

+1-1
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)