GitPedia

Refiners

A microframework on top of PyTorch with first-class citizen APIs for foundation model adaptation

From finegrain-ai·Updated June 25, 2026·View on GitHub·
·Archived

**The simplest way to train and run adapters on top of foundation models** The project is written primarily in Python, distributed under the MIT License license, first published in 2023. Key topics include: background-generation, background-removal, controlnet, diffusion-models, dinov2.

Latest release: v0.4.00.4.0
February 26, 2024View Changelog →
<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/finegrain-ai/refiners/main/assets/logo_dark.png"> <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/finegrain-ai/refiners/main/assets/logo_light.png"> <img alt="Finegrain Refiners Library" width="352" height="128" style="max-width: 100%;"> </picture>

The simplest way to train and run adapters on top of foundation models

Manifesto |
Docs |
Guides |
Discussions |
Discord


dependencies - Rye
linting - Ruff
packaging - Hatch
PyPI - Python Version
PyPI - Status
license
code bounties
Discord
HuggingFace - Refiners
HuggingFace - Finegrain
ComfyUI Registry

</div>

Latest News 🔥

  • Added ELLA for better prompts handling (contributed by @ily-R)
  • Added the Box Segmenter all-in-one solution (model, HF Space)
  • Added MVANet for high resolution segmentation
  • Added IC-Light to manipulate the illumination of images
  • Added Multi Upscaler for high-resolution image generation, inspired from Clarity Upscaler (HF Space)
  • Added HQ-SAM for high quality mask prediction with Segment Anything
  • ...see past releases

Installation

The current recommended way to install Refiners is from source using Rye:

bash
git clone "git@github.com:finegrain-ai/refiners.git" cd refiners rye sync --all-features

Documentation

Refiners comes with a MkDocs-based documentation website. You will find there a quick start guide, a description of the key concepts, as well as in-depth foundation model adaptation guides.

Projects using Refiners

Awesome Adaptation Papers

If you're interested in understanding the diversity of use cases for foundation model adaptation (potentially beyond the specific adapters supported by Refiners), we suggest you take a look at these outstanding papers:

Credits

We took inspiration from these great projects:

Citation

bibtex
@misc{the-finegrain-team-2023-refiners, author = {Benjamin Trom and Pierre Chapuis and Cédric Deltheil}, title = {Refiners: The simplest way to train and run adapters on top of foundation models}, year = {2023}, publisher = {GitHub}, journal = {GitHub repository}, howpublished = {\url{https://github.com/finegrain-ai/refiners}} }

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from finegrain-ai/refiners via the GitHub API.Last fetched: 6/27/2026