Home
Github
Other Resources
MLC Blog
Other Resources
MLC Blog
XGrammar
0.1.19
Get Started
Installation
Quick Start
How To
JSON Generation
EBNF-Guided Generation
Integration with LLM Engine
Portable API
Misc
Runtime Safeguards
API Reference
xgrammar
Table of Contents
Docs
>
Index
Edit on GitHub
Index
_
|
A
|
B
|
C
|
D
|
E
|
F
|
G
|
I
|
M
|
P
|
R
|
S
|
T
|
U
|
V
_
__init__() (xgrammar.CompiledGrammar method)
(xgrammar.Grammar method)
(xgrammar.GrammarCompiler method)
(xgrammar.GrammarMatcher method)
(xgrammar.TokenizerInfo method)
(xgrammar.VocabType method)
A
accept_string() (xgrammar.GrammarMatcher method)
accept_token() (xgrammar.GrammarMatcher method)
add_prefix_space (xgrammar.TokenizerInfo property)
allocate_token_bitmask() (in module xgrammar)
apply_token_bitmask_inplace() (in module xgrammar)
B
begin (xgrammar.StructuralTagItem attribute)
bitmask_dtype (in module xgrammar)
builtin_json_grammar() (xgrammar.Grammar static method)
BYTE_FALLBACK (xgrammar.VocabType attribute)
BYTE_LEVEL (xgrammar.VocabType attribute)
C
cache_limit_bytes (xgrammar.GrammarCompiler property)
clear_cache() (xgrammar.GrammarCompiler method)
compile_builtin_json_grammar() (xgrammar.GrammarCompiler method)
compile_grammar() (xgrammar.GrammarCompiler method)
compile_json_schema() (xgrammar.GrammarCompiler method)
compile_regex() (xgrammar.GrammarCompiler method)
compile_structural_tag() (xgrammar.GrammarCompiler method)
CompiledGrammar (class in xgrammar)
concat() (xgrammar.Grammar static method)
D
decoded_vocab (xgrammar.TokenizerInfo property)
dump_metadata() (xgrammar.TokenizerInfo method)
E
end (xgrammar.StructuralTagItem attribute)
F
fill_next_token_bitmask() (xgrammar.GrammarMatcher method)
find_jump_forward_string() (xgrammar.GrammarMatcher method)
from_ebnf() (xgrammar.Grammar static method)
from_huggingface() (xgrammar.TokenizerInfo static method)
from_json_schema() (xgrammar.Grammar static method)
from_regex() (xgrammar.Grammar static method)
from_structural_tag() (xgrammar.Grammar static method)
from_vocab_and_metadata() (xgrammar.TokenizerInfo static method)
G
get_bitmask_shape() (in module xgrammar)
get_cache_size_bytes() (xgrammar.GrammarCompiler method)
get_max_recursion_depth() (in module xgrammar)
Grammar (class in xgrammar)
grammar (xgrammar.CompiledGrammar property)
GrammarCompiler (class in xgrammar)
GrammarMatcher (class in xgrammar)
I
is_terminated() (xgrammar.GrammarMatcher method)
M
max_recursion_depth() (in module xgrammar)
max_rollback_tokens (xgrammar.GrammarMatcher property)
memory_size_bytes (xgrammar.CompiledGrammar property)
P
prepend_space_in_tokenization (xgrammar.TokenizerInfo property)
R
RAW (xgrammar.VocabType attribute)
reset() (xgrammar.GrammarMatcher method)
reset_token_bitmask() (in module xgrammar)
rollback() (xgrammar.GrammarMatcher method)
S
schema_ (xgrammar.StructuralTagItem attribute)
set_max_recursion_depth() (in module xgrammar)
special_token_ids (xgrammar.TokenizerInfo property)
stop_token_ids (xgrammar.GrammarMatcher property)
(xgrammar.TokenizerInfo property)
StructuralTagItem (class in xgrammar)
T
tokenizer_info (xgrammar.CompiledGrammar property)
TokenizerInfo (class in xgrammar)
U
union() (xgrammar.Grammar static method)
V
vocab_size (xgrammar.TokenizerInfo property)
vocab_type (xgrammar.TokenizerInfo property)
VocabType (class in xgrammar)