From d2298fbdac44597720d620a5deffb1ab7b4c747f Mon Sep 17 00:00:00 2001 From: Nikita Date: Wed, 11 Nov 2026 16:49:21 +0300 Subject: [PATCH 1/3] feat(diffusion): MiniMax-H3-Image family (engine 1088, Create only) Adds 'minimax-h3-image' to DiffusionFamilyId and DIFFUSION_FAMILY_IDS so the catalog entry is kept instead of dropped, the MiniMax mark for it, Create as its only workflow (sd.cpp runs its reference edits, not yet measured), and an engine floor of master-1088-32d516c, the upstream build that added it (leejet/stable-diffusion.cpp#2324). The core's matching floor is AtomicBot-ai/atomic-chat-core feat/minimax-h3-image. Assisted-by: Claude --- .../lib/diffusion/__tests__/workflows.test.ts | 2 ++ web-app/src/lib/diffusion/workflows.ts | 6 ++++-- web-app/src/lib/model-logo.ts | 1 + .../services/diffusion-catalog-registry.ts | 1 + .../diffusion/__tests__/compatibility.test.ts | 20 +++++++++++++++++++ .../src/services/diffusion/compatibility.ts | 3 +++ web-app/src/services/diffusion/types.ts | 1 + 7 files changed, 32 insertions(+), 2 deletions(-) diff --git a/web-app/src/lib/diffusion/__tests__/workflows.test.ts b/web-app/src/lib/diffusion/__tests__/workflows.test.ts index 5c4185692..fa37df8c9 100644 --- a/web-app/src/lib/diffusion/__tests__/workflows.test.ts +++ b/web-app/src/lib/diffusion/__tests__/workflows.test.ts @@ -85,6 +85,8 @@ describe('workflowsForFamily', () => { expect(workflowsForFamily('krea-2-turbo')).toEqual(['create']) expect(workflowsForFamily('flux.3-klein')).toEqual(['create']) expect(familySupportsWorkflow('flux.3-klein', 'edit')).toBe(false) + expect(workflowsForFamily('minimax-h3-image')).toEqual(['create']) + expect(familySupportsWorkflow('minimax-h3-image', 'reference')).toBe(false) expect(familySupportsWorkflow('krea-2-turbo', 'transform')).toBe(false) expect(familySupportsWorkflow('z-image', 'edit')).toBe(false) expect(workflowsForFamily('wan2.2-ti2v-5b')).toEqual(['create']) diff --git a/web-app/src/lib/diffusion/workflows.ts b/web-app/src/lib/diffusion/workflows.ts index cb913ebea..12adccb64 100644 --- a/web-app/src/lib/diffusion/workflows.ts +++ b/web-app/src/lib/diffusion/workflows.ts @@ -132,8 +132,9 @@ export function isSourceImagePath(path: string): boolean { * `session::workflows_for_family`, which is what actually accepts or rejects * a job — the two lists must stay identical. img2img and masks are generic in * sd.cpp for the established base families; distilled Create-only models such - * as Krea 2 Turbo remain restricted to their verified workflow, and so does - * FLUX.3 Klein until its edits are measured (sd.cpp runs them). Reference and + * as Krea 2 Turbo remain restricted to their verified workflow, and so do + * FLUX.3 Klein and MiniMax-H3-Image until their edits are measured (sd.cpp + * runs them). Reference and * instruction edits need a model trained on reference images. Qwen Image 2.1 * additionally needs its `--llm_vision` projector at runtime; the plugin * removes those workflows from loaded capabilities when it is absent. @@ -155,6 +156,7 @@ export function workflowsForFamily(family: string): ImageWorkflowId[] { return ['create', 'reference', 'edit'] case 'krea-2-turbo': case 'flux.3-klein': + case 'minimax-h3-image': return ['create'] case 'z-image': case 'qwen-image': diff --git a/web-app/src/lib/model-logo.ts b/web-app/src/lib/model-logo.ts index c4cea12a4..3cccc14f8 100644 --- a/web-app/src/lib/model-logo.ts +++ b/web-app/src/lib/model-logo.ts @@ -172,6 +172,7 @@ export const DIFFUSION_FAMILY_ICON_KEYS: Readonly< 'z-image': 'z-image', 'flux.2-klein': 'bfl', 'flux.3-klein': 'bfl', + 'minimax-h3-image': 'minimax', 'flux.1': 'bfl', 'flux.1-uncensored': 'bfl', 'flux.1-abliterated': 'bfl', diff --git a/web-app/src/services/diffusion-catalog-registry.ts b/web-app/src/services/diffusion-catalog-registry.ts index 66a145661..79e74cc8c 100644 --- a/web-app/src/services/diffusion-catalog-registry.ts +++ b/web-app/src/services/diffusion-catalog-registry.ts @@ -159,6 +159,7 @@ export const DIFFUSION_FAMILY_IDS: readonly DiffusionFamilyId[] = [ 'z-image', 'flux.2-klein', 'flux.3-klein', + 'minimax-h3-image', 'flux.1', 'flux.1-uncensored', 'flux.1-abliterated', diff --git a/web-app/src/services/diffusion/__tests__/compatibility.test.ts b/web-app/src/services/diffusion/__tests__/compatibility.test.ts index b5475e124..64ecec7d5 100644 --- a/web-app/src/services/diffusion/__tests__/compatibility.test.ts +++ b/web-app/src/services/diffusion/__tests__/compatibility.test.ts @@ -1,6 +1,7 @@ import { describe, expect, it } from 'vitest' import { FLUX3_IMAGE_ENGINE_TAG, + MINIMAX_H3_IMAGE_ENGINE_TAG, MODERN_IMAGE_ENGINE_TAG, requiredEngineTag, supportsDiffusionFamily, @@ -15,6 +16,9 @@ describe('requiredEngineTag', () => { ]) expect(requiredEngineTag(family), family).toBe(MODERN_IMAGE_ENGINE_TAG) expect(requiredEngineTag('flux.3-klein')).toBe(FLUX3_IMAGE_ENGINE_TAG) + expect(requiredEngineTag('minimax-h3-image')).toBe( + MINIMAX_H3_IMAGE_ENGINE_TAG + ) for (const family of [ 'z-image', 'flux.1', @@ -43,6 +47,22 @@ describe('supportsDiffusionFamily', () => { expect(supportsDiffusionFamily('flux.3-klein', tag), tag).toBe(true) }) + it('holds MiniMax-H3-Image to build 1088, the one that added it upstream', () => { + for (const tag of [ + 'master-1028-37bc88b-a5f9a63b', + 'master-1079-a3c49b1', + 'master-1087-f8417d0', + 'unknown', + ]) + expect(supportsDiffusionFamily('minimax-h3-image', tag), tag).toBe(false) + for (const tag of [ + 'master-1088-32d516c', + 'master-1088-32d516c-a1234567', + 'master-1100-abcdef0', + ]) + expect(supportsDiffusionFamily('minimax-h3-image', tag), tag).toBe(true) + }) + it('keeps the 883 floor for Qwen Image 2.1 and Krea 2 Turbo', () => { expect(supportsDiffusionFamily('krea-2-turbo', 'master-882-abcdef0')).toBe( false diff --git a/web-app/src/services/diffusion/compatibility.ts b/web-app/src/services/diffusion/compatibility.ts index 60b0cadac..5a518df99 100644 --- a/web-app/src/services/diffusion/compatibility.ts +++ b/web-app/src/services/diffusion/compatibility.ts @@ -2,12 +2,15 @@ export const MODERN_IMAGE_ENGINE_TAG = 'master-883-137f740' /** The first upstream build that runs FLUX.3 Image Klein (leejet/stable-diffusion.cpp#2143). */ export const FLUX3_IMAGE_ENGINE_TAG = 'master-968-8cd731e' +/** The first upstream build that runs MiniMax-H3-Image (leejet/stable-diffusion.cpp#2324). */ +export const MINIMAX_H3_IMAGE_ENGINE_TAG = 'master-1088-32d516c' const REQUIRED_ENGINE_TAGS: ReadonlyMap = new Map([ ['qwen-image-2.1', MODERN_IMAGE_ENGINE_TAG], ['qwen-image-2.1-turbo', MODERN_IMAGE_ENGINE_TAG], ['krea-2-turbo', MODERN_IMAGE_ENGINE_TAG], ['flux.3-klein', FLUX3_IMAGE_ENGINE_TAG], + ['minimax-h3-image', MINIMAX_H3_IMAGE_ENGINE_TAG], ]) function buildOf(tag: string): number | null { diff --git a/web-app/src/services/diffusion/types.ts b/web-app/src/services/diffusion/types.ts index eaaec3da6..d2e36d54e 100644 --- a/web-app/src/services/diffusion/types.ts +++ b/web-app/src/services/diffusion/types.ts @@ -51,6 +51,7 @@ export type DiffusionFamilyId = | 'z-image' | 'flux.2-klein' | 'flux.3-klein' + | 'minimax-h3-image' | 'flux.1' | 'flux.1-uncensored' | 'flux.1-abliterated' From f8c9bee1bb7d87b82496e2525bbd7b9ce7061836 Mon Sep 17 00:00:00 2001 From: Misha Skvortsov Date: Wed, 11 Nov 2026 17:19:35 +0300 Subject: [PATCH 2/3] feat(diffusion): MiniMax-H3-Image reference and edit workflows workflowsForFamily gives minimax-h3-image create, reference and edit, like Qwen Image 2.1, so the Images page offers its Reference and Edit modes. stable-diffusion.cpp master-1088-32d516c runs its reference edits (up to 16 pictures, numbered Picture 1, 2, ... in the prompt), and the catalog's H3 encoder GGUF carries the Qwen3-VL vision tower, so no llm_vision file is needed. Core (AtomicBot-ai/atomic-chat-core feat/minimax-h3-image) and the catalog entry (atomic-chat-conf change/add-minimax-h3-image) list the same three workflows. Co-Authored-By: Claude Opus 5.5 --- web-app/src/lib/diffusion/__tests__/workflows.test.ts | 8 ++++++-- web-app/src/lib/diffusion/workflows.ts | 9 +++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/web-app/src/lib/diffusion/__tests__/workflows.test.ts b/web-app/src/lib/diffusion/__tests__/workflows.test.ts index fa37df8c9..4b04381a5 100644 --- a/web-app/src/lib/diffusion/__tests__/workflows.test.ts +++ b/web-app/src/lib/diffusion/__tests__/workflows.test.ts @@ -85,8 +85,12 @@ describe('workflowsForFamily', () => { expect(workflowsForFamily('krea-2-turbo')).toEqual(['create']) expect(workflowsForFamily('flux.3-klein')).toEqual(['create']) expect(familySupportsWorkflow('flux.3-klein', 'edit')).toBe(false) - expect(workflowsForFamily('minimax-h3-image')).toEqual(['create']) - expect(familySupportsWorkflow('minimax-h3-image', 'reference')).toBe(false) + expect(workflowsForFamily('minimax-h3-image')).toEqual([ + 'create', + 'reference', + 'edit', + ]) + expect(familySupportsWorkflow('minimax-h3-image', 'transform')).toBe(false) expect(familySupportsWorkflow('krea-2-turbo', 'transform')).toBe(false) expect(familySupportsWorkflow('z-image', 'edit')).toBe(false) expect(workflowsForFamily('wan2.2-ti2v-5b')).toEqual(['create']) diff --git a/web-app/src/lib/diffusion/workflows.ts b/web-app/src/lib/diffusion/workflows.ts index 12adccb64..c61bbe020 100644 --- a/web-app/src/lib/diffusion/workflows.ts +++ b/web-app/src/lib/diffusion/workflows.ts @@ -132,12 +132,13 @@ export function isSourceImagePath(path: string): boolean { * `session::workflows_for_family`, which is what actually accepts or rejects * a job — the two lists must stay identical. img2img and masks are generic in * sd.cpp for the established base families; distilled Create-only models such - * as Krea 2 Turbo remain restricted to their verified workflow, and so do - * FLUX.3 Klein and MiniMax-H3-Image until their edits are measured (sd.cpp - * runs them). Reference and + * as Krea 2 Turbo remain restricted to their verified workflow, and so does + * FLUX.3 Klein until its edits are measured (sd.cpp runs them). Reference and * instruction edits need a model trained on reference images. Qwen Image 2.1 * additionally needs its `--llm_vision` projector at runtime; the plugin * removes those workflows from loaded capabilities when it is absent. + * MiniMax-H3-Image creates and edits with one checkpoint, and its H3 encoder + * GGUF carries the vision tower itself. */ export function workflowsForFamily(family: string): ImageWorkflowId[] { switch (family) { @@ -153,10 +154,10 @@ export function workflowsForFamily(family: string): ImageWorkflowId[] { ] case 'qwen-image-2.1': case 'qwen-image-2.1-turbo': + case 'minimax-h3-image': return ['create', 'reference', 'edit'] case 'krea-2-turbo': case 'flux.3-klein': - case 'minimax-h3-image': return ['create'] case 'z-image': case 'qwen-image': From b151a8c76d9f75946049d3a9e355b913c9dfa006 Mon Sep 17 00:00:00 2001 From: Misha Skvortsov Date: Wed, 11 Nov 2026 17:30:34 +0300 Subject: [PATCH 3/3] feat(diffusion): P-H3-Image family (engine 1088, create/reference/edit) Adds 'p-h3-image' (Pruna AI, on MiniMax-H3's transformer) to DiffusionFamilyId and DIFFUSION_FAMILY_IDS, so its catalog entry (atomic-chat-conf change/add-minimax-h3-image) is kept instead of dropped: - Workflows: create, reference and edit, like MiniMax-H3-Image. Pruna's text encoder carries Qwen3-VL-4B's vision tower and the P-H3 text connector, so no llm_vision file is needed. - Engine floor: the H3 floor master-1088-32d516c. Upstream added P-H3 in 1048 (leejet/stable-diffusion.cpp#2272), but the H3 transformer's buffer-limit chunking (#2286, #2292) came later; the core holds it to the same build. - Mark: Pruna AI's Hugging Face organization avatar (200x200 WebP), like the audio makers without a mark of their own. Co-Authored-By: Claude Opus 5.5 --- web-app/public/images/model-provider/pruna.webp | Bin 0 -> 10090 bytes .../lib/diffusion/__tests__/workflows.test.ts | 3 +++ web-app/src/lib/diffusion/workflows.ts | 5 +++-- web-app/src/lib/model-logo.ts | 4 ++++ .../src/services/diffusion-catalog-registry.ts | 1 + .../diffusion/__tests__/compatibility.test.ts | 13 +++++++++++-- web-app/src/services/diffusion/compatibility.ts | 7 ++++++- web-app/src/services/diffusion/types.ts | 1 + 8 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 web-app/public/images/model-provider/pruna.webp diff --git a/web-app/public/images/model-provider/pruna.webp b/web-app/public/images/model-provider/pruna.webp new file mode 100644 index 0000000000000000000000000000000000000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T1pmg4}| z;h5n80ldb`EB?Y7*SZ=;$4kSf0Mwho$%zw6`h=sX`D#Rr4cM;L1}1IB5Fl5%K(9oG zy#s;HngU3} { 'edit', ]) expect(familySupportsWorkflow('minimax-h3-image', 'transform')).toBe(false) + expect(workflowsForFamily('p-h3-image')).toEqual( + workflowsForFamily('minimax-h3-image') + ) expect(familySupportsWorkflow('krea-2-turbo', 'transform')).toBe(false) expect(familySupportsWorkflow('z-image', 'edit')).toBe(false) expect(workflowsForFamily('wan2.2-ti2v-5b')).toEqual(['create']) diff --git a/web-app/src/lib/diffusion/workflows.ts b/web-app/src/lib/diffusion/workflows.ts index c61bbe020..4bdf8a75c 100644 --- a/web-app/src/lib/diffusion/workflows.ts +++ b/web-app/src/lib/diffusion/workflows.ts @@ -137,8 +137,8 @@ export function isSourceImagePath(path: string): boolean { * instruction edits need a model trained on reference images. Qwen Image 2.1 * additionally needs its `--llm_vision` projector at runtime; the plugin * removes those workflows from loaded capabilities when it is absent. - * MiniMax-H3-Image creates and edits with one checkpoint, and its H3 encoder - * GGUF carries the vision tower itself. + * MiniMax-H3-Image and P-H3-Image create and edit with one checkpoint each, + * and their catalog encoders carry the vision tower (and P-H3's connector). */ export function workflowsForFamily(family: string): ImageWorkflowId[] { switch (family) { @@ -155,6 +155,7 @@ export function workflowsForFamily(family: string): ImageWorkflowId[] { case 'qwen-image-2.1': case 'qwen-image-2.1-turbo': case 'minimax-h3-image': + case 'p-h3-image': return ['create', 'reference', 'edit'] case 'krea-2-turbo': case 'flux.3-klein': diff --git a/web-app/src/lib/model-logo.ts b/web-app/src/lib/model-logo.ts index 3cccc14f8..27bcd3925 100644 --- a/web-app/src/lib/model-logo.ts +++ b/web-app/src/lib/model-logo.ts @@ -161,6 +161,9 @@ const ICON_KEY_LOGOS: Readonly> = { 'openmoss': '/images/model-provider/openmoss.webp', 'acestep': '/images/model-provider/acestep.webp', 'huggingface': '/images/model-provider/huggingface.svg', + // Image model makers without a mark of their own: their Hugging Face + // organization avatar, like the audio makers above. + 'pruna': '/images/model-provider/pruna.webp', } // Icon key per image/video family id. The catalog is remote and its display @@ -173,6 +176,7 @@ export const DIFFUSION_FAMILY_ICON_KEYS: Readonly< 'flux.2-klein': 'bfl', 'flux.3-klein': 'bfl', 'minimax-h3-image': 'minimax', + 'p-h3-image': 'pruna', 'flux.1': 'bfl', 'flux.1-uncensored': 'bfl', 'flux.1-abliterated': 'bfl', diff --git a/web-app/src/services/diffusion-catalog-registry.ts b/web-app/src/services/diffusion-catalog-registry.ts index 79e74cc8c..0525f5522 100644 --- a/web-app/src/services/diffusion-catalog-registry.ts +++ b/web-app/src/services/diffusion-catalog-registry.ts @@ -160,6 +160,7 @@ export const DIFFUSION_FAMILY_IDS: readonly DiffusionFamilyId[] = [ 'flux.2-klein', 'flux.3-klein', 'minimax-h3-image', + 'p-h3-image', 'flux.1', 'flux.1-uncensored', 'flux.1-abliterated', diff --git a/web-app/src/services/diffusion/__tests__/compatibility.test.ts b/web-app/src/services/diffusion/__tests__/compatibility.test.ts index 64ecec7d5..4b8b1509a 100644 --- a/web-app/src/services/diffusion/__tests__/compatibility.test.ts +++ b/web-app/src/services/diffusion/__tests__/compatibility.test.ts @@ -19,6 +19,7 @@ describe('requiredEngineTag', () => { expect(requiredEngineTag('minimax-h3-image')).toBe( MINIMAX_H3_IMAGE_ENGINE_TAG ) + expect(requiredEngineTag('p-h3-image')).toBe(MINIMAX_H3_IMAGE_ENGINE_TAG) for (const family of [ 'z-image', 'flux.1', @@ -53,14 +54,22 @@ describe('supportsDiffusionFamily', () => { 'master-1079-a3c49b1', 'master-1087-f8417d0', 'unknown', - ]) + ]) { expect(supportsDiffusionFamily('minimax-h3-image', tag), tag).toBe(false) + // P-H3-Image arrived in 1048 but shares the H3 floor. + expect(supportsDiffusionFamily('p-h3-image', tag), tag).toBe(false) + } + expect(supportsDiffusionFamily('p-h3-image', 'master-1048-3e92bf9')).toBe( + false + ) for (const tag of [ 'master-1088-32d516c', 'master-1088-32d516c-a1234567', 'master-1100-abcdef0', - ]) + ]) { expect(supportsDiffusionFamily('minimax-h3-image', tag), tag).toBe(true) + expect(supportsDiffusionFamily('p-h3-image', tag), tag).toBe(true) + } }) it('keeps the 883 floor for Qwen Image 2.1 and Krea 2 Turbo', () => { diff --git a/web-app/src/services/diffusion/compatibility.ts b/web-app/src/services/diffusion/compatibility.ts index 5a518df99..f81d930b3 100644 --- a/web-app/src/services/diffusion/compatibility.ts +++ b/web-app/src/services/diffusion/compatibility.ts @@ -2,7 +2,11 @@ export const MODERN_IMAGE_ENGINE_TAG = 'master-883-137f740' /** The first upstream build that runs FLUX.3 Image Klein (leejet/stable-diffusion.cpp#2143). */ export const FLUX3_IMAGE_ENGINE_TAG = 'master-968-8cd731e' -/** The first upstream build that runs MiniMax-H3-Image (leejet/stable-diffusion.cpp#2324). */ +/** + * The first upstream build that runs MiniMax-H3-Image (leejet/stable-diffusion.cpp#2324). + * P-H3-Image (#2272) arrived in 1048, but the H3 transformer's buffer-limit + * chunking (#2286, #2292) came later, so it shares this floor with the core. + */ export const MINIMAX_H3_IMAGE_ENGINE_TAG = 'master-1088-32d516c' const REQUIRED_ENGINE_TAGS: ReadonlyMap = new Map([ @@ -11,6 +15,7 @@ const REQUIRED_ENGINE_TAGS: ReadonlyMap = new Map([ ['krea-2-turbo', MODERN_IMAGE_ENGINE_TAG], ['flux.3-klein', FLUX3_IMAGE_ENGINE_TAG], ['minimax-h3-image', MINIMAX_H3_IMAGE_ENGINE_TAG], + ['p-h3-image', MINIMAX_H3_IMAGE_ENGINE_TAG], ]) function buildOf(tag: string): number | null { diff --git a/web-app/src/services/diffusion/types.ts b/web-app/src/services/diffusion/types.ts index d2e36d54e..7ae71d717 100644 --- a/web-app/src/services/diffusion/types.ts +++ b/web-app/src/services/diffusion/types.ts @@ -52,6 +52,7 @@ export type DiffusionFamilyId = | 'flux.2-klein' | 'flux.3-klein' | 'minimax-h3-image' + | 'p-h3-image' | 'flux.1' | 'flux.1-uncensored' | 'flux.1-abliterated'