mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-14 14:13:38 +00:00
Don't keep this in memory when it is not needed.
This commit is contained in:
parent
7094fd0788
commit
8d295550eb
@ -474,4 +474,6 @@ void ChatLLM::restoreState()
|
|||||||
qDebug() << "chatllm restoreState" << m_chat->id() << "size:" << m_state.size();
|
qDebug() << "chatllm restoreState" << m_chat->id() << "size:" << m_state.size();
|
||||||
#endif
|
#endif
|
||||||
m_llmodel->restoreState(static_cast<const uint8_t*>(reinterpret_cast<void*>(m_state.data())));
|
m_llmodel->restoreState(static_cast<const uint8_t*>(reinterpret_cast<void*>(m_state.data())));
|
||||||
|
m_state.clear();
|
||||||
|
m_state.resize(0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user