-
Notifications
You must be signed in to change notification settings - Fork 71
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
Generating Illegal Escape Tokens #90
Comments
The output you are pasting here seems legal. Am I missing something?
Perhaps there is a performance slowdown when the model does this, but I
want to make sure that the output is legal.Where do you see illegal escape
tokens?
…On Fri, Apr 19, 2024 at 2:38 PM jamesdborin ***@***.***> wrote:
When generating with LMFE the model is able to generate escape tokens like
\n, and whenever it does this it becomes very slow. This sounds a lot
like a previous issue: #41
<#41>
Here is an example that I generated using this model:
TheBloke/CapybaraHermes-2.5-Mistral-7B-AWQ
Prompt:
[INST]
Generate a summary full of new lines and new line characters.
[/INST]
which used the schema:
{"properties": {"summary": {"type": "string"}}, "required": ["summary"], "type": "object"}
Output:
{ "summary" : "A \nsummary full \nof new lines and \nnew line characters.\n\n" }
I tested this on version 0.9.6 and 0.8.2 (a version released shortly after
#41 <#41> was
resolved).
—
Reply to this email directly, view it on GitHub
<#90>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKFA2BRDKA5WCCBTUCUMXTY6D62JAVCNFSM6AAAAABGPAPNYWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2TENZWGM2TMNQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I saw this slowdown in the past and it was caused by an edge case where JSONSchemaParser's |
Can you check if v0.9.8 is faster in this case? |
Whoops my mistake, I thought that /n was illegal - but yes part of the issue was this it was very slow when generating. Ill try the new version and see if that's faster. |
When generating with LMFE the model is able to generate escape tokens like
\n
, and whenever it does this it becomes very slow. This sounds a lot like a previous issue: #41Here is an example that I generated using this model: TheBloke/CapybaraHermes-2.5-Mistral-7B-AWQ
Prompt:
which used the schema:
Output:
I tested this on version 0.9.6 and 0.8.2 (a version released shortly after #41 was resolved).
The text was updated successfully, but these errors were encountered: