mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-18 03:25:46 +00: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