Skip to content

Conversation

@CISC
Copy link
Collaborator

@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 ggml-org:master Sep 19, 2024
44 of 52 checks passed
@slaren
Copy link
Member

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
Collaborator 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