About Anaconda Help Download Anaconda

main / packages / lm-format-enforcer 0.10.12

Enforce the output format (JSON Schema, Regex etc) of a language model

Installers

  • linux-64 v0.10.12
  • linux-aarch64 v0.10.12
  • osx-arm64 v0.10.12
  • win-64 v0.10.12

conda install

To install this package run one of the following:
conda install main::lm-format-enforcer

Description

Language models are able to generate text, but when requiring a precise output format, they do not always perform as instructed. Various prompt engineering techniques have been introduced to improve the robustness of the generated text, but they are not always sufficient. This project solves the issues by filtering the tokens that the language model is allowed to generate at every timestep, thus ensuring that the output format is respected, while minimizing the limitations on the language model.


© 2026 Anaconda, Inc. All Rights Reserved. (v4.2.13) Legal | Privacy Policy