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…
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.
python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt
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.
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.
| 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.
| 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 |
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
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.
| 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 |
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.
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.
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.
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:
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:
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
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.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Parallel Constrained Decoding for Apple Silicon This page | 0 | 592 | — | apache-2.0 | |
| liftShares json | 11,454 | 210 | 9.7B | openrail | |
| Qwen3.5-9B-OptiQ-4bitShares apple-silicon · text-generation | 6,547 | 114 | 9B | apache-2.0 | |
| flint-mixed-3-4bitShares apple-silicon · text-generation | 5,091 | 12 | 39.8B | apache-2.0 | |
| Raptor-0.6-4B-JANG_6MShares apple-silicon · text-generation | 1,032 | 7 | 4.1B | apache-2.0 | |
| JevK5-chat-mlx-4bitShares apple-silicon · text-generation | 381 | 2 | 4.2B | apache-2.0 |
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.
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…
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…
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…
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…
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.
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…