You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have fine tuned a model to generate json. I am using outlines with vLLM to force the model to generate correct json schema. Outlines is failing to generate:
{
"cost": null,
"description": "Net Equity Attributable to Holders of Redeemable Units (\"Net Equity\")",
"footnotes": [],
"percent_net_assets": 100.0,
"value": 3767045854
}
Specifically, it is failing to generate the "(\"Net Equity\")" in the description field.
It is prohibiting any \ character inside of the string.
"Net Equity Attributable to Holders of Redeemable Units (\"Net Equity\")" is a valid json string. I have tested parsing the json above using python json.loads. It should be able to generate using outlines.
Describe the issue as clearly as possible:
I have fine tuned a model to generate json. I am using outlines with vLLM to force the model to generate correct json schema. Outlines is failing to generate:
Specifically, it is failing to generate the
"(\"Net Equity\")"
in the description field.The issue seems to be with this line
outlines/outlines/fsm/json_schema.py
Line 13 in 7723ce8
It is prohibiting any
\
character inside of the string."Net Equity Attributable to Holders of Redeemable Units (\"Net Equity\")"
is a valid json string. I have tested parsing the json above using python json.loads. It should be able to generate using outlines.Steps/code to reproduce the bug:
Expected result:
Outlines should allow generating backslashes in json strings
Error message:
No response
Outlines/Python version information:
Version information
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: