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

llama: backtracking #10

Open
iboB opened this issue Oct 1, 2024 · 1 comment
Open

llama: backtracking #10

iboB opened this issue Oct 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@iboB
Copy link
Member

iboB commented Oct 1, 2024

Allow backtracking in an instance by a given number of tokens

@iboB iboB added the enhancement New feature or request label Oct 1, 2024
@iboB
Copy link
Member Author

iboB commented Oct 1, 2024

I guess the hardest part of this is dealing with the samplers (chain and grammar). They have a state on their own which is parallel and bound to the KV cache state. Backtracking is trivial in KV: just set a pointer. Not so much in samplers.

@iboB iboB transferred this issue from alpaca-core/ac-local Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant