/ Модель

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

Лицензия
Своя лицензия
Базовая модель
FLUX.1-Kontext-dev
Опубликована
26 июн 2025

kontext-gguf

Генерация изображенийТекст → изображение3 профессии
7 296скачиваний за 30 дней34лайкавеса обновлены23 авг 2025

Описание модели

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

calcuis/kontext-gguf — это GGUF-квантизированная версия модели FLUX.1-Kontext-dev, разработанной Black Forest Labs и подготовленной для распространения пользователем calcuis.

Модель предназначена прежде всего для генерации и редактирования изображений по текстовому описанию и исходному изображению, включая добавление или изменение объектов, одежды, окружения и стиля. В карточке указана поддержка image-to-image и английского языка.

Модель доступна в вариантах GGUF с квантованием Q2_K, Q4_0 и Q8_0, а также упоминается экспериментальная облегчённая версия для работы за 8 шагов. Для запуска предусмотрены gguf-connector, gguf-node в ComfyUI и интеграция с Diffusers через FluxKontextPipeline. В комплекте и связанных инструкциях используются текстовые энкодеры CLIP-L и T5XXL, а также VAE; поддерживается полностью GGUF-комплект без safetensors. Приведены примеры текстово-управляемого редактирования изображений и генерации по промпту.

Сильной стороной являются несколько уровней квантования и варианты запуска, что может снизить требования к памяти и ускорить загрузку, особенно на системах с ограниченным VRAM. Ограничения включают необходимость совместимых инструментов и компонентов, возможное значительное замедление при недостатке видеопамяти, а также отсутствие в README сведений о размере модели, архитектурных параметрах и длине контекста. Модель распространяется по лицензии flux-1-dev-non-commercial-license; коммерческое использование этой лицензией не разрешено.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Изображения» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели сгенерируют результат по каждой задаче. Опубликованный тест появится на этой странице.

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

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

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

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

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

Открыть на Hugging Face

gguf quantized version of kontext

  • run it straight with gguf-connector
  • opt a gguf file in the current directory to interact with by:
ggc k0

GGUF file(s) available. Select which one to use:

  1. flux-kontext-lite-q2_k.gguf
  2. flux-kontext-lite-q4_0.gguf
  3. flux-kontext-lite-q8_0.gguf

Enter your choice (1 to 3): _

note: try experimental lite model with 8-step operation; save up to 70% loading time

run it with gguf-node via comfyui

  • drag kontext to > ./ComfyUI/models/diffusion_models
  • drag clip-l, t5xxl to > ./ComfyUI/models/text_encoders
  • drag pig to > ./ComfyUI/models/vae

screenshot

  • don't need safetensors anymore; all gguf (model + encoder + vae)
  • full set gguf works on gguf-node (see the last item from reference at the very end)
  • get more t5xxl gguf encoder either here or here

screenshot

extra: scaled safetensors (alternative 1)

  • get all-in-one checkpoint here (model, clips and vae embedded) screenshot
  • another option: get multi matrix scaled fp8 from comfyui here or e4m3fn fp8 here with seperate scaled version l-clip, t5xxl and vae

run it with diffusers🧨 (alternative 2)

  • might need the most updated diffusers (git version) for FluxKontextPipeline to work; upgrade your diffusers with:
pip install git+https://github.com/huggingface/diffusers.git
  • see example inference below:
import torch
from transformers import T5EncoderModel
from diffusers import FluxKontextPipeline
from diffusers.utils import load_image

text_encoder = T5EncoderModel.from_pretrained(
    "calcuis/kontext-gguf",
    gguf_file="t5xxl_fp16-q4_0.gguf",
    torch_dtype=torch.bfloat16,
    )

pipe = FluxKontextPipeline.from_pretrained(
    "calcuis/kontext-gguf",
    text_encoder_2=text_encoder,
    torch_dtype=torch.bfloat16
    ).to("cuda")

input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")

image = pipe(
  image=input_image,
  prompt="Add a hat to the cat",
  guidance_scale=2.5
).images[0]
image.save("output.png")
  • tip: if your machine doesn't has enough vram, would suggest running it with gguf-node via comfyui (plan a), otherwise you might expect to wait very long while falling to a slow mode; this is always a winner takes all game

run it with gguf-connector (other alternatives)

  • simply execute the command below in console/terminal
ggc k2

screenshot

  • note: during the first time launch, it will pull the required model file(s) from this repo to local cache automatically; then opt to run it entirely offline; i.e., from local URL: http://127.0.0.1:7860 with lazy webui

screenshot

  • with bot lora embedded version
ggc k1

screenshot

  • new plushie style screenshot

additional chapter for lora conversion via gguf-connector

  • convert lora from base to unet format, i.e.,plushie, then it can be used in comfyui as well
ggc la

screenshot

  • able to swap the lora back (from unet to base; auto-detection logic applied), then it can be used for inference again
ggc la

screenshot

update

  • clip-l-v2: missing tensor text_projection.weight added
  • kontext-v2: s-quant and k-quant; except single and double blocks, all in f32 status
    • pros: load faster (as no dequant needed for those tensors); and
      1. avoid key breaking issue, since some inference engines only dequant blocks;
      2. compatible for non-cuda machines, as most of them cannot run bf16 tensors
    • cons: little bit larger in file size
  • kontext-v3: i-quant attempt (upgrade your node to the latest version for full quant support)
  • kontext-v4: t-quant; runnable (extramely fast); for speed test/experimental purposes
rankquants/itloading speed
1q2_k6.40±.7🐖💨💨💨💨💨💨
2q4_08.58±.5🐖🐖💨💨💨💨💨
3q4_19.12±.5🐖🐖🐖💨💨💨💨
4q8_09.45±.3🐖🐖🐖🐖💨💨💨
5q3_k9.50±.3🐖🐖🐖🐖💨💨💨
6q5_010.48±.5🐖🐖🐖🐖🐖💨💨
7iq4_nl10.55±.5🐖🐖🐖🐖🐖💨💨
8q5_110.65±.5🐖🐖🐖🐖🐖💨💨
9iq4_xs11.45±.7🐖🐖🐖🐖🐖🐖💨
10iq3_s11.62±.9🐢🐢🐢🐢🐢🐢💨
11iq3_xxs12.08±.9🐢🐢🐢🐢🐢🐢🐢

not all included in the initial test (*tested with a beginner laptop gpu only, if you have highend model, might find q8_0 running surprisingly faster than others), the rest of them, test it yourself; btw, the interesting thing is: the loading time required was not aligning with file size, due to the complexity of each calculation (dequant), and might vary from models

new memory economy mode

  • this option works for machine with low/no vram or even without gpu
ggc k3

🐷 Kontext Image Editor (connector mode) 🐷

  • opt a gguf file straight in the current directory to interact with
ggc k6
  • semi-full quant supported in the k8 connector (use dequantor instead of diffusers)
ggc k8

reference

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Ревизия весов
76b1b46

0 моделей