Skip to content

Imatrix input data should not be unescaped#9543

Merged
ggerganov merged 1 commit intoggml-org:masterfrom
CISC:imatrix-no-escape
Sep 19, 2024
Merged

Imatrix input data should not be unescaped#9543
ggerganov merged 1 commit intoggml-org:masterfrom
CISC:imatrix-no-escape

Conversation

@CISC
Copy link
Copy Markdown
Member

@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
@slaren
Copy link
Copy Markdown
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
Copy Markdown
Member 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
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
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