mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-26 07:23:38 +00:00
Don't crash right out of the installer ;)
This commit is contained in:
parent
c66d7bf1ae
commit
cd2e559db4
2
llm.cpp
2
llm.cpp
@ -101,7 +101,7 @@ bool LLMObject::loadModelPrivate(const QString &modelName)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void LLMObject::setThreadCount(int32_t n_threads) {
|
void LLMObject::setThreadCount(int32_t n_threads) {
|
||||||
if (m_llmodel->threadCount() != n_threads) {
|
if (m_llmodel && m_llmodel->threadCount() != n_threads) {
|
||||||
m_llmodel->setThreadCount(n_threads);
|
m_llmodel->setThreadCount(n_threads);
|
||||||
emit threadCountChanged();
|
emit threadCountChanged();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user