mlc-ai / xgrammar

Efficient, Flexible and Portable Structured Generation
https://xgrammar.mlc.ai/
Apache License 2.0
380 stars 18 forks source link

[Bitmask] Add allocate_token_bitmask to xgr from testing #72

Closed CharlieFRuan closed 1 week ago

CharlieFRuan commented 1 week ago

This PR changes from from xgrammar.testing import _allocate_token_bitmask to from xgrammar import allocate_token_bitmask.

Passed all test with pytest .