-
Notifications
You must be signed in to change notification settings - Fork 511
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
建议增加xgrammar结构化输出支持 #2620
Comments
@wxiwnd 可以看看,在 outlines 之后可以支持这个。 |
好的。如果 vllm 后续支持的话,大概只需要改一下 backend 为 xgrammar 应该就行了。 |
同时结构化输出希望能够兼容openai,希望openai接口能支持response_format参数进行json结构化输出。vllm / sglang 原生openai接口均已支持该参数 |
#2636 有反馈用 openai 接口会有问题。 |
This issue is stale because it has been open for 7 days with no activity. |
@Jun-Howie guided json is introduced in #2391 , and openai-compatible in #2673 . It should not be hard to introduce xgrammar as backend for vllm. |
This issue is stale because it has been open for 7 days with no activity. |
This issue was closed because it has been inactive for 5 days since being marked as stale. |
This issue is stale because it has been open for 7 days with no activity. |
This issue is stale because it has been open for 7 days with no activity. |
This issue is stale because it has been open for 7 days with no activity. |
Feature request / 功能建议
如题
Motivation / 动机
已知贵团队已经在做outlines结构化输出支持,但最新的国内团队的xgrammar技术相比于outlines有明显的优势,并且sglang这种高速推理引擎已经得到支持,并且vllm团队也积极响应准备支持xgrammar。
![bd82fb84450153899752da0bb1814d9](https://private-user-images.githubusercontent.com/16047426/391402179-f35fca35-f7f2-44e4-b6a5-4e97ec3aaac9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNTI1NjcsIm5iZiI6MTczOTA1MjI2NywicGF0aCI6Ii8xNjA0NzQyNi8zOTE0MDIxNzktZjM1ZmNhMzUtZjdmMi00NGU0LWI2YTUtNGU5N2VjM2FhYWM5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDIyMDQyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg5ODIwNjY4ZTg5NmExYjliYjhhZGVjODVmYmQ4ZDI4NTU1YjMxNzdlMDkzNWM2MjZmZDUzZmRmNWQ2ZDU0NGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.1Cf580wlB037QVXb_nFsPBwYut0ECTV7hsQ1kjOQT8M)
![4ac00241aa9bf526283b9a693623572](https://private-user-images.githubusercontent.com/16047426/391402294-23d38762-7cee-4b17-af76-adc4246d8144.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNTI1NjcsIm5iZiI6MTczOTA1MjI2NywicGF0aCI6Ii8xNjA0NzQyNi8zOTE0MDIyOTQtMjNkMzg3NjItN2NlZS00YjE3LWFmNzYtYWRjNDI0NmQ4MTQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDIyMDQyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI1YzljYWIyMjgxZDdiYjc2ZGVlMmYxOWJkMmYwZDhkYTcwNDVmNDBlOWZhY2M4YjdmMzMzYTdkODU2YWE5ZTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.sFcVL9K7MWkD8jH0HzvgaHuMt-n_0juxskdj11BRxH8)
xgrammar相比于outlines优势很是挺明显的:
Your contribution / 您的贡献
https://github.com/mlc-ai/xgrammar
The text was updated successfully, but these errors were encountered: