mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-20 12:44:51 +00:00
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
62abecaec8
commit
56d5a23001
@ -37,6 +37,7 @@ using namespace Qt::Literals::StringLiterals;
|
|||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
//#define DEBUG_MODEL_LOADING
|
//#define DEBUG_MODEL_LOADING
|
||||||
|
|
||||||
|
#define GPTJ_INTERNAL_STATE_VERSION 0 // GPT-J is gone but old chats still use this
|
||||||
#define LLAMA_INTERNAL_STATE_VERSION 0
|
#define LLAMA_INTERNAL_STATE_VERSION 0
|
||||||
|
|
||||||
class LLModelStore {
|
class LLModelStore {
|
||||||
@ -1055,6 +1056,7 @@ bool ChatLLM::serialize(QDataStream &stream, int version, bool serializeKV)
|
|||||||
if (version > 1) {
|
if (version > 1) {
|
||||||
stream << m_llModelType;
|
stream << m_llModelType;
|
||||||
switch (m_llModelType) {
|
switch (m_llModelType) {
|
||||||
|
case GPTJ_: stream << GPTJ_INTERNAL_STATE_VERSION; break;
|
||||||
case LLAMA_: stream << LLAMA_INTERNAL_STATE_VERSION; break;
|
case LLAMA_: stream << LLAMA_INTERNAL_STATE_VERSION; break;
|
||||||
default: Q_UNREACHABLE();
|
default: Q_UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
@ -28,9 +28,12 @@ using namespace Qt::Literals::StringLiterals;
|
|||||||
|
|
||||||
class QDataStream;
|
class QDataStream;
|
||||||
|
|
||||||
|
// NOTE: values serialized to disk, do not change or reuse
|
||||||
enum LLModelType {
|
enum LLModelType {
|
||||||
LLAMA_,
|
GPTJ_ = 0, // no longer used
|
||||||
API_,
|
LLAMA_ = 1,
|
||||||
|
API_ = 2,
|
||||||
|
BERT_ = 3, // no longer used
|
||||||
};
|
};
|
||||||
|
|
||||||
class ChatLLM;
|
class ChatLLM;
|
||||||
|
Loading…
Reference in New Issue
Block a user