Skip to content

Commit

Permalink
Update gpt4all-chat/modellist.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Jared Van Bortel <[email protected]>
Signed-off-by: AT <[email protected]>
  • Loading branch information
manyoso and cebtenzzre committed Feb 26, 2024
1 parent f720261 commit 7a23b23
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gpt4all-chat/modellist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ void ModelInfo::setGpuLayers(int l)

int ModelInfo::maxGpuLayers() const
{
if (!installed) return -1;
if (isOnline) return -1;
if (!installed || isOnline) return -1;
if (m_maxGpuLayers != -1) return m_maxGpuLayers;
auto path = (dirpath + filename()).toStdString();
int layers = LLModel::Implementation::layerCount(path);
Expand Down

0 comments on commit 7a23b23

Please sign in to comment.