Mindket

Parallel Constrained Decoding for Apple Silicon

Newversion 1 · updated

Overview

Extracts structured fields, routes decisions and classifies text on Apple Silicon with MLX, scoring every schema field at once. Cuts latency 5.6x to 7.0x on an M4 Max, with always-valid JSON.

Parallel Constrained Decoding for Apple Silicon is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • An Apple Silicon Mac running macOS 14.0 or later
  • Python 3.10 or newer
  • The project's repository cloned to your machine
Runs in
  • An Apple Silicon Mac, from the M1 to the M4 series
  • macOS 14.0 or later, with Python 3.10 or newer
  • Python code that defines a schema of enum and boolean fields
Start with
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Platform

macOSOperating system

About

What it is

This is an inference engine for structured extraction, decision routing and classification on Apple Silicon, built on MLX. Instead of writing a JSON answer token by token, it scores every schema field in parallel. The card reports 5.6x to 7.0x lower latency on an M4 Max, with 100% schema validity and a confidence score for each field.

Who it suits

It suits developers on Macs who turn text into fixed fields, such as a priority level or a yes or no flag. The card's own cases include fraud routing, code security audits, tariff choice and support triage.

Who runs it
IndustryWho uses itHow they use itExample
FintechRisk teamsRoute transactions by a few fixed fieldsFraud routing on 4 fields
SupportSupport operations teamsTriage tickets into priority and escalationA ticket triage with 28 fields
SoftwareSecurity engineersLabel code for audit with set categoriesA code security audit on 4 fields

If you do not use an Apple Silicon Mac, you can skip it. It needs MLX.

Where to use it

  • An Apple Silicon Mac, from the M1 to the M4 series
  • macOS 14.0 or later, with Python 3.10 or newer
  • Python code that defines a schema of enum and boolean fields
Jobs it does
Use caseWhoWhat they get back
Structured extractionDevelopersValid JSON built from verified field values
Decision routingOperations teamsOne chosen category per field with a confidence score
Classification with many choicesData teamsA pick among up to 255 choices

How to set it up

  • An Apple Silicon Mac running macOS 14.0 or later
  • Python 3.10 or newer
  • The project's repository cloned to your machine
  1. Clone the project repository and enter its folder.
  2. Create a virtual environment and activate it.
  3. Install the requirements.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -U huggingface_hub
hf download harshatheg/Qwen-2.5-1B-RLCD

How to use it

Define a schema with StructuredSchema, where each field is an enum or a boolean with a description and, for enums, up to 255 choices. Give the engine your text, and it fills all fields at once and returns JSON with a confidence score per field. The card's benchmarks used a 4-bit Qwen2.5-1.5B-Instruct model.

Pieces the card names
ToolWhat it does
StructuredSchemaDefines the fields of the output
FieldDefinitionDescribes one field, its type and its choices
enumA field with a fixed list of choices, up to 255
booleanA yes or no field

Example

You define two fields for a support ticket: a priority with four levels, and a yes or no field for escalation. You pass a customer message. The engine returns JSON with both fields filled and a confidence score for each, without writing the JSON token by token.

For newcomers and experts

If you are new, normal models write an answer one piece at a time, which is slow for forms with many fields. This engine reads the text once and fills every field at the same time. The first small thing to try is a schema with one yes or no field.

If you know the field, it prefills the context once into an MLX KV cache and broadcasts it across the fields. For each field it scores only the token ids of valid choices and normalizes a softmax over that slice. It resolves shared prefixes with a token tree and builds the JSON in code. The trade-off is scope: it suits bounded choices, not free text.

  1. Prefill the context once
  2. Broadcast the cache to every field
  3. Score only the valid choices per field
  4. Build the JSON from verified values

Good to know

Latency speedup over standard decoding
Fintech Fraud Routing5.6 times
Code Security Audit5.6 times
High-Cardinality Tariff5.6 times
Enterprise Support Triage7.0 times
  • Setting: the numbers come from an Apple Silicon M4 Max, and results on other chips may differ.
  • Validity: the card says the JSON is always valid because it is built in code from checked values.
  • Limits: fields hold booleans or choices from a fixed list, not free text.
  • Demo: the card links a live side-by-side comparison on Hugging Face Spaces.
  • License: apache-2.0.
  • Cost to run: no API key, account or paid service is named.
  • Data it reaches: everything runs on your Mac, and you download files from Hugging Face.
  • Not for: free-text answers and machines without Apple Silicon.

README and files

README

Parallel Constrained Decoding for Apple Silicon

Extracts structured fields, routes decisions and classifies text on Apple Silicon with MLX, scoring every schema field at once. Cuts latency 5.6x to 7.0x on an M4 Max, with always-valid JSON.

Made by harshatheg on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: This is an inference engine for structured extraction, decision routing and classification on Apple Silicon, built on MLX. Instead of writing a JSON answer token by token, it scores every schema field in parallel. The card reports 5.6x to 7.0x lower latency on an M4 Max, with 100% schema validity and a confidence score for each field.

Who it suits: It suits developers on Macs who turn text into fixed fields, such as a priority level or a yes or no flag. The card's own cases include fraud routing, code security audits, tariff choice and support triage.

Title: Who runs it
Industry | Who uses it | How they use it | Example
Fintech | Risk teams | Route transactions by a few fixed fields | Fraud routing on 4 fields
Support | Support operations teams | Triage tickets into priority and escalation | A ticket triage with 28 fields
Software | Security engineers | Label code for audit with set categories | A code security audit on 4 fields

If you do not use an Apple Silicon Mac, you can skip it. It needs MLX.

Where to use it:

  • An Apple Silicon Mac, from the M1 to the M4 series
  • macOS 14.0 or later, with Python 3.10 or newer
  • Python code that defines a schema of enum and boolean fields
Title: Jobs it does
Use case | Who | What they get back
Structured extraction | Developers | Valid JSON built from verified field values
Decision routing | Operations teams | One chosen category per field with a confidence score
Classification with many choices | Data teams | A pick among up to 255 choices

How to set it up:

  • An Apple Silicon Mac running macOS 14.0 or later
  • Python 3.10 or newer
  • The project's repository cloned to your machine
  1. Clone the project repository and enter its folder.
  2. Create a virtual environment and activate it.
  3. Install the requirements.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -U huggingface_hub
hf download harshatheg/Qwen-2.5-1B-RLCD

How to use it: Define a schema with StructuredSchema, where each field is an enum or a boolean with a description and, for enums, up to 255 choices. Give the engine your text, and it fills all fields at once and returns JSON with a confidence score per field. The card's benchmarks used a 4-bit Qwen2.5-1.5B-Instruct model.

Title: Pieces the card names
Tool | What it does
StructuredSchema | Defines the fields of the output
FieldDefinition | Describes one field, its type and its choices
enum | A field with a fixed list of choices, up to 255
boolean | A yes or no field

Example: You define two fields for a support ticket: a priority with four levels, and a yes or no field for escalation. You pass a customer message. The engine returns JSON with both fields filled and a confidence score for each, without writing the JSON token by token.

For newcomers and experts: If you are new, normal models write an answer one piece at a time, which is slow for forms with many fields. This engine reads the text once and fills every field at the same time. The first small thing to try is a schema with one yes or no field.

If you know the field, it prefills the context once into an MLX KV cache and broadcasts it across the fields. For each field it scores only the token ids of valid choices and normalizes a softmax over that slice. It resolves shared prefixes with a token tree and builds the JSON in code. The trade-off is scope: it suits bounded choices, not free text.

Prefill the context once
Broadcast the cache to every field
Score only the valid choices per field
Build the JSON from verified values

Good to know:

Title: Latency speedup over standard decoding
Fintech Fraud Routing: 5.6 times
Code Security Audit: 5.6 times
High-Cardinality Tariff: 5.6 times
Enterprise Support Triage: 7.0 times
  • Setting: the numbers come from an Apple Silicon M4 Max, and results on other chips may differ.
  • Validity: the card says the JSON is always valid because it is built in code from checked values.
  • Limits: fields hold booleans or choices from a fixed list, not free text.
  • Demo: the card links a live side-by-side comparison on Hugging Face Spaces.
  • License: apache-2.0.
  • Cost to run: no API key, account or paid service is named.
  • Data it reaches: everything runs on your Mac, and you download files from Hugging Face.
  • Not for: free-text answers and machines without Apple Silicon.

On Hugging Face, 13 November 2026

  • Task: text generation
  • Library: mlx
  • Downloads in the last 30 days: 0
  • Likes: 592
  • License: apache-2.0
  • Languages: en
  • Based on: Qwen/Qwen2.5-1.5B-Instruct
  • Tags: structured-generation, parallel-decoding, constrained-decoding, apple-silicon, classification, json, text-generation

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download harshatheg/Qwen-2.5-1B-RLCD

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
Parallel Constrained Decoding for Apple Silicon This page0592—apache-2.0
liftShares json11,4542109.7Bopenrail
Qwen3.5-9B-OptiQ-4bitShares apple-silicon · text-generation6,5471149Bapache-2.0
flint-mixed-3-4bitShares apple-silicon · text-generation5,0911239.8Bapache-2.0
Raptor-0.6-4B-JANG_6MShares apple-silicon · text-generation1,03274.1Bapache-2.0
JevK5-chat-mlx-4bitShares apple-silicon · text-generation38124.2Bapache-2.0
Numbers as Mindket last read them, on 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

rana3gIntroducing System One Models and Jevyou don't say - https://huggingface.co/harshatheg/Qwen-2.5-1B-RLCDAmos Wengerlooks like we have JEV at home huggingface.co/harshatheg/Q...64 likes · 6 repliesZach NationHow about huggingface.co/harshatheg/Q...4 likes · 1 replyデイリーHuggingFaceトレンド今日のHuggingFaceトレンド harshatheg/Qwen-2.5-1B-RLCD Apple Silicon向けにMLXを用いて構築された、構造化情報の抽出や分類のための高スループット推論エンジンです。 複数のJSONスキーマ項目を同時に評価する並列制約デコーディングにより、スキーマの妥当性を完全に保証しつつ、従来の逐次的なデコーディングと比較して推論レイテンシを大幅に削減することを目的としています。デイリーHuggingFaceトレンド今日のHuggingFaceトレンド harshatheg/Qwen-2.5-1B-RLCD Apple Silicon上のMLXを利用し、構造化情報の抽出や分類を行うための高スループット推論エンジンです。 マルチフィールドのJSONスキーマを並列に評価することで、形式の整合性を維持しながら、従来の逐次的デコードに比べ大幅な低遅延化を実現することを目的としています。@lmw-jp.bsky.socialharshatheg/Qwen-2.5-1B-RLCD公開:Apple Silicon向け並列制約付きデコーディング https://localmodelwatch.tsuchitsuchi.com/2026/09/17/harshatheg-qwen-25-1b-rlcd/

Searched

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Developer

See all in Developer

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k

open-code-review

alibaba · Kit

Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…

New50.7k