← Browse tools

Inference & serving

LM Format Enforcer

Token filtering that preserves an existing inference loop while enforcing schema or regex constraints.

Overview

Research summary

LM Format Enforcer is a Python library that filters allowed tokens during generation to enforce an output format. It supports JSON Schema, schemaless JSON, and regular expressions, including nested structures and optional fields. Its design integrates with existing inference loops rather than requiring a new high-level model API. Compatible integrations cover several local inference libraries and serving engines, and different items in a batch or beam can carry different constraints. This is a decoding component for applications that control the inference path, not an after-the-fact JSON repair utility.

Repository summary

Stars
Unavailable
Open issues
Unavailable
Last push
Unavailable
Commits, 90 days
Unavailable
Repository activity
Not scored
Version
Unavailable

Recorded catalogue figures. View repository data and provenance →

Classification

Pricing & services

Paid services unknown

Whether the provider offers paid products or services has not been established.

Licence scope

Implementation

Recorded implementation details and interfaces for LM Format Enforcer.

Implementation details

Python character-parser and tokenizer-prefix filtering library

Languages
Python
Repository type
source

Recorded interfaces and capabilities

Licence scope

Repository

Repository snapshots, release information and recorded maintenance signals.

Repository snapshot

noamgat/lm-format-enforcer ↗

Stars
Unavailable
Open issues
Unavailable
Last push
Unavailable
Commits, 90 days
Unavailable
Repository activity
Not scored
Archived
Not recorded

Repository activity is a snapshot, not a quality or popularity ranking. It combines recent-push freshness (50%), 90-day commits (30%) and issue pressure (20%).

Maintenance and provenance

Catalogue snapshot
2026-10-06

Documentation

Recorded references and research provenance for this entry.

Recorded sources 3

Research metadata

Research date
2026-10-02
Catalogue snapshot
2026-10-06