---
title: "rellm"
type: "tool"
slug: "r2d4-rellm"
canonical_url: "https://www.graphcanon.com/tools/r2d4-rellm"
github_url: "https://github.com/r2d4/rellm"
homepage_url: null
stars: 513
forks: 23
primary_language: "Python"
license: "MIT"
archived: false
categories: ["llm-frameworks", "model-training"]
tags: ["huggingface-transformers", "llm", "transformers"]
updated_at: "2026-07-12T07:05:29.277118+00:00"
---

# rellm

> Exact structure out of any language model completion

rellm is a tool that ensures structured outputs from language model completions using the Hugging Face Transformers library.

## Facts

- Repository: https://github.com/r2d4/rellm
- Stars: 513 · Forks: 23 · Open issues: 5 · Watchers: 9
- Primary language: Python
- License: MIT
- Last pushed: 2023-08-10T19:42:58+00:00

## Trust & health

_Signals computed from public GitHub metadata. Not a security guarantee._

- Maintenance: Dormant (computed 2026-07-11T10:54:13.766Z)
- Security scan: No lockfile (0 critical, 0 high, 0 medium, 0 low) · last scan 2026-07-11T10:54:14.491Z
- Full report: [trust report](/tools/r2d4-rellm/trust.md) · [JSON](https://www.graphcanon.com/api/graphcanon/tools/r2d4-rellm/trust)

## Categories

- [LLM Frameworks](/categories/llm-frameworks.md)
- [Model Training](/categories/model-training.md)

## Tags

huggingface-transformers, llm, transformers

## Category neighbours (exploratory)

_Same-category tools for discovery only - not curated alternatives. Cap shown at six._

- [llmfit](/tools/alexsjones-llmfit.md) - Hundreds of models & providers. One command to find what runs on your hardware. (★ 29,280) [Very active]
- [free-llm-api-resources](/tools/cheahjs-free-llm-api-resources.md) - A list of free LLM inference resources accessible via API. (★ 26,774) [Very active]
- [litgpt](/tools/lightning-ai-litgpt.md) - High-performance LLMs with recipes for pretraining, finetuning and deployment (★ 13,473) [Very active]
- [open-llms](/tools/eugeneyan-open-llms.md) - A list of open LLMs available for commercial use. (★ 12,825) [Dormant]
- [awesome-generative-ai](/tools/steven2358-awesome-generative-ai.md) - A curated list of modern Generative Artificial Intelligence projects and services (★ 12,279) [Active]
- [llm](/tools/simonw-llm.md) - Access large language models from the command-line (★ 12,172) [Very active]

_+ 2 more not listed._

## Adoption goal

rellm is a Python tool that guarantees structured outputs from language model completions by leveraging the Hugging Face Transformers library.

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/r2d4-rellm`](/api/graphcanon/tools/r2d4-rellm)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
