mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Update gpt4all-chat/modellist.cpp
Co-authored-by: Jared Van Bortel <jared@nomic.ai> Signed-off-by: AT <manyoso@users.noreply.github.com>
This commit is contained in:
parent
f720261d46
commit
7a23b23728
@ -146,8 +146,7 @@ void ModelInfo::setGpuLayers(int l)
|
|||||||
|
|
||||||
int ModelInfo::maxGpuLayers() const
|
int ModelInfo::maxGpuLayers() const
|
||||||
{
|
{
|
||||||
if (!installed) return -1;
|
if (!installed || isOnline) return -1;
|
||||||
if (isOnline) return -1;
|
|
||||||
if (m_maxGpuLayers != -1) return m_maxGpuLayers;
|
if (m_maxGpuLayers != -1) return m_maxGpuLayers;
|
||||||
auto path = (dirpath + filename()).toStdString();
|
auto path = (dirpath + filename()).toStdString();
|
||||||
int layers = LLModel::Implementation::layerCount(path);
|
int layers = LLModel::Implementation::layerCount(path);
|
||||||
|
Loading…
Reference in New Issue
Block a user