Structured Outputs with Ollama

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
sponsored
  1. ollama

    Get up and running with Kimi-K2.6, GLM-5.2, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

    I authored the blog with some other contributors and worked on the feature (PR: https://github.com/ollama/ollama/pull/7900).

    The current implementation uses llama.cpp GBNF grammars. The more recent research (Outlines, XGrammar) points to potentially speeding up the sampling process through FSTs and GPU parallelism.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. guidance

    A guidance language for controlling large language models.

    Hi, just wanted to say how much I appreciate your work.

    I'm curious if you have considered implementing Microsoft's Guidance (https://github.com/guidance-ai/guidance)? Their approach offers significant speed improvements, which I understand can sometimes be shortcoming of GBNF (e.g https://github.com/ggerganov/llama.cpp/issues/4218).

  4. llama.cpp

    LLM inference in C/C++

    If anyone needs a more powerful constrain outputs, llama.cpp support gbnf:

    https://github.com/ggerganov/llama.cpp/blob/master/grammars/...

  5. llguidance

    Super-fast Structured Outputs

    If you want avoid startup cost, llguidance [0] has no compilation phase and by far the fullest JSON support [1] of any library. I did a PoC llama.cpp integration [2] though our focus is mostly server-side [3].

    [0] https://github.com/guidance-ai/llguidance

  6. llgtrt

    TensorRT-LLM server with Structured Outputs (JSON) built with Rust

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Ollama's llama.cpp licensing issue goes unanswered for over a year

    10 projects | news.ycombinator.com | 16 May 2025
  • Show HN: Clippy, 90s UI for local LLMs

    8 projects | news.ycombinator.com | 6 May 2025
  • My 2.5 year old laptop can write Space Invaders in JavaScript now (GLM-4.5 Air)

    11 projects | news.ycombinator.com | 29 Jul 2025
  • Void + Ollama + LLMs: How I Turned My Code Editor into a Full-Blown AI Workbench

    3 projects | dev.to | 26 May 2025
  • Xiaomi unveils open-source AI reasoning model MiMo

    4 projects | news.ycombinator.com | 30 Apr 2025

Did you know that Rust is
the 3rd most popular programming language
based on number of references?