Qwen-2.5-1B-RLCD Scores JSON Fields in Parallel, Running 7x Faster on Apple Silicon
A new open source inference engine on Apple Silicon evaluates every JSON field in parallel, cutting structured generation latency by 5.6x to 7x with guaranteed schema validity.
- Open source Qwen-2.5-1B-RLCD delivers 5.6x to 7x faster JSON generation on Apple Silicon via parallel constrained decoding.
- Evaluates all schema fields simultaneously against a single broadcast KV cache instead of token-by-token autoregressive decoding.
- Reports 100% schema validity with calibrated per-field confidence probabilities across every benchmark scenario.
- 28-field enterprise triage drops from 1,900 ms and 312 forward passes to 270 ms in one pass.
- Requires no retraining, wraps
mlx-community/Qwen2.5-1.5B-Instruct-4bit, Apache 2.0 licensed, works on M1 through M4 Macs. - Live comparison available on Hugging Face Spaces, supports up to 255 enum choices per field.
Parallel field scoring speeds JSON extraction on Apple Silicon
An independent developer has released Qwen-2.5-1B-RLCD, an Apache 2.0 inference engine for structured classification and extraction on Apple Silicon. The engine uses MLX to score multiple JSON fields in parallel against a shared key-value cache, avoiding the sequential token generation normally required to spell out an object. It requires no fine-tuning and relies on the model’s existing logits, which are its scores for possible next tokens.
The implementation targets schemas whose values come from fixed sets, such as booleans and categorical enums. The project name references “1B,” while the published configuration and benchmarks use mlx-community/Qwen2.5-1.5B-Instruct-4bit.
Why JSON decoding drags
Conventional JSON mode and grammar-guided decoding remain autoregressive: each generated token depends on the previous tokens. Every step invokes the model again and reads from its attention cache, so latency rises with the length of field names, values, punctuation, and other serialized output.
A schema with 28 fields can therefore require hundreds of sequential decoding steps, even when every value belongs to a small set of known labels. Constrained decoding can block invalid tokens, but it still generates the object token by token.
Qwen-2.5-1B-RLCD treats each field as a classification problem. Given a predefined candidate set, the engine scores the permitted values and selects the highest-ranked option. Programmatic assembly then produces the JSON object without asking the model to generate braces, keys, commas, or quotes.
One cache, many field branches
This story is for Pro members
You've reached the end of the free preview. Upgrade to AlphaSignal Pro to read the full article - and everything else behind the paywall.