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
Offline chat: Quality and Reliability Improvements #393
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Previously the system message was getting dropped when the context size with chat history would be more than the max prompt size supported by the cat model Now only the previous chat messages are dropped or the current message is truncated but the system message is kept to provide guidance to the chat model
- Fix download url -- was mapping to q3_K_M, but fixed to use q4_K_S - Use a proper Llama Tokenizer for counting tokens for truncation with Llama - Add additional null checks when running
sabaimran
added
fix
Fix something that isn't working as expected
upgrade
New feature or request
labels
Aug 1, 2023
…etting bombarded and stealing a bunch of compute resources - This also solves #367
debanjum
approved these changes
Aug 1, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks great with all the bug fixes and quality improvements based on user feedback! 🚀
debanjum
reviewed
Aug 1, 2023
sabaimran
commented
Aug 2, 2023
- Use same batch_size in extract question actor as the chat actor - Log final location the chat model is to be stored in, instead of it's temp filename while it is being downloaded
It would previously some times start generating fake dialogue with it's internal prompt patterns of <s>[INST] in responses. This is a jarring experience. Stop generation response when hit <s> Resolves #398
Create regression text to ensure it does not throw the prompt size exceeded context window error
debanjum
force-pushed
the
improve-llama-2-perf-and-quality-and-fixes
branch
from
August 2, 2023 03:52
8a94dba
to
185a1fb
Compare
- Only make them update config when it's run conditions are satisfies - Use static schema version to simplify reasoning about run conditions
This should ease readability, indicates which version this migration script will update the schema to once applied
Not just the chat response streaming
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Incoming
Major
Fix Prompt Size Exceeded Issue
Improve Llama 2 Model Download
Fix Segmentation Fault due to Race
Improve Chat Response Latency
n_batch
) to automatically engage more cores/GPU, using smaller model and fixing prompt vs response token generation numbers. Closes Explore performance improvements for offline chat model #363Fix Fake Dialogue Continuation
Minor
perform_chat_checks
methodPerformance Analysis (Time to First Token)