-
Notifications
You must be signed in to change notification settings - Fork 388
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
Switching ChatSessions without writing to file. #559
Comments
Hi, I think it's a correct way with a rough look at your code.
From my perspective I'd like to see such an API in
It's a good idea for performance improvement. More generally The FYI @martindevans |
Great, thanks for taking time to look at the code. I think I could make a PR for these changes if you want. |
It would be great if you'd like to make it😀 |
Hi
Could you please confirm that this is correct way to switch between chat sessions without writing them to files (for performance reasons)?
https://github.com/eublefar/LLAMASharpUnityDemo/blob/main/Assets/LLamaSharpTestScript.cs
Do you think it's worth to implement it into some interface at ChatSession level? (similar to how it's done at Executor level)
Also one thing I struggled to find is something like
AddMessage
but in non-lazy way with context.Decode happening at the same time, to precompute KV cache before generating the first message.The text was updated successfully, but these errors were encountered: