Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chatllm: fix deserialization version mismatch #1859

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

cebtenzzre
Copy link
Member

I wrote >= 6 when I meant either > 6 or >= 7. Change it to the latter, which is what makes the most sense to me (n_ctx only applies to versions 7 and above).

This was causing a crash when loading chat files from versions of GPT4All prior to v2.6, at least when deserializeKV is true (KV cache saved to disk).

Fixes #1846 (symptom is a std::bad_alloc because tokensSize is too large, thanks to @ShadowsArt for helping debug this over Discord)

@cebtenzzre cebtenzzre added the chat gpt4all-chat issues label Jan 21, 2024
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
@cebtenzzre cebtenzzre merged commit c7ea283 into main Jan 22, 2024
6 of 10 checks passed
@cebtenzzre cebtenzzre deleted the fix-chatfile-vercheck branch January 22, 2024 15:01
dpsalvatierra pushed a commit to dpsalvatierra/gpt4all that referenced this pull request Feb 16, 2024
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat gpt4all-chat issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GPT4All 2.6.1 won't launch if "Save chats context to disk" was enabled in a previous version
2 participants