mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Fix crasher with layer count
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
72474a2efa
commit
17a2cdbe35
@ -146,6 +146,7 @@ void ModelInfo::setGpuLayers(int l)
|
||||
|
||||
int ModelInfo::maxGpuLayers() const
|
||||
{
|
||||
if (!installed) return -1;
|
||||
if (isOnline) return -1;
|
||||
if (m_maxGpuLayers != -1) return m_maxGpuLayers;
|
||||
auto path = (dirpath + filename()).toStdString();
|
||||
|
Loading…
Reference in New Issue
Block a user