Skip to content

0.2.0

Latest

Choose a tag to compare

@petrukha-ivan petrukha-ivan released this 13 Jul 17:56
b1a1a78

This release makes constrained generation faster than ever!

Constrained generation now has zero-overhead compared with unconstrained generation. Moreover, in some cases, constrained generation can be even faster than unconstrained generation thanks to the jump-forwarding feature! The movie record extraction example from the README runs nearly twice as fast on the Qwen3 4B model, improving from 98 to 172 tokens/s. Check the updated Performance section for more details.

What's Changed

  • Added jump forwarding feature (skip model calls for predefined grammar)
  • Added composite logit processor (respect penalties from generation parameters)
  • Updated dependencies to their latest versions (mlx-swift-lm, xgrammar)
  • Fixed other minor issues

Full Changelog: 0.1.0...0.2.0