petrukha-ivan/mlx-swift-structured
Structured output generation in Swift
This library helps Swift developers reliably get structured data, like JSON or specific text formats, from large language models (LLMs). It takes your desired data structure (defined by JSON Schema, regex, or EBNF) and an LLM's output, then ensures the generated text strictly adheres to that structure. Developers building Swift applications that use LLMs to extract or generate formatted information will find this useful.
Use this if you are a Swift developer working with LLMs and need their text output to strictly conform to a specific format, such as valid JSON, a predefined list, or a regex pattern.
Not ideal if you are not a Swift developer or if your application does not require strict formatting for LLM outputs.
Stars
65
Forks
13
Language
Swift
License
Apache-2.0
Category
Last pushed
Feb 13, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/transformers/petrukha-ivan/mlx-swift-structured"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related models
Blaizzy/mlx-vlm
MLX-VLM is a package for inference and fine-tuning of Vision Language Models (VLMs) on your Mac...
waybarrios/vllm-mlx
OpenAI and Anthropic compatible server for Apple Silicon. Run LLMs and vision-language models...
b4rtaz/distributed-llama
Distributed LLM inference. Connect home devices into a powerful cluster to accelerate LLM...
armbues/SiLLM
SiLLM simplifies the process of training and running Large Language Models (LLMs) on Apple...
microsoft/batch-inference
Dynamic batching library for Deep Learning inference. Tutorials for LLM, GPT scenarios.