Lm-format-enforcer

Latest version: v0.10.2

Safety actively analyzes 638755 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 6

0.9.0

- [68](https://github.com/noamgat/lm-format-enforcer/pull/68) Added NVIDIA TensorRT-LLM Support, NVIDIA's contribution by [Ahmet Erdem](https://github.com/aerdem4). Thanks!
- Much faster TokenizerData initialization, new JSON freetext token caching algorithm.
- More robust error reporting.

0.8.3

- [67](https://github.com/noamgat/lm-format-enforcer/issues/67) Updating vLLM integration to support v0.3.0
- [63](https://github.com/noamgat/lm-format-enforcer/issues/63) JSONSchemaParser: Empty list cannot be closed after a newline

0.8.2

Several `JsonSchemaParser` improvements:
- [32](https://github.com/noamgat/lm-format-enforcer/issues/32) Added limited support for regex-constrained string in JSON using the `pattern` field. See `test_phone_number_in_string()`.
- [54](https://github.com/noamgat/lm-format-enforcer/issues/54) Fixed regression bug caused by limited-length JSON string caching.
- [53](https://github.com/noamgat/lm-format-enforcer/issues/53) Fixed problems with arrays of union types.

0.8.1

- Performannce improvement: Limited-length JSON strings will also enjoy caching. Thanks [Jarno Elonen](https://github.com/elonen) for the contribution!

0.8.0

- Performance improvement: Introduced `TokenEnforcerTokenizerData` that allows reusing the tokenizer preprocessing data between different `TokenEnforcer` instances. The sample notebooks have been updated to take advantage of this option.
- Performance improvement: Long sequences will see up to 5x `TokenEnforcer` runtime footprint reduction.

0.7.3

- Bug fixes

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.