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

fix coloring of last n_batch of prompt #217

Closed
wants to merge 0 commits into from

Conversation

bitRAKE
Copy link
Contributor

@bitRAKE bitRAKE commented Mar 17, 2023

https://github.com/ggerganov/llama.cpp/blob/721311070e31464ac12bef9a4444093eb3eaebf7/main.cpp#L980-L983
This can fail to colorize the last params.n_batch part of the prompt correctly because embd was just loaded with those tokens and not printed, yet.

@j-f1
Copy link
Collaborator

j-f1 commented Mar 17, 2023

Can you rebase? It looks like there are some unrelated commits in the history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants