Skip to content
forked from mlc-ai/xgrammar

Efficient, Flexible and Portable Structured Generation(中文)

License

Notifications You must be signed in to change notification settings

daobook/xgrammar

 
 

XGrammar

Documentation License

Efficient, Flexible and Portable Structured Generation

Get Started | Documentation | Blogpost | Technical Report

Overview

XGrammar is an open-source library for efficient, flexible, and portable structured generation. It supports general context-free grammar to enable a broad range of structures while bringing careful system optimizations to enable fast executions. XGrammar features a minimal and portable C++ backend that can be easily integrated into multiple environments and frameworks, and is co-designed with the LLM inference engine and enables zero-overhead structured generation in LLM inference.

Get Started

Please visit our documentation to get started with XGrammar.

About

Efficient, Flexible and Portable Structured Generation(中文)

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 53.9%
  • Python 32.9%
  • TypeScript 9.2%
  • Shell 1.5%
  • SCSS 1.0%
  • CMake 0.7%
  • Other 0.8%