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

Imatrix input data should not be unescaped #9543

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

CISC
Copy link
Contributor

@CISC CISC commented Sep 18, 2024

At some point prompt input unescaping was turned on by default, which is fine in itself, but imatrix is usually generated from prompt_file, which is fed into params.prompt and then unescaped, generating bad input data.

This will (and has) go(ne) unnoticed until you have sequences like \xdef in your input data, which will throw an "invalid character" error (only with BPE tokenizer).

@ggerganov ggerganov merged commit eca0fab into ggerganov:master Sep 19, 2024
44 of 52 checks passed
@slaren
Copy link
Collaborator

slaren commented Sep 19, 2024

perplexity will probably need a similar fix.

@CISC CISC deleted the imatrix-no-escape branch September 19, 2024 08:46
@CISC
Copy link
Contributor Author

CISC commented Sep 19, 2024

@slaren I'll make another PR for perplexity.

dsx1986 pushed a commit to dsx1986/llama.cpp that referenced this pull request Oct 29, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 15, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants