mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Don't keep this in memory when it is not needed.
This commit is contained in:
parent
5f372bd881
commit
53a39b9ecf
@ -474,4 +474,6 @@ void ChatLLM::restoreState()
|
||||
qDebug() << "chatllm restoreState" << m_chat->id() << "size:" << m_state.size();
|
||||
#endif
|
||||
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