/ Модель

Характеристики

Лицензия
CC BY-NC 4.0
Базовая модель
FIBO
Библиотека
diffusers
Опубликована
27 ноя 2025

Fibo-lite

Генерация изображенийТекст → изображение3 профессии

Дистиллированный адаптер FIBO от Bria AI ускоряет генерацию изображений по тексту за счёт CFG-дистилляции и SCFM.

33скачиваний за 30 дней10лайковвеса обновлены15 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

FIBO Lite — модель Bria AI для генерации изображений по текстовому описанию, основанная на briaai/FIBO. Это двухэтапная дистилляция: сначала в модель перенесён эффект classifier-free guidance (CFG), затем применён Shortcutting Flow Matching (SCFM), который помогает генерировать изображение за меньшее число шагов. Репозиторий содержит адаптер LoRA в форматах Diffusers и Safetensors.

Модель рассчитана на ускоренный вывод и быструю итерацию: обычно используется 8 шагов генерации, guidance_scale=1.0 и без отрицательного промпта. Один проход предсказания на шаг снижает вычислительные затраты по сравнению с обычным CFG. По заявлению автора, это компромисс между скоростью и качеством: качество может быть немного ниже, чем у полной FIBO с CFG=5. Для работы применяются существующие сценарии FIBO и библиотека Diffusers. Лицензия — CC BY-NC 4.0; для коммерческого использования Bria AI предлагает связаться с компанией.

Сценарии применения

  • быстрая генерация изображений по текстовым промптам
  • создание черновых изображений для быстрой итерации
  • генерация изображений с меньшим числом шагов вывода

Ограничения

Дистилляция может немного снижать качество по сравнению с полной FIBO при CFG=5; автор рекомендует guidance_scale=1.0 и обычно 8 шагов. Лицензия CC BY-NC 4.0 ограничивает коммерческое использование без отдельного разрешения.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Hugging Face GitHub License


🚀 Overview

This is a two-stage distilled model for the FIBO text-to-image model, combining:

  1. CFG Distillation: First, we distill classifier-free guidance into the model, enabling inference with Guidance Scale = 1.0 (skipping the negative prompt pass).
  2. SCFM (Shortcutting Flow Matching): On top of the CFG-distilled merged model, we apply velocity field self-distillation to enable efficient few-step sampling.

This two-stage approach allows FIBO Lite to generate high-quality images in significantly fewer inference steps while maintaining the benefits of CFG distillation.

🔑 Key Benefits

  • Two-Stage Distillation: Combines CFG distillation with SCFM for maximum efficiency—the SCFM was trained on top of the already CFG-distilled merged model.
  • Few-Step Generation: SCFM enables efficient sampling in significantly fewer inference steps.
  • No CFG Overhead: Running at guidance_scale=1 means calculating the noise prediction only once per step instead of twice.
  • Quality Tradeoff: As a distillation approach, there is a slight quality degradation compared to the full model at CFG=5, but the speed gains make it ideal for rapid iteration and production workflows.
  • Drop-in Replacement: Works seamlessly with existing FIBO workflows—just set guidance_scale=1.0.
  • Memory Efficient: Minimal additional GPU memory overhead.

📊 Comparison & Examples

FeatureBase FIBOFIBO Lite
Guidance Scale5.0 (Typical)1.0 (Distilled)
Compute per Step2x (Cond + Uncond)1x (Cond Only)
SpeedBaseline~10x Faster
QualityFull QualitySlight Degradation

🛠️ Usage

Requirements

pip install git+https://github.com/huggingface/diffusers torch torchvision  boltons ujson sentencepiece accelerate transformers

for using gemini api, you need to install google-genai as well

Quick Start

import os
import json
import torch
from diffusers import BriaFiboPipeline
from diffusers.modular_pipelines import ModularPipeline

# -------------------------------
# Load the VLM pipeline
# -------------------------------
torch.set_grad_enabled(False)

# Using local VLM
vlm_pipe = ModularPipeline.from_pretrained("briaai/FIBO-VLM-prompt-to-JSON", trust_remote_code=True)


# Using Gemini API, requires GOOGLE_API_KEY environment variable
# assert os.getenv("GOOGLE_API_KEY") is not None, "GOOGLE_API_KEY environment variable is not set"
# vlm_pipe = ModularPipeline.from_pretrained("briaai/FIBO-gemini-prompt-to-JSON", trust_remote_code=True)



# Load the FIBO pipeline
pipe = BriaFiboPipeline.from_pretrained(
    "briaai/Fibo-lite",
    torch_dtype=torch.bfloat16,
)
pipe.to("cuda")

# Generate with guidance_scale=1.0 (2x faster!)
output = vlm_pipe(
    prompt="A hyper-detailed, ultra-fluffy owl sitting in the trees at night, looking directly at the camera with wide, adorable, expressive eyes. Its feathers are soft and voluminous, catching the cool moonlight with subtle silver highlights. The owl's gaze is curious and full of charm, giving it a whimsical, storybook-like personality."
)
json_prompt_generate = output.values["json_prompt"]

results_generate = pipe(
    prompt=json_prompt_generate, num_inference_steps=8, guidance_scale=1
)
results_generate.images[0].save("image_generate.png")
with open("image_generate_json_prompt.json", "w") as f:
    f.write(json_prompt_generate)

Key Parameters

  • guidance_scale=1.0: This is the magic setting! With the LoRA loaded, you get the quality of CFG=5 at the speed of CFG=1.
  • num_inference_steps=8: Standard for FIBO Lite. Adjust based on your quality/speed tradeoff.
  • No negative prompt needed: The distillation handles this internally.

🧠 Training Details

This model was created using a two-stage distillation process:

Stage 1: CFG Distillation

  • Method: Guidance Distillation (Distilling the CFG effect into the model weights via LoRA)
  • Base Model: briaai/FIBO
  • Trainable Parameters: 471,472,128
  • Precision: bfloat16
  • Teacher Configuration: CFG=5.0 (standard FIBO setting)
  • Student Configuration: CFG=1.0 (target deployment)
  • Training Objective: Minimize KL divergence between teacher and student outputs

The CFG distillation LoRA was then merged into the base model to create a CFG-free foundation.

Stage 2: SCFM (Shortcutting Flow Matching)

Building on the merged CFG-distilled model, we applied Shortcutting Flow Matching (SCFM):

  • Method: Velocity Field Self-Distillation
  • Base Model: CFG-distilled merged FIBO (from Stage 1)
  • Key Innovation: SCFM imparts a shortcut mechanism to standard flow matching models, enabling flexible trajectory-skipping without requiring step-size embedding
  • Training Approach: Works on the velocity field rather than sample space, learning rapidly from self-guided distillation in an online manner
  • Result: Efficient few-step flows without compromising quality

Why Two Stages?

  1. Stage 1 (CFG Distillation) eliminates the need for dual forward passes (conditional + unconditional), halving compute per step.
  2. Stage 2 (SCFM) enables the model to take larger steps through the diffusion trajectory, dramatically reducing the number of required inference steps.

Together, these stages compound to deliver ultra-efficient generation: fewer steps × less compute per step = significantly faster inference.


🤝 Community & Support


📚 Citation

If you use this model in your research or project, please cite:

@misc{gutflaish2025generating,
  title         = {Generating an Image From 1,000 Words: Enhancing Text-to-Image With Structured Captions},
  author        = {Gutflaish, Eyal and Kachlon, Eliran and Zisman, Hezi and Hacham, Tal and Sarid, Nimrod and Visheratin, Alexander and Huberman, Saar and Davidi, Gal and Bukchin, Guy and Goldberg, Kfir and Mokady, Ron},
  year          = {2025},
  eprint        = {2511.06876},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV},
  doi           = {10.48550/arXiv.2511.06876},
  url           = {https://arxiv.org/abs/2511.06876}
}



📄 License

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · diffusers

Нельзя запустить

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
158c006

0 моделей