What's New in Mellea 0.4.0 + Granite Libraries Release
Back to Articles
Overview
We have released Mellea 0.4.0 alongside three Granite Libraries: granitelib-rag-r1.0,granitelib-core-r1.0,granitelib-guardian-r1.0. Together, these releases make it easier to build structured, verifiable, and safety-aware AI workflows on top of IBM Granite models.
Mellea is an open-source Python library for writing generative programs -- replacing probabilistic prompt behavior with structured, maintainable AI workflows. Unlike general-purpose orchestration frameworks, Mellea is designed to make LLM-based programs maintainable and predictable through constrained decoding, structured repair loops, and composable pipelines (New to Mellea? Start with our introductory blog and meet the team)
Mellea 0.4.0
Mellea 0.4.0 is the latest release of an open-source research project initiated and developed by IBM Research. Building on 0.3.0 foundational libraries and workflow primitives, 0.4.0 expands the library's integration surface and introduces new architectural patterns for structuring generative workflows.
What’s included:
-
Native integration with the Granite Libraries, offering a standardized API that relies on constrained decoding to guarantee schema correctness.
-
Instruct-validate-repair pattern via rejection sampling strategies
-
Observability hooks for event-driven callbacks to monitor and track workflows
See full list of Mellea 0.4.0 features and updates here
What Are the Granite Libraries
Simply put, a Granite Library is a collection of specialized model adapters designed to perform well-defined operations on portions of an input chain or conversation. Rather than relying on general-purpose prompting, each specialized model is fine-tuned for a specific task such as query rewriting, hallucination detection, or policy compliance checking. The use of specialized adapters allows us to increase the accuracy of each task at a modest parameter count cost, and without disrupting the base model’s capabilities.
Three libraries are being released today for the granite-4.0-micro model, each targeting a distinct set of pipeline tasks and comprised of a collection of LoRA adapters:
-
Granitelib-core-r1.0: targeting the step of requirements validation in Mellea’s instruct-validate-repair loop
-
Granitelib-rag-r1.0: targeting a variety of tasks in agentic RAG pipelines covering pre-retrieval, post-retrieval, and post-generation
-
Granitelib-guardian-r1.0: specialized models for safety, factuality, and policy compliance
Mellea 0.4.0 is the latest release of an open-source research project initiated and developed by IBM Research. Building on the foundational libraries and workflow primitives introduced in 0.3.0, this release expands the integration surface and introduces new architectural patterns for structuring generative workflows.
Getting Started
Mellea
-
Mellea GitHub Repository
-
Mellea on PyPI
-
Mellea Documentation
Granite Libraries
-
Granite Libraries Hugging Face Collection
-
A Library of LLM Intrinsics for Retrieval-Augmented Generation
-
Multi-Level Explanations for Generative Language Models
Learn More
Sign in to highlight and annotate this article

Conversation starters
Daily AI Digest
Get the top 5 AI stories delivered to your inbox every morning.
More about
Model ReleaseOpen SourceIBMFace Recognizing Doorbell
A machine learning enthusiast developed a face-recognizing doorbell as a new "hack." This innovative project allows for a talking doorbell that identifies visitors. The system can be built for approximately $100, demonstrating an accessible application of machine learning.
Collaboration and Credit Principles
Many significant machine learning breakthroughs, including projects like TensorFlow and AlphaGo, are the result of large-scale collaborations involving numerous researchers. These extensive partnerships, often comprising over 20 individuals, are fundamentally enabled by mutual goodwill and trust within the research community. This collaborative spirit is crucial for advancing the field.
Knowledge Map
Connected Articles — Knowledge Graph
This article is connected to other articles through shared AI topics and tags.
More in Models

The gig workers who are training humanoid robots at home
When Zeus, a medical student living in a hilltop city in central Nigeria, returns to his studio apartment from a long day at the hospital, he turns on his ring light, straps his iPhone to his forehead, and starts recording himself. He raises his hands in front of him like a sleepwalker and puts a…
OpenAI announces new ‘human powered’ ChatGPT-6 - huckmag.com
<a href="https://news.google.com/rss/articles/CBMifEFVX3lxTE9LN0tjMk9wOVNQcWROVHBKeV9zSm5nTEhENzA0U2dmRDhDNjE4Zm9jLVNpNGFhX2FFei1vakZqWDhNY1JQdnNkS0ZDVFFSbHFTUjUxY3hHNERiS2tIcXNGVkc3TS1WbndwT2laeXVzMmhtWndEWER5ck9qS04?oc=5" target="_blank">OpenAI announces new ‘human powered’ ChatGPT-6</a> <font color="#6f6f6f">huckmag.com</font>
Exclusive | The Sudden Fall of OpenAI’s Most Hyped Product Since ChatGPT - WSJ
<a href="https://news.google.com/rss/articles/CBMiogNBVV95cUxOQzlaVDJQTW03bmd0RXJqRG50VkNibFIzTlFrWHZ4RnN4SXRDNmptRVhXTFRSa2NKTHBXZjZWUHZaUTJaQm1hQ2xDelRQYlBKX1B6WkJyVm9ZRUhTZkw4RnRkYXVISVJTWHg2S0ZDZjdNcGllMVpWQVFqd1BLZHpsQ1ZyTzk3T29oZzMyUXNQNHF6R0N2c2Q0dWx3ZkF5clRjeTVGd2l2M1FLZi1MYk1GU2QwLUxyMExkMXN1b0JtRU5reFhOcHZJelJ6ckJ5QTVvWHFBdTIwTTBlakppWTVnakt2Unp5d1VKREV6WEJNRXd3azZDMWVQd2JxVXdLa2N2eHU0M0RLVUlPcU4xdjhHaHNIRTRXTjl2UzM5dGoycTU0VjRhZnlSek0yeEZidXZ6cDhMT2owQzVUQ1BTMHJWWVNrSDVwaUl0QWdLdDN1V0hZc1Y1UHdsX09rLU1QckFUS3dxYUhHNWRaaFc5UC1XQTZJbmtwMkVRRTY1NDNVVWZMek1obUFualRSTmcwbGZRbHhEMnRYQUJPLU1JWVFJaTZB?oc=5" target="_blank">Exclusive | The Sudden Fall of OpenAI’s Most Hyped Product Since ChatGPT</a> <font color="#6f6f6f">WSJ</font>

Discussion
Sign in to join the discussion
No comments yet — be the first to share your thoughts!