Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

feat(create): local LTX 2.5, FastH3, YuE2 and local model tiers

purple09dab6ac4d6b
diff --git a/src-tauri/src/commands/download.rs b/src-tauri/src/commands/download.rs
index 8fd12638..88226ca3 100644
--- a/src-tauri/src/commands/download.rs
+++ b/src-tauri/src/commands/download.rs
@@ -554,6 +554,8 @@ const MODEL_SUBDIRS: &[&str] = &[
"checkpoints", "diffusion_models", "unet", "vae", "loras",
"text_encoders", "clip", "clip_vision", "audio_encoders",
"controlnet", "upscale_models", "embeddings", "style_models",
+ // LTX 2.5's x2 latent upscaler, written by the Get button since 2.x.
+ "latent_upscale_models",
];
/// Why a file ComfyUI listed is not in the ComfyUI models tree.
diff --git a/src/api/__tests__/app-wide-smoke.test.ts b/src/api/__tests__/app-wide-smoke.test.ts
index 2f9e6350..7e420913 100644
--- a/src/api/__tests__/app-wide-smoke.test.ts
+++ b/src/api/__tests__/app-wide-smoke.test.ts
@@ -41,7 +41,7 @@ function fullNodes(): CategorizedNodes {
'PyramidFlowModelLoader', 'PyramidFlowVAELoader',
'AllegroModelLoader',
],
- samplers: ['KSampler', 'KSamplerAdvanced', 'CogVideoXSampler', 'FramePackSampler', 'PyramidFlowSampler', 'AllegroSampler'],
+ samplers: ['KSampler', 'KSamplerAdvanced', 'CogVideoXSampler', 'FramePackSampler', 'PyramidFlowSampler', 'AllegroSampler', 'LTXVDualCFGGuider'],
latentInit: [
'EmptyLatentImage', 'EmptySD3LatentImage', 'EmptyFlux2LatentImage',
'EmptyHunyuanLatentVideo', 'EmptyLTXVLatentVideo',
diff --git a/src/api/__tests__/comfyui-bundles.test.ts b/src/api/__tests__/comfyui-bundles.test.ts
index efe94a82..f1bbbc3c 100644
--- a/src/api/__tests__/comfyui-bundles.test.ts
+++ b/src/api/__tests__/comfyui-bundles.test.ts
@@ -11,15 +11,15 @@ describe('Video Bundle Definitions', () => {
bundles = getVideoBundles()
})
- it('has 13 video bundles', () => {
+ it('has 16 video bundles', () => {
// 14 original - Allegro (diffusers only) + CogVideoX 2B replaced by 5B I2V,
// + Wan 2.2 TI2V-5B (unified T2V/I2V, 2026-06-11); 2.5.8 adds the two
// uncensored GGUF finetunes (NSFW Wan 14B t2v + Wan 2.2 Rapid AIO i2v).
// 2026-07-24 removes three that could never run: both CogVideoX bundles
// (21 GB each) and Pyramid Flow, whose builders emitted node class names no
// wrapper registers. See wrapper-node-names.test.ts. 2026-10-01 adds
- // MiniMax H3 (video with sound).
- expect(bundles.length).toBe(14)
+ // MiniMax H3 (video with sound). 2026-10-02 adds LTX 2.5 and FastH3.
+ expect(bundles.length).toBe(16)
})
it('every bundle has required fields', () => {
@@ -54,7 +54,7 @@ describe('Video Bundle Definitions', () => {
it('every file has valid subfolder', () => {
const validSubfolders = ['diffusion_models', 'vae', 'text_encoders', 'checkpoints', 'clip_vision',
- 'custom_nodes/ComfyUI-AnimateDiff-Evolved/models']
+ 'latent_upscale_models', 'custom_nodes/ComfyUI-AnimateDiff-Evolved/models']
for (const b of bundles) {
for (const f of b.files) {
expect(validSubfolders).toContain(f.subfolder)
@@ -92,7 +92,7 @@ describe('Video Bundle Definitions', () => {
it('every workflow type is a known strategy', () => {
const knownWorkflows = ['wan', 'wan22', 'hunyuan', 'ltx', 'animatediff', 'cogvideo', 'framepack',
- 'svd', 'mochi', 'cosmos', 'pyramidflow', 'allegro', 'minimaxh3']
+ 'svd', 'mochi', 'cosmos', 'pyramidflow', 'allegro', 'minimaxh3', 'ltx25']
for (const b of bundles) {
expect(knownWorkflows).toContain(b.workflow)
}
@@ -161,7 +161,7 @@ describe('2.5.8 specialized lane bundles (music / lipsync / motion)', () => {
it('every lane bundle is complete and https', () => {
const all = laneBundles()
- expect(all.length).toBe(6) // 2 music + 2 lipsync + 2 motion
+ expect(all.length).toBe(7) // 3 music + 2 lipsync + 2 motion
for (const b of all) {
expect(b.name).toBeTruthy()
expect(b.totalSizeGB).toBeGreaterThan(0)
@@ -175,9 +175,9 @@ describe('2.5.8 specialized lane bundles (music / lipsync / motion)', () => {
}
})
- it('music bundles are single-file ACE checkpoints', () => {
+ it('music bundles are single-file ACE or YuE2 checkpoints', () => {
for (const b of getAudioBundles()) {
- expect(b.workflow).toBe('ace')
+ expect(['ace', 'yue2']).toContain(b.workflow)
expect(b.files.length).toBe(1)
expect(b.files[0].subfolder).toBe('checkpoints')
}
diff --git a/src/api/__tests__/comfyui-integration.test.ts b/src/api/__tests__/comfyui-integration.test.ts
index bd0453a8..acf4560a 100644
--- a/src/api/__tests__/comfyui-integration.test.ts
+++ b/src/api/__tests__/comfyui-integration.test.ts
@@ -1,5 +1,5 @@
/**
- * Integration tests: Full pipeline verification for all 14 video models.
+ * Integration tests: Full pipeline verification for all 16 video models.
* Tests that Bundle → Strategy → Workflow is a valid end-to-end chain
* WITHOUT requiring any real ComfyUI instance or model downloads.
*/
@@ -24,6 +24,7 @@ function allNodesAvailable(): CategorizedNodes {
samplers: [
'KSampler', 'KSamplerAdvanced',
'CogVideoXSampler', 'FramePackSampler', 'PyramidFlowSampler', 'AllegroSampler',
+ 'LTXVDualCFGGuider',
],
latentInit: [
'EmptyLatentImage', 'EmptySD3LatentImage', 'EmptyFlux2LatentImage',
@@ -47,7 +48,7 @@ const defaultModels: AvailableModels = {
motionModels: ['animatediff_lightning_4step.safetensors'],
}
-describe('Full Pipeline: Bundle → Strategy for all 14 video bundles', () => {
+describe('Full Pipeline: Bundle → Strategy for all 16 video bundles', () => {
const bundles = getVideoBundles()
for (const bundle of bundles) {
@@ -65,7 +66,7 @@ describe('Full Pipeline: Bundle → Strategy for all 14 video bundles', () => {
// bisher nur zur Laufzeit sichtbar — der Cast am Aufruf hat ihn genau
// dort durchgelassen.
const workflowToModelType: Record<string, ModelType> = {
- wan: 'wan', wan22: 'wan22', hunyuan: 'hunyuan', ltx: 'ltx', animatediff: 'sd15',
+ wan: 'wan', wan22: 'wan22', hunyuan: 'hunyuan', ltx: 'ltx', ltx25: 'ltx25', animatediff: 'sd15',
cogvideo: 'cogvideo', framepack: 'framepack', svd: 'svd',
mochi: 'mochi', cosmos: 'cosmos', pyramidflow: 'pyramidflow', allegro: 'allegro', minimaxh3: 'minimaxh3',
}
@@ -86,7 +87,7 @@ describe('Bundle consistency checks', () => {
const bundles = getVideoBundles()
it('all video bundle workflows map to video model types', () => {
- const videoWorkflows = ['wan', 'wan22', 'hunyuan', 'ltx', 'animatediff', 'cogvideo', 'framepack', 'svd', 'mochi', 'cosmos', 'pyramidflow', 'allegro', 'minimaxh3']
+ const videoWorkflows = ['wan', 'wan22', 'hunyuan', 'ltx', 'animatediff', 'cogvideo', 'framepack', 'svd', 'mochi', 'cosmos', 'pyramidflow', 'allegro', 'minimaxh3', 'ltx25']
for (const b of bundles) {
expect(videoWorkflows).toContain(b.workflow)
}
@@ -106,7 +107,7 @@ describe('Bundle consistency checks', () => {
it('native bundles (no customNodes) use native ComfyUI strategies', () => {
const nativeBundles = bundles.filter(b => !b.customNodes || b.customNodes.length === 0)
- const nativeWorkflows = ['wan', 'wan22', 'hunyuan', 'ltx', 'svd', 'mochi', 'cosmos', 'minimaxh3']
+ const nativeWorkflows = ['wan', 'wan22', 'hunyuan', 'ltx', 'ltx25', 'svd', 'mochi', 'cosmos', 'minimaxh3']
for (const b of nativeBundles) {
expect(nativeWorkflows).toContain(b.workflow)
}
@@ -135,6 +136,7 @@ describe('Model filename classification consistency', () => {
wan22: ['wan22'],
hunyuan: ['hunyuan'],
ltx: ['ltx'],
+ ltx25: ['ltx25'],
mochi: ['mochi'],
cosmos: ['cosmos'],
cogvideo: ['cogvideo'],
diff --git a/src/api/__tests__/download-integrity.test.ts b/src/api/__tests__/download-integrity.test.ts
index 3d52b2a0..1e3f0a5e 100644
--- a/src/api/__tests__/download-integrity.test.ts
+++ b/src/api/__tests__/download-integrity.test.ts
@@ -34,6 +34,7 @@ function bundle(files: Array<Partial<DiscoverModel>>, totalSizeGB = 0): ModelBun
totalSizeGB,
vramRequired: '8 GB',
workflow: 'wan',
+ tier: 'standard',
files: files.map(f => ({
name: '', description: '', pulls: '', tags: [], updated: '',
downloadUrl: 'https://huggingface.co/x/y/resolve/main/f.safetensors',
diff --git a/src/api/__tests__/fasth3-is-the-fast-minimax-h3.test.ts b/src/api/__tests__/fasth3-is-the-fast-minimax-h3.test.ts
new file mode 100644
index 00000000..931e4609
--- /dev/null
+++ b/src/api/__tests__/fasth3-is-the-fast-minimax-h3.test.ts
@@ -0,0 +1,192 @@
+/**
+ * FastH3 (FastVideo's 8 step distillation of MiniMax H3, ComfyUI nodes since
+ * 0.35.0). A full checkpoint of its own, not a LoRA: the Hugging Face repo
+ * FastVideo/FastVideo-FastH3-Comfy holds fastvideo_fasth3_8step_v2_pruned_*,
+ * and the official Comfy-Org template video_fastvideo_fasth3_t2v loads it with
+ * H3's own encoder and VAEs, a sigma shift of 10 and VSA sparse attention.
+ * Text to video only: the model card says first/last frame and reference were
+ * not distilled.
+ *
+ * Run: npx vitest run src/api/__tests__/fasth3-is-the-fast-minimax-h3.test.ts
+ */
+import { describe, it, expect, vi, beforeEach } from 'vitest'
+
+vi.mock('../comfyui-nodes', async (importOriginal) => {
+ const actual = await importOriginal<typeof import('../comfyui-nodes')>()
+ return { ...actual, getAllNodeInfo: vi.fn() }
+})
+vi.mock('../backend', async (importOriginal) => {
+ const actual = await importOriginal<typeof import('../backend')>()
+ return { ...actual, localFetch: vi.fn(), comfyuiUrl: (p: string) => `http://test${p}` }
+})
+
+import { buildDynamicWorkflow, FASTH3_NEEDS_UPDATE, WorkflowUnavailableError } from '../dynamic-workflow'
+import { getAllNodeInfo } from '../comfyui-nodes'
+import { classifyModel, isFastH3, isVideoModelType, isI2VModel, isT2VCapable, videoLaneModels, type ClassifiedModel } from '../comfyui'
+import { getVideoBundles } from '../discover'
+import { localFetch } from '../backend'
+import { nodeOf } from './graph-test-support'
+
+const FAST = 'fastvideo_fasth3_8step_v2_pruned_int8_convrot.safetensors'
+const BASE = 'minimax_h3_fl2va_pruned_int8_convrot.safetensors'
+const ENCODER = 'qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors'
+const VIDEO_VAE = 'minimax_h3_video_vae_int8_convrot.safetensors'
+const AUDIO_VAE = 'minimax_h3_audio_vae_fp32.safetensors'
+
+const NODES: Record<string, unknown> = {
+ UNETLoader: { input: { required: { unet_name: [[FAST, BASE]] } } },
+ CLIPLoader: { input: { required: { clip_name: [[ENCODER]] } } },
+ VAELoader: { input: { required: { vae_name: [[VIDEO_VAE, AUDIO_VAE]] } } },
+ LoraLoaderModelOnly: { input: { required: {} } },
+ MiniMaxH3ImageToVideo: { input: { required: {} } },
+ MiniMaxH3ReferenceToVideo: { input: { required: {} } },
+ MiniMaxH3SigmaShift: { input: { required: {} } },
+ BlockSparseAttention: { input: { required: {} } },
+ BasicGuider: { input: { required: {} } },
+ BasicScheduler: { input: { required: {} } },
+ KSamplerSelect: { input: { required: {} } },
+ RandomNoise: { input: { required: {} } },
+ SamplerCustomAdvanced: { input: { required: {} } },
+ VAEDecode: { input: { required: {} } },
+ VAEDecodeAudio: { input: { required: {} } },
+ LoadImage: { input: { required: {} } },
+ ImageScale: { input: { required: {} } },
+ CreateVideo: { input: { required: {} } },
+ SaveVideo: { input: { required: {} } },
+}
+
+const run = (model: string, extra: Record<string, unknown> = {}) => ({
+ model, prompt: 'a drummer on a rooftop, the snare cracks on every hit', negativePrompt: '',
+ sampler: 'res_multistep', scheduler: 'simple', steps: 20, cfgScale: 1,
+ width: 1344, height: 768, seed: 7, batchSize: 1, frames: 124, fps: 24, ...extra,
+}) as never
+
+beforeEach(() => {
+ vi.mocked(getAllNodeInfo).mockResolvedValue(NODES as never)
+ vi.mocked(localFetch).mockResolvedValue({
+ ok: true,
+ json: async () => ({
+ CLIPLoader: { input: { required: { clip_name: [[ENCODER]] } } },
+ VAELoader: { input: { required: { vae_name: [[VIDEO_VAE, AUDIO_VAE]] } } },
+ }),
+ } as never)
+})
+
+describe('FastH3 is an H3 video model that only does text to video', () => {
+ it('the file name says fasth3, not minimax, and still lands in the H3 family', () => {
+ expect(isFastH3(FAST)).toBe(true)
+ expect(isFastH3(BASE)).toBe(false)
+ expect(classifyModel(FAST)).toBe('minimaxh3')
+ expect(isVideoModelType(classifyModel(FAST))).toBe(true)
+ })
+
+ it('it is offered for text to video and left out of Animate and Extend', () => {
+ expect(isT2VCapable(FAST)).toBe(true)
+ expect(isI2VModel(FAST)).toBe(false)
+ expect(isI2VModel(BASE)).toBe(true)
+ const list = [FAST, BASE].map((name) => ({ name, type: 'minimaxh3', source: 'diffusion_model' }) as ClassifiedModel)
+ expect(videoLaneModels(list, 'video').map((m) => m.name)).toEqual([FAST, BASE])
+ expect(videoLaneModels(list, 'animate').map((m) => m.name)).toEqual([BASE])
+ expect(videoLaneModels(list, 'extend').map((m) => m.name)).toEqual([BASE])
+ })
+})
+
+describe('the Model Manager card', () => {
+ const bundles = () => getVideoBundles()
+ const fast = () => bundles().find((b) => b.name.startsWith('FastH3'))!
+ const h3 = () => bundles().find((b) => b.name.startsWith('MiniMax H3'))!
+
+ it('a full 8 step checkpoint from FastVideo, with the sha256 Hugging Face states', () => {
+ const main = fast().files[0]
+ expect(main.downloadUrl).toBe(`https://huggingface.co/FastVideo/FastVideo-FastH3-Comfy/resolve/main/diffusion_models/${FAST}`)
+ expect(main.filename).toBe(FAST)
+ expect(main.subfolder).toBe('diffusion_models')
+ expect(main.sizeGB).toBeCloseTo(22128378696 / 1_073_741_824, 2)
+ expect(main.sha256).toBe('0922785978dc9bfe1adf27d8b291b0ca763f9f165f882e6cb297c72fbb6deda8')
+ })
+
+ it('shares the encoder and both VAEs with MiniMax H3, the very same entries', () => {
+ expect(fast().files.slice(1)).toEqual(h3().files.slice(1))
+ expect(fast().files.slice(1).map((f) => f.filename)).toEqual([ENCODER, VIDEO_VAE, AUDIO_VAE])
+ expect(fast().workflow).toBe('minimaxh3')
+ })
+
+ it('is a best-tier bundle, as the base H3', () => {
+ expect(fast().tier).toBe('best')
+ expect(h3().tier).toBe('best')
+ })
+
+ it('totals the files it lists', () => {
+ const sum = fast().files.reduce((a, f) => a + (f.sizeGB ?? 0), 0)
+ expect(fast().totalSizeGB).toBeCloseTo(sum, 1)
+ })
+})
+
+describe('the graph follows the official template', () => {
+ it('UNET, then the sigma shift (10 and 3), then VSA sparse attention, then guider and scheduler on that model', async () => {
+ const wf = await buildDynamicWorkflow(run(FAST), 'minimaxh3')
+ const unetId = nodeOf(wf, 'UNETLoader')![0]
+ expect(nodeOf(wf, 'UNETLoader')![1].inputs.unet_name).toBe(FAST)
+ const [shiftId, shift] = nodeOf(wf, 'MiniMaxH3SigmaShift')!
+ expect(shift.inputs).toEqual({ model: [unetId, 0], shift_video: 10, shift_audio: 3 })
+ const [sparseId, sparse] = nodeOf(wf, 'BlockSparseAttention')!
+ // DynamicCombo inputs go over the API as "name" plus "name.child".
+ expect(sparse.inputs).toMatchObject({
+ model: [shiftId, 0], selection: 'vsa', 'selection.keep_percent': 10,
+ start_percent: 0.2, end_percent: 1, dense_blocks: '', min_tokens: 12288, extra_tokens: 256,
+ sink_conditioning: 'exact_kv_and_rows', verbose: false,
+ })
+ expect(nodeOf(wf, 'BasicGuider')![1].inputs.model).toEqual([sparseId, 0])
+ expect(nodeOf(wf, 'BasicScheduler')![1].inputs.model).toEqual([sparseId, 0])
+ })
+
+ it('runs exactly 8 steps on res_multistep, whatever the slider says', async () => {
+ const wf = await buildDynamicWorkflow(run(FAST, { steps: 30 }), 'minimaxh3')
+ expect(nodeOf(wf, 'BasicScheduler')![1].inputs).toMatchObject({ scheduler: 'simple', steps: 8, denoise: 1 })
+ expect(nodeOf(wf, 'KSamplerSelect')![1].inputs.sampler_name).toBe('res_multistep')
+ })
+
+ it('keeps the H3 wiring: encode node, joint latent, both decoders, sound muxed', async () => {
+ const wf = await buildDynamicWorkflow(run(FAST), 'minimaxh3')
+ const [encId, enc] = nodeOf(wf, 'MiniMaxH3ImageToVideo')!
+ expect(enc.inputs).toMatchObject({ width: 1344, height: 768, length: 124 })
+ expect(enc.inputs.first_frame).toBeUndefined()
+ expect(nodeOf(wf, 'SamplerCustomAdvanced')![1].inputs.latent_image).toEqual([encId, 1])
+ expect(nodeOf(wf, 'CreateVideo')![1].inputs.audio).toEqual([nodeOf(wf, 'VAEDecodeAudio')![0], 0])
+ })
+
+ it('the base H3 graph is untouched: no shift, no sparse attention, the slider counts', async () => {
+ const wf = await buildDynamicWorkflow(run(BASE), 'minimaxh3')
+ expect(nodeOf(wf, 'MiniMaxH3SigmaShift')).toBeUndefined()
+ expect(nodeOf(wf, 'BlockSparseAttention')).toBeUndefined()
+ expect(nodeOf(wf, 'BasicScheduler')![1].inputs.steps).toBe(20)
+ expect(nodeOf(wf, 'BasicGuider')![1].inputs.model).toEqual([nodeOf(wf, 'UNETLoader')![0], 0])
+ })
+
+ it('a start image is refused with a sentence, FastH3 was not distilled for it', async () => {
+ const err = await buildDynamicWorkflow(run(FAST, { inputImage: 'still.png' }), 'minimaxh3').catch((e) => e)
+ expect(err).toBeInstanceOf(WorkflowUnavailableError)
+ expect(String(err.message)).toMatch(/prompt only/)
+ })
+})
+
+describe('the version lock is per model', () => {
+ it('without BlockSparseAttention (older than 0.35.0) FastH3 gets its update sentence', async () => {
+ const old = { ...NODES }
+ delete old.BlockSparseAttention
+ vi.mocked(getAllNodeInfo).mockResolvedValue(old as never)
+ expect(FASTH3_NEEDS_UPDATE).toBe('FastH3 needs ComfyUI 0.35.0 or newer. Update ComfyUI in Settings.')
+ const err = await buildDynamicWorkflow(run(FAST), 'minimaxh3').catch((e) => e)
+ expect(err).toBeInstanceOf(WorkflowUnavailableError)
+ expect(err.message).toBe(FASTH3_NEEDS_UPDATE)
+ expect(err.needsComfyUpdate).toBe(true)
+ })
+
+ it('and the same install still runs the base MiniMax H3', async () => {
+ const old = { ...NODES }
+ delete old.BlockSparseAttention
+ vi.mocked(getAllNodeInfo).mockResolvedValue(old as never)
+ const wf = await buildDynamicWorkflow(run(BASE), 'minimaxh3')
+ expect(nodeOf(wf, 'MiniMaxH3ImageToVideo')).toBeDefined()
+ })
+})
diff --git a/src/api/__tests__/get-target-is-a-folder-we-read.test.ts b/src/api/__tests__/get-target-is-a-folder-we-read.test.ts
index 8bce7124..bd319f9f 100644
--- a/src/api/__tests__/get-target-is-a-folder-we-read.test.ts
+++ b/src/api/__tests__/get-target-is-a-folder-we-read.test.ts
@@ -72,6 +72,7 @@ const SCANS: Record<string, string[]> = {
loras: ['models/loras'],
controlnet: ['models/controlnet'],
upscale_models: ['models/upscale_models'],
+ latent_upscale_models: ['models/latent_upscale_models'],
style_models: ['models/style_models'],
}
@@ -117,6 +118,7 @@ function serve(root: string) {
if (url.includes('AudioEncoderLoader')) return combo('AudioEncoderLoader', 'audio_encoder_name', listFor(root, 'audio_encoders', false))
if (url.includes('LoraLoader')) return combo('LoraLoader', 'lora_name', listFor(root, 'loras', false))
if (url.includes('ControlNetLoader')) return combo('ControlNetLoader', 'control_net_name', listFor(root, 'controlnet', false))
+ if (url.includes('LatentUpscaleModelLoader')) return combo('LatentUpscaleModelLoader', 'model_name', listFor(root, 'latent_upscale_models', false))
if (url.includes('UpscaleModelLoader')) return combo('UpscaleModelLoader', 'model_name', listFor(root, 'upscale_models', false))
if (url.includes('StyleModelLoader')) return combo('StyleModelLoader', 'style_model_name', listFor(root, 'style_models', false))
if (url.includes('ADE_LoadAnimateDiffModel')) {
diff --git a/src/api/__tests__/hf-live-probe.ts b/src/api/__tests__/hf-live-probe.ts
index 706177ae..bc77800b 100644
--- a/src/api/__tests__/hf-live-probe.ts
+++ b/src/api/__tests__/hf-live-probe.ts
@@ -77,6 +77,19 @@ export async function alleKlopfen(urls: Iterable<string>): Promise<Map<string, H
* einen Eintrag hier ablegt, muss den Grund im Katalog selbst dokumentieren.
*/
export const BEKANNT_TOT: Record<string, string> = {
+ // LTX 2.5: Lightricks/LTX-2.5 is a gated repo (HTTP 401 without a token and an
+ // accepted licence). A user with a Hugging Face token (Settings, AI Backends)
+ // downloads it; an anonymous HEAD cannot. Begruendung beim Bundle in model-bundles.ts.
+ ...Object.fromEntries([
+ 'diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors',
+ 'text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors',
+ 'vae/ltx-2.5-video-vae-bf16.safetensors',
+ 'vae/ltx-2.5-audio-vae-bf16.safetensors',
+ 'latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors',
+ ].map((f) => [
+ `https://huggingface.co/Lightricks/LTX-2.5/resolve/main/${f}`,
+ 'Gated repo (HTTP 401 ohne Token und akzeptierte Lizenz), mit Token ladbar · Begruendung bei den Eintraegen in model-bundles.ts',
+ ])),
'https://huggingface.co/huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-GGUF/resolve/main/DeepSeek-V4-Flash-UD-IQ1_M.gguf':
'Repo privat oder geloescht (HTTP 401), kein geprueftes Ersatz-Repo · Begruendung bei den Eintraegen in discover.ts',
'https://huggingface.co/huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-GGUF/resolve/main/ggml-model-Q3_K_S.gguf':
diff --git a/src/api/__tests__/ltx-25-is-a-video-model-with-sound.test.ts b/src/api/__tests__/ltx-25-is-a-video-model-with-sound.test.ts
new file mode 100644
index 00000000..3c654f8f
--- /dev/null
+++ b/src/api/__tests__/ltx-25-is-a-video-model-with-sound.test.ts
@@ -0,0 +1,346 @@
+/**
+ * LTX 2.5 (Lightricks, open weights since 11.08.2026) in the local Video and
+ * Animate lanes. The graph follows the official Comfy-Org templates
+ * video_ltx2_5_t2v and video_ltx2_5_i2v (workflow_templates, read 2026-10-02):
+ * two sampling passes with a latent upscale in between, picture and sound in
+ * one joint latent, CreateVideo muxing both.
+ *
+ * Run: npx vitest run src/api/__tests__/ltx-25-is-a-video-model-with-sound.test.ts
+ */
+import { describe, it, expect, vi, beforeEach } from 'vitest'
+
+vi.mock('../comfyui-nodes', async (importOriginal) => {
+ const actual = await importOriginal<typeof import('../comfyui-nodes')>()
+ return { ...actual, getAllNodeInfo: vi.fn() }
+})
+vi.mock('../backend', async (importOriginal) => {
+ const actual = await importOriginal<typeof import('../backend')>()
+ return { ...actual, localFetch: vi.fn(), comfyuiUrl: (p: string) => `http://test${p}` }
+})
+
+import {
+ buildDynamicWorkflow, determineStrategy, snapLtx25Length, WorkflowUnavailableError, LTX25_NEEDS_UPDATE,
+} from '../dynamic-workflow'
+import { categorizeNodes, detectAvailableModels, getAllNodeInfo } from '../comfyui-nodes'
+import {
+ classifyModel, isImageModelType, isVideoModelType, isI2VModel, isT2VCapable, findMatchingCLIP, findMatchingVAE,
+ COMPONENT_REGISTRY, MODEL_TYPE_DEFAULTS, COMFY_MODEL_FOLDERS,
+} from '../comfyui'
+import { resolveI2VResolution } from '../vram-handoff'
+import { getVideoBundles } from '../discover'
+import { localFetch } from '../backend'
+import { nodeOf, nodesOf } from './graph-test-support'
+
+const DIT = 'ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors'
+const DEV = 'ltx-2.5-22b-dev-transformer-comfy-int8-convrot.safetensors'
+const ENCODER = 'gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors'
+const VIDEO_VAE = 'ltx-2.5-video-vae-bf16.safetensors'
+const AUDIO_VAE = 'ltx-2.5-audio-vae-bf16.safetensors'
+const UPSCALER = 'ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors'
+
+const LTX25_NODES: Record<string, unknown> = {
+ UNETLoader: { input: { required: { unet_name: [[DIT, DEV]] } } },
+ CLIPLoader: { input: { required: { clip_name: [[ENCODER]] } } },
+ VAELoader: { input: { required: { vae_name: [[VIDEO_VAE, AUDIO_VAE]] } } },
+ LatentUpscaleModelLoader: { input: { required: { model_name: [[UPSCALER]] } } },
+ CLIPTextEncode: { input: { required: {} } },
+ LTXVConditioning: { input: { required: {} } },
+ EmptyLTXVLatentVideo: { input: { required: {} } },
+ LTXVEmptyLatentAudio: { input: { required: {} } },
+ LTXVConcatAVLatent: { input: { required: {} } },
+ LTXVSeparateAVLatent: { input: { required: {} } },
+ LTXVLatentUpsampler: { input: { required: {} } },
+ LTXVAudioVAEDecode: { input: { required: {} } },
+ LTXVDualCFGGuider: { input: { required: {} } },
+ LTXVImgToVideoInplace: { input: { required: {} } },
+ LTXVPreprocess: { input: { required: {} } },
+ ManualSigmas: { input: { required: {} } },
+ KSamplerSelect: { input: { required: {} } },
+ RandomNoise: { input: { required: {} } },
+ SamplerCustomAdvanced: { input: { required: {} } },
+ VAEDecodeTiled: { input: { required: {} } },
+ LoadImage: { input: { required: {} } },
+ ImageScale: { input: { required: {} } },
+ CreateVideo: { input: { required: {} } },
+ SaveVideo: { input: { required: {} } },
+}
+
+function serveEnums(vaes: string[], clips: string[]) {
+ vi.mocked(localFetch).mockResolvedValue({
+ ok: true,
+ json: async () => ({
+ CLIPLoader: { input: { required: { clip_name: [clips] } } },
+ VAELoader: { input: { required: { vae_name: [vaes] } } },
+ }),
+ } as never)
+}
+
+const run = (model: string, extra: Record<string, unknown> = {}) => ({
+ model, prompt: 'two rangers argue at a campfire, then a cut to the lake at dawn', negativePrompt: '',
+ sampler: 'euler_ancestral', scheduler: 'simple', steps: 8, cfgScale: 1,
+ width: 1280, height: 704, seed: 7, batchSize: 1, frames: 121, fps: 24, ...extra,
+}) as never
+
+beforeEach(() => {
+ vi.mocked(getAllNodeInfo).mockResolvedValue(LTX25_NODES as never)
+ serveEnums([VIDEO_VAE, AUDIO_VAE], [ENCODER])
+})
+
+describe('LTX 2.5 is its own family, not LTX 2.3', () => {
+ it('the 2.5 files classify as ltx25, the 2.3 file stays ltx', () => {
+ expect(classifyModel(DIT)).toBe('ltx25')
+ expect(classifyModel('ltx2.5_distilled.safetensors')).toBe('ltx25')
+ expect(classifyModel('LTX_2_5_civitai_repack.safetensors')).toBe('ltx25')
+ expect(classifyModel('ltx-2.3-22b-distilled-fp8.safetensors')).toBe('ltx')
+ expect(classifyModel('ltx-video-2b-v0.9.5.safetensors')).toBe('ltx')
+ })
+
+ it('lands in the video lane for text and for a start image, never in the image picker', () => {
+ expect(isVideoModelType('ltx25')).toBe(true)
+ expect(isImageModelType('ltx25')).toBe(false)
+ expect(isI2VModel(DIT)).toBe(true)
+ expect(isT2VCapable(DIT)).toBe(true)
+ })
+
+ it('has defaults on the 64 pixel grid, 8k+1 frames and the template fps', () => {
+ const d = MODEL_TYPE_DEFAULTS.ltx25
+ expect(d.width % 64).toBe(0)
+ expect(d.height % 64).toBe(0)
+ expect((d.frames - 1) % 8).toBe(0)
+ expect(d.fps).toBe(24)
+ })
+
+ it('frame counts snap to the 8k+1 grid', () => {
+ expect(snapLtx25Length(121)).toBe(121)
+ expect(snapLtx25Length(120)).toBe(121)
+ expect(snapLtx25Length(97)).toBe(97)
+ expect(snapLtx25Length(100)).toBe(97)
+ expect(snapLtx25Length(1)).toBe(9)
+ expect(snapLtx25Length(Number.NaN)).toBe(121)
+ })
+
+ it('a portrait still gets a portrait canvas in the chat tool', () => {
+ expect(resolveI2VResolution('ltx25', 0, 0)).toEqual({ width: 1280, height: 704 })
+ const portrait = resolveI2VResolution('ltx25', 720, 1280)
+ expect(portrait.height).toBeGreaterThan(portrait.width)
+ expect(portrait.width % 64).toBe(0)
+ expect(portrait.height % 64).toBe(0)
+ })
+})
+
+describe('the Model Manager offers every file of the official template', () => {
+ const bundle = () => getVideoBundles().find((b) => b.workflow === 'ltx25')!
+
+ it('five files, from the official repo, in the folders the loaders read', () => {
+ expect(bundle().files.map((f) => [f.filename, f.subfolder])).toEqual([
+ [DIT, 'diffusion_models'],
+ [ENCODER, 'text_encoders'],
+ [VIDEO_VAE, 'vae'],
+ [AUDIO_VAE, 'vae'],
+ [UPSCALER, 'latent_upscale_models'],
+ ])
+ for (const f of bundle().files) {
+ expect(f.downloadUrl).toBe(`https://huggingface.co/Lightricks/LTX-2.5/resolve/main/${f.subfolder}/${f.filename}`)
+ expect(f.sizeGB).toBeGreaterThan(0)
+ }
+ })
+
+ it('sizes are the Hugging Face byte counts of 2026-10-02 in GiB and add up to the total', () => {
+ const bytes: Record<string, number> = {
+ [DIT]: 21504034224, [ENCODER]: 15372969374, [VIDEO_VAE]: 1472223346, [AUDIO_VAE]: 364866540, [UPSCALER]: 995778752,
+ }
+ let sum = 0
+ for (const f of bundle().files) {
+ expect(f.sizeGB!, f.filename).toBeCloseTo(bytes[f.filename!] / 1_073_741_824, 2)
+ sum += f.sizeGB!
+ }
+ expect(bundle().totalSizeGB).toBeCloseTo(sum, 1)
+ })
+
+ it('is a best-tier bundle that says what the gate needs', () => {
+ expect(bundle().tier).toBe('best')
+ expect(bundle().description).toMatch(/Hugging Face token/)
+ })
+
+ it('the latent upscaler folder is one the app reads back', () => {
+ expect(COMFY_MODEL_FOLDERS.map((f) => f.subfolder)).toContain('latent_upscale_models')
+ })
+
+ it('the registry can fetch every companion the builder looks for', () => {
+ const r = COMPONENT_REGISTRY.ltx25
+ expect([r.vae, r.clip, r.audioVae, r.upscaler].map((s) => s?.downloadFilename)).toEqual([VIDEO_VAE, ENCODER, AUDIO_VAE, UPSCALER])
+ })
+})
+
+describe('the graph follows the official templates', () => {
+ it('text to video: both passes, the upscale between them, sound muxed into the video', async () => {
+ const wf = await buildDynamicWorkflow(run(DIT), 'ltx25')
+
+ // Loaders.
+ expect(nodeOf(wf, 'UNETLoader')![1].inputs.unet_name).toBe(DIT)
+ expect(nodeOf(wf, 'CLIPLoader')![1].inputs).toMatchObject({ clip_name: ENCODER, type: 'ltxv' })
+ const vaeOf = (id: unknown) => wf[(id as [string, number])[0]]?.inputs?.vae_name
+ expect(nodesOf(wf, 'VAELoader').map(([, n]) => n.inputs.vae_name).sort()).toEqual([AUDIO_VAE, VIDEO_VAE].sort())
+ expect(nodeOf(wf, 'LatentUpscaleModelLoader')![1].inputs.model_name).toBe(UPSCALER)
+
+ // Pass 1 starts HALF size, with an empty sound latent of the same length.
+ const [emptyId, empty] = nodeOf(wf, 'EmptyLTXVLatentVideo')!
+ expect(empty.inputs).toMatchObject({ width: 640, height: 352, length: 121, batch_size: 1 })
+ const [audioEmptyId, audioEmpty] = nodeOf(wf, 'LTXVEmptyLatentAudio')!
+ expect(audioEmpty.inputs).toMatchObject({ frames_number: 121, frame_rate: 24, batch_size: 1 })
+ expect(vaeOf(audioEmpty.inputs.audio_vae)).toBe(AUDIO_VAE)
+
+ const concats = nodesOf(wf, 'LTXVConcatAVLatent')
+ expect(concats).toHaveLength(2)
+ expect(concats[0][1].inputs).toMatchObject({ video_latent: [emptyId, 0], audio_latent: [audioEmptyId, 0] })
+
+ // Two samplers, the template's two sigma ladders and euler_ancestral.
+ const samplers = nodesOf(wf, 'SamplerCustomAdvanced')
+ expect(samplers).toHaveLength(2)
+ const sigmas = (id: unknown) => wf[(id as [string, number])[0]].inputs!.sigmas
+ expect(sigmas(samplers[0][1].inputs.sigmas)).toBe('1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0')
+ expect(sigmas(samplers[1][1].inputs.sigmas)).toBe('0.85, 0.7250, 0.4219, 0.0')
+ for (const [, s] of samplers) {
+ const pick = wf[(s.inputs.sampler as [string, number])[0]]
+ expect(pick.class_type).toBe('KSamplerSelect')
+ expect(pick.inputs!.sampler_name).toBe('euler_ancestral')
+ const guider = wf[(s.inputs.guider as [string, number])[0]]
+ expect(guider.class_type).toBe('LTXVDualCFGGuider')
+ expect(guider.inputs).toMatchObject({ video_cfg: 1, audio_cfg: 1 })
+ }
+ expect(samplers[0][1].inputs.latent_image).toEqual([concats[0][0], 0])
+ expect(samplers[1][1].inputs.latent_image).toEqual([concats[1][0], 0])
+
+ // Between them: split, upscale the picture, keep the sound, join again.
+ const splits = nodesOf(wf, 'LTXVSeparateAVLatent')
+ expect(splits).toHaveLength(2)
+ expect(splits[0][1].inputs.av_latent).toEqual([samplers[0][0], 0])
+ const [upId, up] = nodeOf(wf, 'LTXVLatentUpsampler')!
+ expect(up.inputs.samples).toEqual([splits[0][0], 0])
+ expect(up.inputs.upscale_model).toEqual([nodeOf(wf, 'LatentUpscaleModelLoader')![0], 0])
+ expect(vaeOf(up.inputs.vae)).toBe(VIDEO_VAE)
+ expect(concats[1][1].inputs).toMatchObject({ video_latent: [upId, 0], audio_latent: [splits[0][0], 1] })
+
+ // Output: tiled picture decode + audio decode, one CreateVideo with sound.
+ expect(splits[1][1].inputs.av_latent).toEqual([samplers[1][0], 0])
+ const decode = nodeOf(wf, 'VAEDecodeTiled')![1].inputs
+ expect(decode).toMatchObject({ samples: [splits[1][0], 0], tile_size: 512, overlap: 64, temporal_size: 64, temporal_overlap: 16 })
+ expect(vaeOf(decode.vae)).toBe(VIDEO_VAE)
+ const [audioDecodeId, audioDecode] = nodeOf(wf, 'LTXVAudioVAEDecode')!
+ expect(audioDecode.inputs.samples).toEqual([splits[1][0], 1])
+ expect(vaeOf(audioDecode.inputs.audio_vae)).toBe(AUDIO_VAE)
+ const create = nodeOf(wf, 'CreateVideo')![1].inputs
+ expect(create.fps).toBe(24)
+ expect(create.audio).toEqual([audioDecodeId, 0])
+ expect(nodeOf(wf, 'SaveVideo')![1].inputs.video).toEqual([nodeOf(wf, 'CreateVideo')![0], 0])
+
+ // Not the 2.3 pipeline.
+ expect(nodeOf(wf, 'KSampler')).toBeUndefined()
+ expect(nodeOf(wf, 'CheckpointLoaderSimple')).toBeUndefined()
+ expect(nodeOf(wf, 'LTXVImgToVideoInplace')).toBeUndefined()
+ })
+
+ it('the prompt reaches the encoder and the encoder reaches the conditioning of both guiders', async () => {
+ const wf = await buildDynamicWorkflow(run(DIT), 'ltx25')
+ const texts = nodesOf(wf, 'CLIPTextEncode')
+ expect(texts[0][1].inputs.text).toMatch(/two rangers/)
+ const cond = nodeOf(wf, 'LTXVConditioning')!
+ expect(cond[1].inputs).toMatchObject({ positive: [texts[0][0], 0], negative: [texts[1][0], 0], frame_rate: 24 })
+ for (const [, g] of nodesOf(wf, 'LTXVDualCFGGuider')) {
+ expect(g.inputs).toMatchObject({ positive: [cond[0], 0], negative: [cond[0], 1], model: [nodeOf(wf, 'UNETLoader')![0], 0] })
+ }
+ })
+
+ it('a start image is cut to the canvas and pinned into the first frame in both passes', async () => {
+ const wf = await buildDynamicWorkflow(run(DIT, { inputImage: 'still.png' }), 'ltx25')
+ const [scaleId, scale] = nodeOf(wf, 'ImageScale')!
+ expect(scale.inputs).toMatchObject({ width: 1280, height: 704, crop: 'center' })
+ const [prepId, prep] = nodeOf(wf, 'LTXVPreprocess')!
+ expect(prep.inputs).toMatchObject({ image: [scaleId, 0], img_compression: 18 })
+ const pins = nodesOf(wf, 'LTXVImgToVideoInplace')
+ expect(pins).toHaveLength(2)
+ // Pass 1: onto the empty half size latent at 0.7. Pass 2: onto the upscaled latent at 1.
+ expect(pins[0][1].inputs).toMatchObject({ image: [prepId, 0], latent: [nodeOf(wf, 'EmptyLTXVLatentVideo')![0], 0], strength: 0.7, bypass: false })
+ expect(pins[1][1].inputs).toMatchObject({ image: [prepId, 0], latent: [nodeOf(wf, 'LTXVLatentUpsampler')![0], 0], strength: 1, bypass: false })
+ const concats = nodesOf(wf, 'LTXVConcatAVLatent')
+ expect(concats[0][1].inputs.video_latent).toEqual([pins[0][0], 0])
+ expect(concats[1][1].inputs.video_latent).toEqual([pins[1][0], 0])
+ })
+
+ it('odd sizes and frame counts are snapped onto the grids the model needs', async () => {
+ const wf = await buildDynamicWorkflow(run(DIT, { width: 1000, height: 600, frames: 100, fps: 25 }), 'ltx25')
+ expect(nodeOf(wf, 'EmptyLTXVLatentVideo')![1].inputs).toMatchObject({ width: 512, height: 288, length: 97 })
+ expect(nodeOf(wf, 'LTXVEmptyLatentAudio')![1].inputs).toMatchObject({ frames_number: 97, frame_rate: 25 })
+ expect(nodeOf(wf, 'CreateVideo')![1].inputs.fps).toBe(25)
+ })
+
+ it('the dev weights are refused with a sentence, the distilled graph would give noise', async () => {
+ const err = await buildDynamicWorkflow(run(DEV), 'ltx25').catch((e) => e)
+ expect(err).toBeInstanceOf(WorkflowUnavailableError)
+ expect(String(err.message)).toMatch(/distilled/)
+ })
+})
+
+describe('the version lock is per model', () => {
+ it('an install without LTXVDualCFGGuider (older than 0.32.0) gets the update sentence, in strategy and in the builder', async () => {
+ const old = { ...LTX25_NODES }
+ delete old.LTXVDualCFGGuider
+ expect(LTX25_NEEDS_UPDATE).toBe('LTX 2.5 needs ComfyUI 0.32.0 or newer. Update ComfyUI in Settings.')
+ const cats = categorizeNodes(old as never)
+ const st = determineStrategy('ltx25', true, cats, detectAvailableModels(old as never))
+ expect(st.strategy).toBe('unavailable')
+ expect(st.reason).toBe(LTX25_NEEDS_UPDATE)
+
+ vi.mocked(getAllNodeInfo).mockResolvedValue(old as never)
+ const err = await buildDynamicWorkflow(run(DIT), 'ltx25').catch((e) => e)
+ expect(err).toBeInstanceOf(WorkflowUnavailableError)
+ expect(err.message).toBe(LTX25_NEEDS_UPDATE)
+ expect(err.needsComfyUpdate).toBe(true)
+ })
+
+ it('and a current install gets the lane', () => {
+ const st = determineStrategy('ltx25', true, categorizeNodes(LTX25_NODES as never), detectAvailableModels(LTX25_NODES as never))
+ expect(st.strategy).toBe('ltx25')
+ })
+
+ it('LTX 2.3 is not held to 0.32.0: its own lane still runs without the 2.5 guider', () => {
+ const old = { ...LTX25_NODES }
+ delete old.LTXVDualCFGGuider
+ old.EmptyLTXVLatentVideo = { input: { required: {} } }
+ const st = determineStrategy('ltx', true, categorizeNodes(old as never), detectAvailableModels(old as never))
+ expect(st.strategy).toBe('unet_ltx')
+ })
+
+ it('a missing companion file is named and carries its download', async () => {
+ serveEnums([VIDEO_VAE], [ENCODER])
+ const err = await buildDynamicWorkflow(run(DIT), 'ltx25').catch((e) => e)
+ expect(err).toBeInstanceOf(WorkflowUnavailableError)
+ expect(String(err.message)).toMatch(/ltx-2\.5-audio-vae-bf16/)
+ expect(err.missing.map((m: { downloadFilename: string }) => m.downloadFilename)).toEqual([AUDIO_VAE])
+ })
+
+ it('a missing upscaler is named and carries its download', async () => {
+ const noUp = { ...LTX25_NODES, LatentUpscaleModelLoader: { input: { required: { model_name: [[]] } } } }
+ vi.mocked(getAllNodeInfo).mockResolvedValue(noUp as never)
+ const err = await buildDynamicWorkflow(run(DIT), 'ltx25').catch((e) => e)
+ expect(err.missing.map((m: { downloadFilename: string }) => m.downloadFilename)).toEqual([UPSCALER])
+ })
+})
+
+describe('the LTX 2.5 files stay out of the other families', () => {
+ it('LTX 2.3 takes Gemma 3 and its own VAE, never the 2.5 files', async () => {
+ serveEnums([VIDEO_VAE, AUDIO_VAE, 'ltx-2.3-video-vae.safetensors'], [ENCODER, 'gemma_3_12B_it_fp8_scaled.safetensors'])
+ expect(await findMatchingCLIP('ltx', 'ltx-2.3-22b-distilled-fp8.safetensors')).toBe('gemma_3_12B_it_fp8_scaled.safetensors')
+ expect(await findMatchingVAE('ltx')).toBe('ltx-2.3-video-vae.safetensors')
+ serveEnums([VIDEO_VAE], [ENCODER])
+ await expect(findMatchingCLIP('ltx', 'ltx-2.3-22b-distilled-fp8.safetensors')).rejects.toThrow(/gemma_3_12B/)
+ })
+
+ it('2.5 takes the video VAE for the picture and the LTX Gemma 4 with projection, and says what is missing', async () => {
+ expect(await findMatchingVAE('ltx25')).toBe(VIDEO_VAE)
+ expect(await findMatchingCLIP('ltx25', DIT)).toBe(ENCODER)
+ serveEnums(['ltx-2.5-video-vae-conv-bf16.safetensors', AUDIO_VAE], ['gemma4_12b_int8_convrot.safetensors'])
+ await expect(findMatchingVAE('ltx25')).rejects.toThrow(/ltx-2\.5-video-vae-bf16/)
+ await expect(findMatchingCLIP('ltx25', DIT)).rejects.toThrow(/gemma4-12b-with-proj-ltx-2\.5/)
+ })
+})
diff --git a/src/api/__tests__/wrapper-node-names.test.ts b/src/api/__tests__/wrapper-node-names.test.ts
index 786271dd..c56ba582 100644
--- a/src/api/__tests__/wrapper-node-names.test.ts
+++ b/src/api/__tests__/wrapper-node-names.test.ts
@@ -67,6 +67,23 @@ const CORE_NODES = new Set([
// nodes.py's extras. Both read in ComfyUI master on 2026-10-01.
'KSampler', 'BasicGuider', 'BasicScheduler', 'KSamplerSelect', 'RandomNoise', 'SamplerCustomAdvanced',
'MiniMaxH3ImageToVideo', 'MiniMaxH3ReferenceToVideo',
+ // Read in Comfy-Org/ComfyUI at tag v0.38.0 on 2026-10-02 (schema node_id of
+ // each, the file in brackets, the first release that has it):
+ // LTX 2.5, all in comfy_extras/nodes_lt.py unless noted:
+ // LTXVConditioning, LTXVDualCFGGuider (0.32.0, the version marker),
+ // LTXVImgToVideoInplace, LTXVPreprocess, LTXVConcatAVLatent,
+ // LTXVSeparateAVLatent; LTXVEmptyLatentAudio and LTXVAudioVAEDecode
+ // [nodes_lt_audio.py]; LTXVLatentUpsampler [nodes_lt_upsampler.py];
+ // LatentUpscaleModelLoader [nodes_hunyuan.py]; ManualSigmas
+ // [nodes_custom_sampler.py].
+ // FastH3: MiniMaxH3SigmaShift [nodes_minimax_h3.py], BlockSparseAttention
+ // [nodes_sparse_attention.py, 0.35.0].
+ // YuE2: YuE2GenerateMusic, EmptyYuE2LatentAudio [nodes_yue2.py, 0.36.0].
+ 'LTXVConditioning', 'LTXVDualCFGGuider', 'LTXVImgToVideoInplace', 'LTXVPreprocess', 'LTXVConcatAVLatent',
+ 'LTXVSeparateAVLatent', 'LTXVEmptyLatentAudio', 'LTXVAudioVAEDecode', 'LTXVLatentUpsampler',
+ 'LatentUpscaleModelLoader', 'ManualSigmas',
+ 'MiniMaxH3SigmaShift', 'BlockSparseAttention',
+ 'YuE2GenerateMusic', 'EmptyYuE2LatentAudio',
// lora
'LoraLoader', 'LoraLoaderModelOnly',
// decode + image ops
@@ -116,6 +133,8 @@ function emittedClassTypes(): string[] {
const src = readFileSync(BUILDER_SRC, 'utf8')
const out = new Set<string>()
for (const m of src.matchAll(/class_type:\s*'([A-Za-z0-9_]+)'/g)) out.add(m[1])
+ // The LTX 2.5 builder adds nodes through a local add('Class', {...}) helper.
+ for (const m of src.matchAll(/\badd\('([A-Za-z0-9_]+)',/g)) out.add(m[1])
return [...out].sort()
}
diff --git a/src/api/__tests__/yue2-is-the-second-music-model.test.ts b/src/api/__tests__/yue2-is-the-second-music-model.test.ts
new file mode 100644
index 00000000..a2af171c
--- /dev/null
+++ b/src/api/__tests__/yue2-is-the-second-music-model.test.ts
@@ -0,0 +1,149 @@
+/**
+ * YuE2 (m-a-p, ComfyUI nodes since 0.36.0) as the second local music model
+ * next to ACE Step. Songs with vocals from a style and lyrics. The graph is the
+ * official Comfy-Org template audio_yue2_text2music with ABC planning off
+ * (workflow_templates and comfy_extras/nodes_yue2.py, read 2026-10-02).
+ *
+ * Run: npx vitest run src/api/__tests__/yue2-is-the-second-music-model.test.ts
+ */
+import { describe, it, expect, vi, beforeEach } from 'vitest'
+
+vi.mock('../backend', async (importOriginal) => {
+ const actual = await importOriginal<typeof import('../backend')>()
+ return { ...actual, localFetch: vi.fn(), comfyuiUrl: (p: string) => `http://test${p}` }
+})
+
+import { buildMusicWorkflow, WorkflowUnavailableError, YUE2_NEEDS_UPDATE, type LocalOpParams } from '../dynamic-workflow'
+import {
+ classifyModel, getAudioModels, getImageModels, isImageModelType, isVideoModelType, MODEL_TYPE_DEFAULTS,
+} from '../comfyui'
+import { getAudioBundles } from '../discover'
+import { localFetch } from '../backend'
+import { nodeOf } from './graph-test-support'
+
+const YUE = 'yue2_3b_int8_convrot.safetensors'
+const ACE = 'ace_step_1.5_turbo_aio.safetensors'
+
+const NODES: Record<string, object> = Object.fromEntries([
+ 'YuE2GenerateMusic', 'EmptyYuE2LatentAudio', 'ConditioningZeroOut', 'KSampler', 'VAEDecodeAudio', 'SaveAudioMP3',
+ 'TextEncodeAceStepAudio1.5', 'EmptyAceStep1.5LatentAudio', 'ModelSamplingSD3',
+].map((n) => [n, {}]))
+
+const params = (extra: Partial<LocalOpParams> = {}): LocalOpParams => ({
+ op: 'music', model: YUE, prompt: 'warm indie pop, female vocals, bright guitars', seed: 7, steps: 50, cfgScale: 5,
+ sampler: 'euler', scheduler: 'simple', width: 1024, height: 1024, frames: 1, fps: 1, seconds: 90,
+ lyrics: '[Verse]\nMorning light across the window\n[Chorus]\nRun with me into the sunlight', ...extra,
+})
+
+describe('YuE2 is a music model', () => {
+ it('the checkpoint classifies as yue2: not an image, not a video model, not ACE', () => {
+ for (const name of [YUE, 'yue2_3b_bf16.safetensors', 'YuE-2-3B.safetensors']) {
+ expect(classifyModel(name), name).toBe('yue2')
+ }
+ expect(classifyModel(ACE)).toBe('ace')
+ expect(isImageModelType('yue2')).toBe(false)
+ expect(isVideoModelType('yue2')).toBe(false)
+ expect(MODEL_TYPE_DEFAULTS.yue2.steps).toBe(32)
+ })
+
+ it('the music picker lists YuE2 next to ACE, the image picker lists neither', async () => {
+ const checkpoints = [ACE, YUE, 'juggernautXL_v9.safetensors']
+ vi.mocked(localFetch).mockImplementation(async (url: string) => {
+ const body = String(url).includes('CheckpointLoaderSimple')
+ ? { CheckpointLoaderSimple: { input: { required: { ckpt_name: [checkpoints] } } } }
+ : {}
+ return { ok: true, status: 200, json: async () => body } as never
+ })
+ const audio = await getAudioModels()
+ expect(audio.map((m) => [m.name, m.type])).toEqual([[ACE, 'ace'], [YUE, 'yue2']])
+ const images = (await getImageModels().catch(() => [])).map((m) => m.name)
+ expect(images).not.toContain(YUE)
+ expect(images).not.toContain(ACE)
+ })
+})
+
+describe('the Model Manager card', () => {
+ const bundle = () => getAudioBundles().find((b) => b.workflow === 'yue2')!
+
+ it('one all in one checkpoint from Comfy-Org/YuE2, with the sha256 Hugging Face states', () => {
+ expect(bundle().files).toHaveLength(1)
+ const f = bundle().files[0]
+ expect(f.downloadUrl).toBe(`https://huggingface.co/Comfy-Org/YuE2/resolve/main/checkpoints/${YUE}`)
+ expect(f.filename).toBe(YUE)
+ expect(f.subfolder).toBe('checkpoints')
+ expect(f.sizeGB).toBeCloseTo(3960938800 / 1_073_741_824, 2)
+ expect(f.sha256).toBe('96fe199377309001ed8cd26a944baeee8cc31a20ba7c36d1d3c0a7e1f4149db6')
+ expect(bundle().totalSizeGB).toBeCloseTo(f.sizeGB!, 1)
+ })
+
+ it('says it is non-commercial, best tier, and does not take the starter slot from ACE Step 1.5', () => {
+ expect(bundle().description).toMatch(/Non-commercial/)
+ expect(bundle().tier).toBe('best')
+ expect(getAudioBundles()[0].workflow).toBe('ace')
+ })
+})
+
+describe('the graph follows the official template', () => {
+ it('checkpoint, YuE2GenerateMusic (style, lyrics, no ABC), zeroed negative, latent of the made length, KSampler, audio decode', () => {
+ const wf = buildMusicWorkflow(params(), 7, NODES)
+ const [ckptId, ckpt] = nodeOf(wf, 'CheckpointLoaderSimple')!
+ expect(ckpt.inputs.ckpt_name).toBe(YUE)
+
+ const [musicId, music] = nodeOf(wf, 'YuE2GenerateMusic')!
+ expect(music.inputs).toMatchObject({
+ clip: [ckptId, 1], style: 'warm indie pop, female vocals, bright guitars', abc: '', seed: 7, mode: 'full',
+ max_duration: 90, temperature: 1, top_p: 0.95, top_k: 100, repetition_penalty: 1.2,
+ })
+ expect(String(music.inputs.lyrics)).toMatch(/Morning light/)
+
+ const [zeroId, zero] = nodeOf(wf, 'ConditioningZeroOut')!
+ expect(zero.inputs.conditioning).toEqual([musicId, 0])
+ const [latentId, latent] = nodeOf(wf, 'EmptyYuE2LatentAudio')!
+ expect(latent.inputs).toEqual({ seconds: [musicId, 1], batch_size: 1 })
+
+ const sampler = nodeOf(wf, 'KSampler')![1].inputs
+ expect(sampler).toMatchObject({
+ model: [ckptId, 0], positive: [musicId, 0], negative: [zeroId, 0], latent_image: [latentId, 0],
+ steps: 32, cfg: 1, sampler_name: 'dpm_2', scheduler: 'sgm_uniform', denoise: 1,
+ })
+
+ const [decodeId, decode] = nodeOf(wf, 'VAEDecodeAudio')!
+ expect(decode.inputs).toEqual({ samples: [nodeOf(wf, 'KSampler')![0], 0], vae: [ckptId, 2] })
+ expect(nodeOf(wf, 'SaveAudioMP3')![1].inputs.audio).toEqual([decodeId, 0])
+ })
+
+ it('the music sliders do not leak in: ACE steps and cfg are ignored, no ACE encoder is used', () => {
+ const wf = buildMusicWorkflow(params({ steps: 77, cfgScale: 9 }), 7, NODES)
+ expect(nodeOf(wf, 'KSampler')![1].inputs).toMatchObject({ steps: 32, cfg: 1 })
+ expect(nodeOf(wf, 'TextEncodeAceStepAudio1.5')).toBeUndefined()
+ expect(nodeOf(wf, 'ModelSamplingSD3')).toBeUndefined()
+ })
+
+ it('no lyrics means an empty lyrics input, the length is clamped', () => {
+ const wf = buildMusicWorkflow(params({ lyrics: '', seconds: 9999 }), 7, NODES)
+ expect(nodeOf(wf, 'YuE2GenerateMusic')![1].inputs).toMatchObject({ lyrics: '', max_duration: 600 })
+ })
+
+ it('ACE Step still builds its own graph, with the same nodes available', () => {
+ const wf = buildMusicWorkflow(params({ model: ACE }), 7, NODES)
+ expect(nodeOf(wf, 'TextEncodeAceStepAudio1.5')).toBeDefined()
+ expect(nodeOf(wf, 'YuE2GenerateMusic')).toBeUndefined()
+ })
+})
+
+describe('the version lock is per model', () => {
+ it('without the YuE2 nodes (older than 0.36.0) the update sentence, and ACE Step is not held to it', () => {
+ const old = { ...NODES }
+ delete old.YuE2GenerateMusic
+ delete old.EmptyYuE2LatentAudio
+ expect(YUE2_NEEDS_UPDATE).toBe('YuE2 needs ComfyUI 0.36.0 or newer. Update ComfyUI in Settings.')
+ let caught: unknown
+ try { buildMusicWorkflow(params(), 7, old) } catch (e) { caught = e }
+ expect(caught).toBeInstanceOf(WorkflowUnavailableError)
+ expect((caught as WorkflowUnavailableError).message).toBe(YUE2_NEEDS_UPDATE)
+ expect((caught as WorkflowUnavailableError).needsComfyUpdate).toBe(true)
+ expect(() => buildMusicWorkflow(params({ model: ACE }), 7, old)).not.toThrow()
+ })
+})
+
+beforeEach(() => { vi.mocked(localFetch).mockReset() })
diff --git a/src/api/comfyui-nodes.ts b/src/api/comfyui-nodes.ts
index 392ab50d..43e246ce 100644
--- a/src/api/comfyui-nodes.ts
+++ b/src/api/comfyui-nodes.ts
@@ -126,6 +126,10 @@ export function categorizeNodes(allNodes: Record<string, NodeMetadata>): Categor
KSampler: 'samplers',
KSamplerAdvanced: 'samplers',
SamplerCustom: 'samplers',
+ // LTX 2.5's guider for a joint picture-and-sound latent. New in ComfyUI
+ // 0.32.0, the same release as the LTX 2.5 model patch, so determineStrategy
+ // reads its presence as "this ComfyUI can run LTX 2.5".
+ LTXVDualCFGGuider: 'samplers',
// Wrapper samplers (custom nodes)
CogVideoXSampler: 'samplers',
FramePackSampler: 'samplers',
@@ -357,6 +361,7 @@ export async function getModelCapabilities(model: string): Promise<ModelCapabili
case 'wan':
case 'hunyuan':
case 'ltx':
+ case 'ltx25':
case 'mochi':
case 'cosmos': {
// The latent node types `length` as a generic INT (max ~10000) — meaningless
diff --git a/src/api/comfyui.ts b/src/api/comfyui.ts
index 73d8ef55..ee30aa1c 100644
--- a/src/api/comfyui.ts
+++ b/src/api/comfyui.ts
@@ -160,7 +160,7 @@ export function galleryTypeForFile(
// 2.5.8: ace / wans2v / wananimate / wanvace are the specialized local-lane
// architectures (music, talking character, motion control). They are neither
// image nor video picker material — each lane has its own model list.
-export type ModelType = 'flux' | 'flux2' | 'krea2' | 'zimage' | 'ernie_image' | 'qwenimage' | 'qwenimage1' | 'chroma' | 'hidream' | 'sd3' | 'lumina2' | 'sdxl' | 'sd15' | 'wan' | 'wan22' | 'hunyuan' | 'ltx' | 'mochi' | 'cosmos' | 'cogvideo' | 'svd' | 'framepack' | 'pyramidflow' | 'allegro' | 'ace' | 'wans2v' | 'wananimate' | 'wanvace' | 'animatediff' | 'minimaxh3' | 'unknown'
+export type ModelType = 'flux' | 'flux2' | 'krea2' | 'zimage' | 'ernie_image' | 'qwenimage' | 'qwenimage1' | 'chroma' | 'hidream' | 'sd3' | 'lumina2' | 'sdxl' | 'sd15' | 'wan' | 'wan22' | 'hunyuan' | 'ltx' | 'ltx25' | 'mochi' | 'cosmos' | 'cogvideo' | 'svd' | 'framepack' | 'pyramidflow' | 'allegro' | 'ace' | 'yue2' | 'wans2v' | 'wananimate' | 'wanvace' | 'animatediff' | 'minimaxh3' | 'unknown'
export type VideoBackend = 'wan' | 'animatediff' | 'none'
export interface ClassifiedModel {
@@ -233,6 +233,13 @@ const KNOWN_MODELS: Record<string, ModelType> = {
absolutereality: 'sd15',
}
+/** FastVideo's distilled MiniMax H3 (fastvideo_fasth3_8step_v2_*). A full
+ * checkpoint, not a LoRA, and it only does text to video: the model card says
+ * the first/last frame and reference tasks were not distilled. */
+export function isFastH3(name: string): boolean {
+ return name.toLowerCase().includes('fasth3')
+}
+
export function classifyModel(name: string | null | undefined): ModelType {
// Defensive: treat empty/missing names as unknown. Older installs can persist
// stale model strings that no longer exist; callers should not crash on those.
@@ -251,6 +258,10 @@ export function classifyModel(name: string | null | undefined): ModelType {
// would otherwise offer a motion module in the image picker).
if (lower.includes('animatediff')) return 'animatediff'
if (lower.includes('ace_step') || lower.includes('ace-step') || lower.includes('acestep')) return 'ace'
+ // YuE2 (Comfy-Org/YuE2, ComfyUI 0.36.0): an all in one music checkpoint
+ // that lives in models/checkpoints next to ACE Step, so it needs its own
+ // type or it would land in the image picker as 'unknown'.
+ if (/(^|[^a-z0-9])yue[._-]?2/.test(lower)) return 'yue2'
// Merged 14B "rapid AIO" builds (e.g. wan2.2-i2v-rapid-aio) are Wan 14B
// architecture: classic WanImageToVideo graph + wan_2.1_vae — NOT the
// TI2V-5B path the wan2.2 tag would otherwise route them onto.
@@ -259,7 +270,9 @@ export function classifyModel(name: string | null | undefined): ModelType {
// MiniMax H3 (Comfy-Org/MiniMax-H3): video with its own sound track, from
// text, a first/last frame (fl2va) or references (ref2va). Before every
// generic tag: its CivitAI repacks carry anything in their names.
- if (lower.includes('minimax_h3') || lower.includes('minimaxh3') || lower.includes('minimax-h3')) return 'minimaxh3'
+ // FastH3 (FastVideo's 8 step distillation of H3) is the same architecture
+ // under a file name that never says "minimax": fastvideo_fasth3_8step_v2_*.
+ if (lower.includes('minimax_h3') || lower.includes('minimaxh3') || lower.includes('minimax-h3') || isFastH3(lower)) return 'minimaxh3'
// Video models — most specific first (order matters: specific before generic)
if (lower.includes('cogvideo')) return 'cogvideo'
@@ -275,6 +288,9 @@ export function classifyModel(name: string | null | undefined): ModelType {
if (lower.includes('ti2v') || lower.includes('wan2.2') || lower.includes('wan2_2') || lower.includes('wan22')) return 'wan22'
if (lower.includes('wan')) return 'wan'
if (lower.includes('hunyuan')) return 'hunyuan'
+ // LTX 2.5 (Lightricks, Aug 2026) has its own two pass graph with sound, so
+ // it must beat the generic LTX match below, which is the 2.3 pipeline.
+ if (/ltx[._\- ]?2[._\- ]?5/.test(lower)) return 'ltx25'
if (lower.includes('ltx')) return 'ltx'
// ERNIE-Image (Baidu, uses flux2 CLIP type + ConditioningZeroOut for negative)
@@ -367,7 +383,7 @@ export function isImageModelType(type: ModelType): boolean {
}
export function isVideoModelType(type: ModelType): boolean {
- return type === 'wan' || type === 'wan22' || type === 'hunyuan' || type === 'ltx' || type === 'mochi' || type === 'cosmos'
+ return type === 'wan' || type === 'wan22' || type === 'hunyuan' || type === 'ltx' || type === 'ltx25' || type === 'mochi' || type === 'cosmos'
|| type === 'cogvideo' || type === 'svd' || type === 'framepack' || type === 'pyramidflow' || type === 'allegro'
|| type === 'minimaxh3'
}
@@ -381,6 +397,8 @@ export function isVideoModelType(type: ModelType): boolean {
*/
export function isI2VModel(name: string): boolean {
const lower = name.toLowerCase()
+ // FastH3 is text to video only (see isFastH3), whatever its H3 family says.
+ if (isFastH3(lower)) return false
return lower.includes('i2v') || lower.includes('svd') || lower.includes('framepack')
|| lower.includes('ti2v') || lower.includes('wan2.2') || lower.includes('wan2_2') || lower.includes('wan22')
|| lower.includes('ltx') || lower.includes('video2world') || classifyModel(name) === 'minimaxh3'
@@ -510,6 +528,12 @@ export const MODEL_TYPE_DEFAULTS: Record<string, ModelTypeDefaults> = {
wan22: { steps: 30, cfg: 5.0, sampler: 'euler', scheduler: 'simple', width: 1024, height: 576, frames: 49, fps: 24 },
hunyuan: { steps: 30, cfg: 6.0, sampler: 'euler', scheduler: 'normal', width: 848, height: 480, frames: 45, fps: 24 },
ltx: { steps: 20, cfg: 3.0, sampler: 'euler', scheduler: 'normal', width: 768, height: 512, frames: 97, fps: 24 },
+ // LTX 2.5 (official Comfy-Org templates video_ltx2_5_t2v / _i2v, read
+ // 2026-10-02): the distilled model runs two fixed sigma passes (8 steps, then
+ // 3) on euler_ancestral at CFG 1, so steps and sampler here are only what the
+ // sliders show. 1280x704 is the template's 16:9 canvas on the 64 pixel grid
+ // the half size first pass needs; 121 frames at 24 fps is its 5 second default.
+ ltx25: { steps: 8, cfg: 1.0, sampler: 'euler_ancestral', scheduler: 'simple', width: 1280, height: 704, frames: 121, fps: 24 },
// Official templates video_minimax_h3_t2v / _i2v (Comfy-Org/workflow_templates,
// read 2026-10-01): res_multistep / simple, 20 steps, BasicGuider (no CFG),
// 1344x768 native canvas, 24 fps, 124 frames is the node's ~5 s default.
@@ -530,6 +554,10 @@ export const MODEL_TYPE_DEFAULTS: Record<string, ModelTypeDefaults> = {
// ACE-Step music: width/height are unused by the audio graph but keep the
// shared param scaffolding happy; track length lives in musicDuration.
ace: { steps: 50, cfg: 5.0, sampler: 'euler', scheduler: 'simple', width: 1024, height: 1024, frames: 1, fps: 1 },
+ // YuE2 (official template audio_yue2_text2music): KSampler 32 steps, cfg 1,
+ // dpm_2 on sgm_uniform. The audio graph reads none of it from the sliders but
+ // the scaffold wants the fields.
+ yue2: { steps: 32, cfg: 1.0, sampler: 'dpm_2', scheduler: 'sgm_uniform', width: 1024, height: 1024, frames: 1, fps: 1 },
// Wan 2.2 S2V — node defaults 832×480, length 77 @ 16 fps.
wans2v: { steps: 20, cfg: 6.0, sampler: 'euler', scheduler: 'simple', width: 832, height: 480, frames: 77, fps: 16 },
// Wan 2.2 Animate — node defaults 832×480, length 77 @ 16 fps.
@@ -1349,6 +1377,9 @@ export const COMFY_MODEL_FOLDERS: Array<{
{ subfolder: 'loras', read: () => nodeOptionsOrNull('LoraLoader', 'lora_name') },
{ subfolder: 'controlnet', read: () => nodeOptionsOrNull('ControlNetLoader', 'control_net_name') },
{ subfolder: 'upscale_models', read: () => nodeOptionsOrNull('UpscaleModelLoader', 'model_name') },
+ // The x2 latent upscaler LTX 2.5's second pass needs (a different folder
+ // and a different loader from the image upscalers above).
+ { subfolder: 'latent_upscale_models', read: () => nodeOptionsOrNull('LatentUpscaleModelLoader', 'model_name') },
{ subfolder: 'style_models', read: () => nodeOptionsOrNull('StyleModelLoader', 'style_model_name') },
{ subfolder: ANIMATEDIFF_SUBFOLDER, read: () => nodeOptionsOrNull('ADE_LoadAnimateDiffModel', 'model_name') },
]
@@ -1453,13 +1484,16 @@ export async function getGgufUnetModels(): Promise<string[]> {
}
}
-/** Music lane: ACE-Step all-in-one checkpoints (model + text encoder + VAE). */
+/** The architectures the music lane runs. Both ship as all in one checkpoints. */
+export const isMusicModelType = (type: ModelType): boolean => type === 'ace' || type === 'yue2'
+
+/** Music lane: ACE-Step and YuE2 all-in-one checkpoints (model + text encoder + VAE). */
export async function getAudioModels(): Promise<ClassifiedModel[]> {
const checkpoints = await getCheckpoints()
const complete = await filterPartialFiles(checkpoints)
return checkpoints
- .filter((name) => complete.has(name) && classifyModel(name) === 'ace')
- .map((name) => ({ name, type: 'ace' as ModelType, source: 'checkpoint' as const }))
+ .filter((name) => complete.has(name) && isMusicModelType(classifyModel(name)))
+ .map((name) => ({ name, type: classifyModel(name), source: 'checkpoint' as const }))
}
/** Talking-character lane: Wan 2.2 S2V UNets (safetensors via UNETLoader,
@@ -1652,10 +1686,18 @@ export async function findMatchingVAE(modelType: ModelType): Promise<string> {
throw new Error(`No Wan 2.2 VAE found. Download "wan2.2_vae.safetensors" from the Model Manager.`)
}
if (modelType === 'ltx') {
- const match = vaes.find(v => lower(v).includes('ltx'))
+ const match = vaes.find(v => lower(v).includes('ltx') && !isLtx25File(v))
+ || vaes.find(v => lower(v).includes('ltx'))
if (match) return match
return vaes[0]
}
+ if (modelType === 'ltx25') {
+ // The VIDEO autoencoder. The audio one is a second file (findLtx25AudioVAE)
+ // and the "-conv" video variant is an alternative the template does not use.
+ const match = vaes.find(v => /ltx[._-]?2[._-]?5[._-]video[._-]vae/.test(lower(v)) && !lower(v).includes('conv'))
+ if (match) return match
+ throw new Error(`No LTX 2.5 video VAE found. Download "ltx-2.5-video-vae-bf16.safetensors" from the Model Manager.`)
+ }
if (modelType === 'minimaxh3') {
// The VIDEO autoencoder; the audio one is a second file of its own
// (findMiniMaxAudioVAE), and the two are not interchangeable.
@@ -1739,6 +1781,20 @@ export async function findFramePackCLIPPair(): Promise<{ clipL: string; llavaLla
/** MiniMax H3's audio autoencoder. The model writes picture and sound into
* one latent and decodes the sound half with this file. */
+/** A file that says it is an LTX 2.5 one (ltx-2.5-..., gemma4-...-ltx-2.5-...). */
+export function isLtx25File(name: string): boolean {
+ return /ltx[._\- ]?2[._\- ]?5/.test(name.toLowerCase())
+}
+
+/** The sound autoencoder LTX 2.5 decodes its audio with. A second file next to
+ * the video VAE, and the two are not interchangeable. */
+export async function findLtx25AudioVAE(): Promise<string> {
+ const vaes = await getVAEModels()
+ const match = vaes.find(v => isLtx25File(v) && v.toLowerCase().includes('audio'))
+ if (match) return match
+ throw new Error(`No LTX 2.5 audio VAE found. Download "ltx-2.5-audio-vae-bf16.safetensors" from the Model Manager.`)
+}
+
export async function findMiniMaxAudioVAE(): Promise<string> {
const vaes = await getVAEModels()
const match = vaes.find(v => v.toLowerCase().includes('minimax_h3_audio_vae'))
@@ -1842,10 +1898,19 @@ export async function findMatchingCLIP(modelType: ModelType, activeModelName?: s
throw new Error(`No Wan text encoder found. Download "umt5_xxl_fp8_e4m3fn_scaled.safetensors" from the Model Manager.`)
}
if (modelType === 'ltx') {
- const match = clips.find(c => lower(c).includes('gemma'))
+ // LTX 2.3 reads Gemma 3. The Gemma 4 encoders belong to LTX 2.5 and would
+ // be refused by a 2.3 graph.
+ const match = clips.find(c => lower(c).includes('gemma') && !lower(c).includes('gemma4'))
if (match) return match
throw new Error(`No LTX Video text encoder found. Download "gemma_3_12B_it_fp8_scaled.safetensors" from the Model Manager.`)
}
+ if (modelType === 'ltx25') {
+ // Lightricks' own Gemma 4 12B with the projection LTX 2.5 needs. A plain
+ // Gemma 4 file (no "ltx") is a different encoder and is not accepted.
+ const match = clips.find(c => lower(c).includes('gemma4') && isLtx25File(c))
+ if (match) return match
+ throw new Error(`No LTX 2.5 text encoder found. Download "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors" from the Model Manager.`)
+ }
if (modelType === 'minimaxh3') {
// Qwen3-VL 32B, tuned for H3 and shipped only under H3's own names. The
// nvfp4 tier is the one the official templates load (15.7 GB).
diff --git a/src/api/component-registry.ts b/src/api/component-registry.ts
index 58220ecd..6840c2f0 100644
--- a/src/api/component-registry.ts
+++ b/src/api/component-registry.ts
@@ -43,6 +43,8 @@ export interface ComponentRequirements {
clipSecondary?: ComponentSpec
/** A separate sound autoencoder (MiniMax H3 decodes its audio with it). */
audioVae?: ComponentSpec
+ /** A latent upscaler the graph runs between its two passes (LTX 2.5). */
+ upscaler?: ComponentSpec
/** The CLIPLoader `type` widget value for this architecture, when the
* loader is CLIPLoader (single encoder). */
clipType?: string
@@ -116,6 +118,18 @@ export const COMPONENT_REGISTRY: Record<string, ComponentRequirements> = {
loader: 'UNETLoader', needsSeparateVAE: false, needsSeparateCLIP: true, clipType: 'ltxv',
clip: { matchPatterns: ['gemma'], downloadFilename: 'gemma_3_12B_it_fp8_scaled.safetensors', downloadUrl: 'https://huggingface.co/Comfy-Org/ltx-2/resolve/main/split_files/text_encoders/gemma_3_12B_it_fp8_scaled.safetensors', subfolder: 'text_encoders' },
},
+ // LTX 2.5 (Lightricks/LTX-2.5, GATED: a download needs a Hugging Face token,
+ // the downloader's 401 text names the Settings field). Needs ComfyUI 0.32.0.
+ // The 2.3 entry above keeps Gemma 3; these are the 2.5 files of the official
+ // template video_ltx2_5_t2v. The sizes are the byte counts of the Hugging Face
+ // tree API on 2026-10-02 in GiB, the unit sizeGB uses everywhere.
+ ltx25: {
+ loader: 'UNETLoader', needsSeparateVAE: true, needsSeparateCLIP: true, clipType: 'ltxv',
+ vae: { matchPatterns: ['ltx-2.5-video-vae'], downloadFilename: 'ltx-2.5-video-vae-bf16.safetensors', downloadUrl: 'https://huggingface.co/Lightricks/LTX-2.5/resolve/main/vae/ltx-2.5-video-vae-bf16.safetensors', subfolder: 'vae', sizeGB: 1.37 },
+ clip: { matchPatterns: ['gemma4', 'ltx-2.5'], downloadFilename: 'gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors', downloadUrl: 'https://huggingface.co/Lightricks/LTX-2.5/resolve/main/text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors', subfolder: 'text_encoders', sizeGB: 14.32 },
+ audioVae: { matchPatterns: ['ltx-2.5-audio-vae'], downloadFilename: 'ltx-2.5-audio-vae-bf16.safetensors', downloadUrl: 'https://huggingface.co/Lightricks/LTX-2.5/resolve/main/vae/ltx-2.5-audio-vae-bf16.safetensors', subfolder: 'vae', sizeGB: 0.34 },
+ upscaler: { matchPatterns: ['ltx-2.5-latent-spatial-upscaler'], downloadFilename: 'ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors', downloadUrl: 'https://huggingface.co/Lightricks/LTX-2.5/resolve/main/latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors', subfolder: 'latent_upscale_models', sizeGB: 0.93 },
+ },
// MiniMax H3 (Discord, throwaway 2026-09-26): one model for picture and sound. The
// video VAE comes from here, the audio VAE is a second file the builder
// finds through findMiniMaxAudioVAE.
@@ -125,6 +139,9 @@ export const COMPONENT_REGISTRY: Record<string, ComponentRequirements> = {
clip: { matchPatterns: ['minimax_h3_nvfp4', 'minimax'], downloadFilename: 'qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors', downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors', subfolder: 'text_encoders', sizeGB: 15.7 },
audioVae: { matchPatterns: ['minimax_h3_audio_vae'], downloadFilename: 'minimax_h3_audio_vae_fp32.safetensors', downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_audio_vae_fp32.safetensors', subfolder: 'vae', sizeGB: 0.6 },
},
+ // YuE2 (Comfy-Org/YuE2, ComfyUI 0.36.0): model, text model and audio VAE in
+ // one checkpoint, like ACE Step, so there is nothing separate to fetch.
+ yue2: { loader: 'CheckpointLoaderSimple', needsSeparateVAE: false, needsSeparateCLIP: false },
mochi: {
loader: 'UNETLoader', needsSeparateVAE: true, needsSeparateCLIP: true, clipType: 'mochi',
vae: { matchPatterns: ['mochi'], downloadFilename: 'mochi_vae.safetensors', downloadUrl: 'https://huggingface.co/Comfy-Org/mochi_preview_repackaged/resolve/main/split_files/vae/mochi_vae.safetensors', subfolder: 'vae' },
diff --git a/src/api/discover.ts b/src/api/discover.ts
index 431a3d1b..6ffbeda5 100644
--- a/src/api/discover.ts
+++ b/src/api/discover.ts
@@ -1734,6 +1734,8 @@ export function catalogAddresses(): CatalogAddress[] {
add(req.vae?.downloadUrl, `COMPONENT_REGISTRY.${type}.vae`)
add(req.clip?.downloadUrl, `COMPONENT_REGISTRY.${type}.clip`)
add(req.clipSecondary?.downloadUrl, `COMPONENT_REGISTRY.${type}.clipSecondary`)
+ add(req.audioVae?.downloadUrl, `COMPONENT_REGISTRY.${type}.audioVae`)
+ add(req.upscaler?.downloadUrl, `COMPONENT_REGISTRY.${type}.upscaler`)
}
return [...byUrl].map(([url, where]) => ({ url, where: [...where] }))
diff --git a/src/api/dynamic-workflow.ts b/src/api/dynamic-workflow.ts
index 9c89881d..4a7b7eca 100644
--- a/src/api/dynamic-workflow.ts
+++ b/src/api/dynamic-workflow.ts
@@ -1,5 +1,5 @@
import {
- classifyModel, findMatchingVAE, findMatchingCLIP, findFluxCLIPPair, findMiniMaxAudioVAE,
+ classifyModel, findMatchingVAE, findMatchingCLIP, findFluxCLIPPair, findMiniMaxAudioVAE, findLtx25AudioVAE, isFastH3,
findMatchingAudioEncoder, findMatchingClipVision, findFramePackCLIPPair,
} from './comfyui'
import type { ModelType, GenerateParams, VideoParams } from './comfyui'
@@ -80,6 +80,7 @@ export type WorkflowStrategy =
| 'unet_video' // Wan/Hunyuan: UNETLoader + CLIPLoader + VAELoader + EmptyHunyuanLatentVideo
| 'wan22' // Wan 2.2 TI2V-5B: UNET + CLIP + Wan 2.2 VAE + Wan22ImageToVideoLatent (unified T2V/I2V)
| 'unet_ltx' // LTX Video: UNETLoader + CLIPLoader + EmptyLTXVLatentVideo
+ | 'ltx25' // LTX 2.5: two pass picture-and-sound graph (distilled), needs ComfyUI 0.32.0
| 'unet_mochi' // Mochi: UNETLoader + CLIPLoader + VAELoader + EmptyMochiLatentVideo
| 'unet_cosmos' // Cosmos: UNETLoader + CLIPLoader(oldt5) + VAELoader + EmptyCosmosLatentVideo
| 'svd' // SVD: ImageOnlyCheckpointLoader + SVD_img2vid_Conditioning
@@ -106,6 +107,15 @@ interface StrategyResult {
installHint?: { pack: string; url: string }
}
+/** The sentence an older ComfyUI gets, per model (not global): the version is
+ * the release that brought the node the lane cannot run without. Read from the
+ * ComfyUI tags on 2026-10-02: LTX 2.5 in 0.32.0, FastH3's sparse attention in
+ * 0.35.0, YuE2 in 0.36.0. "Update ComfyUI" in the text is what Create keys the
+ * one click update on (needsComfyUpdate). */
+export const LTX25_NEEDS_UPDATE = 'LTX 2.5 needs ComfyUI 0.32.0 or newer. Update ComfyUI in Settings.'
+export const FASTH3_NEEDS_UPDATE = 'FastH3 needs ComfyUI 0.35.0 or newer. Update ComfyUI in Settings.'
+export const YUE2_NEEDS_UPDATE = 'YuE2 needs ComfyUI 0.36.0 or newer. Update ComfyUI in Settings.'
+
export function determineStrategy(
modelType: ModelType,
isVideo: boolean,
@@ -191,6 +201,22 @@ export function determineStrategy(
return { strategy: 'unavailable', reason: 'Krea 2 requires UNETLoader + CLIPLoader + VAELoader nodes' }
}
+ // LTX 2.5 → UNET + CLIPLoader(ltxv, Gemma 4) + both VAEs + the two pass graph
+ // of the official templates. The model patch arrived in ComfyUI 0.32.0
+ // together with LTXVDualCFGGuider (comfy_extras/nodes_lt.py, PR 15499), and
+ // that node is the one this lane cannot run without, so its absence is the
+ // version check: an older install gets the update sentence instead of a 400.
+ if (modelType === 'ltx25') {
+ const hasDual = nodes.samplers.includes('LTXVDualCFGGuider')
+ if (hasUNET && hasCLIPLoader && hasVAELoader && hasDual) {
+ return { strategy: 'ltx25', reason: 'LTX 2.5 → UNETLoader + CLIPLoader(ltxv) + LTXVDualCFGGuider (two pass, sound)' }
+ }
+ if (hasUNET && hasCLIPLoader && hasVAELoader) {
+ return { strategy: 'unavailable', reason: LTX25_NEEDS_UPDATE }
+ }
+ return { strategy: 'unavailable', reason: 'LTX 2.5 requires UNETLoader + CLIPLoader + VAELoader nodes' }
+ }
+
// LTX Video → UNET + LTXVLatentVideo (no separate VAE needed)
if (modelType === 'ltx') {
if (hasUNET && hasCLIPLoader) {
@@ -405,7 +431,7 @@ const LUMINA2_NEGATIVE_SYSTEM = 'You are an assistant designed to generate low-q
function registrySpecsNamedIn(type: ModelType, message: string): ComponentSpec[] {
const req = COMPONENT_REGISTRY[type]
if (!req) return []
- return [req.vae, req.clip, req.clipSecondary, req.audioVae].filter(
+ return [req.vae, req.clip, req.clipSecondary, req.audioVae, req.upscaler].filter(
(s): s is ComponentSpec => !!s?.downloadUrl && message.includes(s.downloadFilename),
)
}
@@ -659,6 +685,9 @@ export async function buildDynamicWorkflow(
if (strategy === 'minimaxh3') {
return wrapper(() => buildMiniMaxH3Workflow(params as VideoParams, seed, allNodes))
}
+ if (strategy === 'ltx25') {
+ return wrapper(() => buildLtx25Workflow(params as VideoParams, seed, allNodes))
+ }
// ─── Standard Strategies (UNET/Checkpoint → CLIP → Latent → KSampler → VAEDecode) ───
@@ -1811,9 +1840,18 @@ export function snapMiniMaxH3Length(frames: number): number {
* <Picture 1>.
*/
async function buildMiniMaxH3Workflow(params: VideoParams, seed: number, allNodes: NodePresence): Promise<ComfyApiGraph> {
- const isRef2va = /ref2va/i.test(params.model)
+ const fast = isFastH3(params.model)
+ const isRef2va = !fast && /ref2va/i.test(params.model)
const encodeNode = isRef2va ? 'MiniMaxH3ReferenceToVideo' : 'MiniMaxH3ImageToVideo'
requireNodes(allNodes, [encodeNode, 'BasicGuider', 'SamplerCustomAdvanced', 'VAEDecodeAudio'], 'MiniMax H3')
+ if (fast) {
+ // FastH3 runs on FastVideo's sparse attention, which ComfyUI has had since
+ // 0.35.0 (BlockSparseAttention), and it only distilled text to video.
+ requireRelease(allNodes, ['BlockSparseAttention', 'MiniMaxH3SigmaShift'], FASTH3_NEEDS_UPDATE, 'minimaxh3')
+ if (params.inputImage) {
+ throw new WorkflowUnavailableError('FastH3 makes video from a prompt only. Pick MiniMax H3 to start from an image.', 'minimaxh3')
+ }
+ }
const workflow: ComfyApiGraph = {}
let n = 1
@@ -1850,6 +1888,27 @@ async function buildMiniMaxH3Workflow(params: VideoParams, seed: number, allNode
modelSrc = loraId
})
+ if (fast) {
+ // The official template (video_fastvideo_fasth3_t2v) patches the model with
+ // the distilled schedule's shifts (video 10, audio 3, not the base model's
+ // 12) and then the VSA sparse attention the checkpoint was trained with
+ // (keep 10 percent of the video cubes). The template also picks the comfy
+ // kitchen attention for the dense layers; that choice is left to ComfyUI's
+ // default because the option is missing on cards that cannot run it.
+ const shiftId = String(n++)
+ const sparseId = String(n++)
+ workflow[shiftId] = { class_type: 'MiniMaxH3SigmaShift', inputs: { model: [modelSrc, 0], shift_video: 10, shift_audio: 3 } }
+ workflow[sparseId] = {
+ class_type: 'BlockSparseAttention',
+ inputs: {
+ model: [shiftId, 0], selection: 'vsa', 'selection.keep_percent': 10,
+ start_percent: 0.2, end_percent: 1, dense_blocks: '', min_tokens: 12288, extra_tokens: 256,
+ sink_conditioning: 'exact_kv_and_rows', verbose: false,
+ },
+ }
+ modelSrc = sparseId
+ }
+
const encodeInputs: ComfyNodeInputs = { clip: [clipId, 0], vae: [vaeId, 0], prompt: params.prompt, width, height, length }
if (params.inputImage) {
// The node stretches a first frame to the canvas; a center crop keeps
@@ -1879,7 +1938,8 @@ async function buildMiniMaxH3Workflow(params: VideoParams, seed: number, allNode
// 2026-10-02, checkedlemon788's ComfyUI screenshot: turbo_steps 8). The
// slider's 20 or more would only cost time on a 24 GB model.
const turbo = loras.map((l) => /turbo\D*?(\d+)\s*_?steps?/i.exec(l)).find((m) => m)
- const steps = turbo ? Number(turbo[1]) : params.steps
+ // FastH3 is the 8 step checkpoint: the template runs exactly 8.
+ const steps = fast ? 8 : turbo ? Number(turbo[1]) : params.steps
workflow[schedulerId] = { class_type: 'BasicScheduler', inputs: { model: [modelSrc, 0], scheduler: params.scheduler || 'simple', steps, denoise: 1 } }
workflow[samplerSelectId] = { class_type: 'KSamplerSelect', inputs: { sampler_name: params.sampler || 'res_multistep' } }
workflow[noiseId] = { class_type: 'RandomNoise', inputs: { noise_seed: seed } }
@@ -1897,6 +1957,140 @@ async function buildMiniMaxH3Workflow(params: VideoParams, seed: number, allNode
return workflow
}
+/** LTX counts frames in blocks of 8 plus 1 (97 and 121 are the usual ones).
+ * Rounds to the nearest block, never below 9. */
+export function snapLtx25Length(frames: number): number {
+ const f = Number.isFinite(frames) && frames > 0 ? Math.round(frames) : 121
+ return Math.max(9, Math.round((f - 1) / 8) * 8 + 1)
+}
+
+/** The two sigma ladders of the distilled model: 8 steps on the half size
+ * picture, then 3 after the latent upscale. Straight from the official
+ * video_ltx2_5_t2v / _i2v templates. */
+const LTX25_SIGMAS_FIRST = '1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0'
+const LTX25_SIGMAS_SECOND = '0.85, 0.7250, 0.4219, 0.0'
+
+/**
+ * LTX 2.5 (Lightricks, ComfyUI 0.32.0). Picture and sound come out of one
+ * model in two passes, wired as the official Comfy-Org templates
+ * video_ltx2_5_t2v and video_ltx2_5_i2v do:
+ *
+ * pass 1 an empty picture latent at HALF size plus an empty sound latent,
+ * joined (LTXVConcatAVLatent), sampled with the 8 step ladder
+ * upscale the picture half is split off, doubled by the latent upscaler and
+ * joined with the sound half again
+ * pass 2 3 more steps at full size
+ * output tiled VAE decode for the frames, the audio VAE for the sound,
+ * CreateVideo muxes them
+ *
+ * A start image (i2v) is cut to the canvas, preprocessed and written into the
+ * first frame twice: at strength 0.7 on the half size latent, at 1 after the
+ * upscale. The official template also has a prompt enhancer (a second, 5 GB
+ * Gemma) and an auto duration head; both are optional there and left out here.
+ * Multishot needs nothing in the graph: it is the model's own behaviour.
+ */
+async function buildLtx25Workflow(params: VideoParams, seed: number, allNodes: NodePresence): Promise<ComfyApiGraph> {
+ requireRelease(allNodes, ['LTXVDualCFGGuider'], LTX25_NEEDS_UPDATE, 'ltx25')
+ requireNodes(allNodes, [
+ 'LTXVConditioning', 'EmptyLTXVLatentVideo', 'LTXVEmptyLatentAudio', 'LTXVConcatAVLatent', 'LTXVSeparateAVLatent',
+ 'LTXVLatentUpsampler', 'LatentUpscaleModelLoader', 'LTXVAudioVAEDecode', 'ManualSigmas', 'KSamplerSelect',
+ 'RandomNoise', 'SamplerCustomAdvanced', 'VAEDecodeTiled', 'CLIPTextEncode',
+ ], 'LTX 2.5')
+ if (params.inputImage) requireNodes(allNodes, ['LTXVImgToVideoInplace', 'LTXVPreprocess', 'LoadImage', 'ImageScale'], 'LTX 2.5 image to video')
+
+ // The graph is the distilled one. The dev weights need a different schedule
+ // and guidance, and running them on this one gives noise.
+ if (/dev/i.test(params.model) && !/distilled/i.test(params.model)) {
+ throw new WorkflowUnavailableError(
+ 'LU runs the distilled LTX 2.5 model. Pick the file with "distilled" in its name.',
+ 'ltx25',
+ )
+ }
+
+ // The first pass runs at half size, so the final canvas must halve onto the
+ // 32 pixel grid the video VAE works on: multiples of 64.
+ const snap64 = (v: number | undefined, def: number) => Math.max(256, Math.round(((v && v > 0) ? v : def) / 64) * 64)
+ const width = snap64(params.width, 1280)
+ const height = snap64(params.height, 704)
+ const length = snapLtx25Length(params.frames || 121)
+ const fps = params.fps || 24
+
+ const [clipName, vaeName, audioVaeName] = await Promise.all([
+ findMatchingCLIP('ltx25', params.model),
+ findMatchingVAE('ltx25'),
+ findLtx25AudioVAE(),
+ ])
+ const upscalerName = nodeComboOptions(allNodes, 'LatentUpscaleModelLoader', 'model_name')
+ .find((m) => /ltx[._\- ]?2[._\- ]?5/i.test(m) && /spatial/i.test(m))
+ if (!upscalerName) {
+ throw new Error('No LTX 2.5 latent upscaler found. Download "ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors" from the Model Manager.')
+ }
+
+ const workflow: ComfyApiGraph = {}
+ let n = 1
+ const add = (class_type: string, inputs: ComfyNodeInputs): string => {
+ const id = String(n++)
+ workflow[id] = { class_type, inputs }
+ return id
+ }
+
+ const unetId = add('UNETLoader', { unet_name: params.model, weight_dtype: 'default' })
+ const clipId = add('CLIPLoader', { clip_name: clipName, type: 'ltxv', device: 'default' })
+ const vaeId = add('VAELoader', { vae_name: vaeName })
+ const audioVaeId = add('VAELoader', { vae_name: audioVaeName })
+ const upscaleLoaderId = add('LatentUpscaleModelLoader', { model_name: upscalerName })
+
+ const posId = add('CLIPTextEncode', { text: params.prompt, clip: [clipId, 0] })
+ const negId = add('CLIPTextEncode', { text: params.negativePrompt || '', clip: [clipId, 0] })
+ const condId = add('LTXVConditioning', { positive: [posId, 0], negative: [negId, 0], frame_rate: fps })
+
+ let imageSrc: string | null = null
+ if (params.inputImage) {
+ const loadId = add('LoadImage', { image: params.inputImage })
+ const scaleId = add('ImageScale', { image: [loadId, 0], upscale_method: 'lanczos', width, height, crop: 'center' })
+ imageSrc = add('LTXVPreprocess', { image: [scaleId, 0], img_compression: 18 })
+ }
+ const pin = (latent: string, strength: number): string =>
+ imageSrc
+ ? add('LTXVImgToVideoInplace', { vae: [vaeId, 0], image: [imageSrc, 0], latent: [latent, 0], strength, bypass: false })
+ : latent
+
+ // Pass 1: half size.
+ const emptyId = add('EmptyLTXVLatentVideo', { width: width / 2, height: height / 2, length, batch_size: 1 })
+ const videoLatent1 = pin(emptyId, 0.7)
+ const audioLatentId = add('LTXVEmptyLatentAudio', { frames_number: length, frame_rate: fps, batch_size: 1, audio_vae: [audioVaeId, 0] })
+ const joint1 = add('LTXVConcatAVLatent', { video_latent: [videoLatent1, 0], audio_latent: [audioLatentId, 0] })
+ const guider1 = add('LTXVDualCFGGuider', { model: [unetId, 0], positive: [condId, 0], negative: [condId, 1], video_cfg: 1, audio_cfg: 1 })
+ const sampler1 = add('KSamplerSelect', { sampler_name: 'euler_ancestral' })
+ const sigmas1 = add('ManualSigmas', { sigmas: LTX25_SIGMAS_FIRST })
+ const noise1 = add('RandomNoise', { noise_seed: seed })
+ const sample1 = add('SamplerCustomAdvanced', {
+ noise: [noise1, 0], guider: [guider1, 0], sampler: [sampler1, 0], sigmas: [sigmas1, 0], latent_image: [joint1, 0],
+ })
+ const split1 = add('LTXVSeparateAVLatent', { av_latent: [sample1, 0] })
+
+ // Upscale the picture half, keep the sound half.
+ const upscaled = add('LTXVLatentUpsampler', { samples: [split1, 0], upscale_model: [upscaleLoaderId, 0], vae: [vaeId, 0] })
+ const videoLatent2 = pin(upscaled, 1)
+ const joint2 = add('LTXVConcatAVLatent', { video_latent: [videoLatent2, 0], audio_latent: [split1, 1] })
+
+ // Pass 2: full size.
+ const guider2 = add('LTXVDualCFGGuider', { model: [unetId, 0], positive: [condId, 0], negative: [condId, 1], video_cfg: 1, audio_cfg: 1 })
+ const sampler2 = add('KSamplerSelect', { sampler_name: 'euler_ancestral' })
+ const sigmas2 = add('ManualSigmas', { sigmas: LTX25_SIGMAS_SECOND })
+ const noise2 = add('RandomNoise', { noise_seed: seed })
+ const sample2 = add('SamplerCustomAdvanced', {
+ noise: [noise2, 0], guider: [guider2, 0], sampler: [sampler2, 0], sigmas: [sigmas2, 0], latent_image: [joint2, 0],
+ })
+ const split2 = add('LTXVSeparateAVLatent', { av_latent: [sample2, 0] })
+
+ const decodeId = add('VAEDecodeTiled', { samples: [split2, 0], vae: [vaeId, 0], tile_size: 512, overlap: 64, temporal_size: 64, temporal_overlap: 16 })
+ const audioDecodeId = add('LTXVAudioVAEDecode', { samples: [split2, 1], audio_vae: [audioVaeId, 0] })
+
+ addVideoWithAudioOutput(workflow, n, decodeId, fps, [audioDecodeId, 0], allNodes, params.prompt)
+ return workflow
+}
+
// ─── 2.5.8 specialized local lanes (music / talking character / motion) ─────
//
// These intents run on node families that ship with CURRENT ComfyUI cores
@@ -1942,6 +2136,15 @@ function requireNodes(allNodes: NodePresence, needed: string[], lane: string): v
}
}
+/** Like requireNodes, for a model that arrived in a known ComfyUI release: the
+ * missing marker node means an older install, and the answer is the update
+ * sentence for THAT model (not a list of node names), flagged so Create offers
+ * the one click update. */
+function requireRelease(allNodes: NodePresence, marker: string[], updateSentence: string, strategy: WorkflowStrategy): void {
+ if (marker.every((m) => allNodes[m])) return
+ throw new WorkflowUnavailableError(updateSentence, strategy, undefined, { needsComfyUpdate: true })
+}
+
/** UNET loader that understands GGUF quants: .gguf files load through the
* city96 GGUF pack's UnetLoaderGGUF, everything else through core UNETLoader. */
/** Discord 2026-09-26/28 (boromirofgeo, haschbar): "Node 1
@@ -2021,6 +2224,59 @@ function addVideoWithAudioOutput(
return n
}
+/**
+ * YuE2 (m-a-p, ComfyUI 0.36.0). Songs with vocals from a style and lyrics, the
+ * graph of the official template audio_yue2_text2music with ABC planning off:
+ * the checkpoint's own text model writes the music tokens
+ * (YuE2GenerateMusic, which also reports how many seconds it made), a
+ * KSampler turns them into audio latents of exactly that length
+ * (EmptyYuE2LatentAudio) and the checkpoint's VAE decodes them.
+ *
+ * The sampler is the template's (32 steps, cfg 1, dpm_2, sgm_uniform) and is
+ * pinned: the music sliders are tuned for ACE Step. The prompt is the style,
+ * the lyrics field is the lyrics. An empty ABC input makes the node switch to
+ * its own "off" mode, as the template does.
+ */
+function buildYue2Workflow(params: LocalOpParams, seed: number, allNodes: NodePresence): ComfyApiGraph {
+ requireRelease(allNodes, ['YuE2GenerateMusic', 'EmptyYuE2LatentAudio'], YUE2_NEEDS_UPDATE, 'unavailable')
+ requireNodes(allNodes, ['ConditioningZeroOut', 'KSampler', 'VAEDecodeAudio', 'SaveAudioMP3'], 'Local music')
+
+ const workflow: ComfyApiGraph = {}
+ let n = 1
+ const seconds = Math.max(5, Math.min(600, params.seconds || 120))
+
+ const ckptId = String(n++)
+ workflow[ckptId] = { class_type: 'CheckpointLoaderSimple', inputs: { ckpt_name: params.model } }
+ const musicId = String(n++)
+ workflow[musicId] = {
+ class_type: 'YuE2GenerateMusic',
+ inputs: {
+ clip: [ckptId, 1], style: params.prompt, lyrics: params.lyrics || '', abc: '', seed, mode: 'full',
+ max_duration: seconds, temperature: 1, top_p: 0.95, top_k: 100, repetition_penalty: 1.2,
+ },
+ }
+ const negId = String(n++)
+ workflow[negId] = { class_type: 'ConditioningZeroOut', inputs: { conditioning: [musicId, 0] } }
+ const latentId = String(n++)
+ workflow[latentId] = { class_type: 'EmptyYuE2LatentAudio', inputs: { seconds: [musicId, 1], batch_size: 1 } }
+ const samplerId = String(n++)
+ workflow[samplerId] = {
+ class_type: 'KSampler',
+ inputs: {
+ model: [ckptId, 0], positive: [musicId, 0], negative: [negId, 0], latent_image: [latentId, 0],
+ seed, steps: 32, cfg: 1.0, sampler_name: 'dpm_2', scheduler: 'sgm_uniform', denoise: 1.0,
+ },
+ }
+ const decodeId = String(n++)
+ workflow[decodeId] = { class_type: 'VAEDecodeAudio', inputs: { samples: [samplerId, 0], vae: [ckptId, 2] } }
+ const saveId = String(n++)
+ workflow[saveId] = {
+ class_type: 'SaveAudioMP3',
+ inputs: { audio: [decodeId, 0], filename_prefix: promptFilenamePrefix(params.prompt, false), quality: 'V0' },
+ }
+ return workflow
+}
+
/**
* Music (ACE-Step). All-in-one checkpoint → ACE text encode (tags + lyrics) →
* KSampler → VAEDecodeAudio → SaveAudioMP3. ACE-Step 1.5 checkpoints route
@@ -2030,6 +2286,7 @@ function addVideoWithAudioOutput(
* encoder runs an LLM pass that would double the cost for no benefit.
*/
export function buildMusicWorkflow(params: LocalOpParams, seed: number, allNodes: NodePresence): ComfyApiGraph {
+ if (classifyModel(params.model) === 'yue2') return buildYue2Workflow(params, seed, allNodes)
const workflow: ComfyApiGraph = {}
let n = 1
const isAce15 = /1[._-]?5/.test(params.model.toLowerCase().replace(/\.safetensors$/, '').replace(/^.*ace[_-]?step/, ''))
diff --git a/src/api/model-bundles.ts b/src/api/model-bundles.ts
index e0c60037..2e0512c4 100644
--- a/src/api/model-bundles.ts
+++ b/src/api/model-bundles.ts
@@ -20,6 +20,7 @@
*/
import type { ProviderId } from './providers/types'
+import type { ModelTier } from '../lib/render/model-tier'
export interface DiscoverModel {
name: string
@@ -93,6 +94,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 6.5,
vramRequired: '6-8 GB',
workflow: 'sdxl',
+ tier: 'older',
url: 'https://huggingface.co/RunDiffusion/Juggernaut-XL-v9',
files: [
{
@@ -113,6 +115,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 6.5,
vramRequired: '6-8 GB',
workflow: 'sdxl',
+ tier: 'older',
url: 'https://huggingface.co/SG161222/RealVisXL_V5.0',
files: [
{
@@ -132,6 +135,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 21,
vramRequired: '8-10 GB',
workflow: 'flux',
+ tier: 'older',
url: 'https://huggingface.co/Comfy-Org/flux1-schnell',
files: [
{
@@ -172,6 +176,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 21,
vramRequired: '8-10 GB',
workflow: 'flux',
+ tier: 'older',
url: 'https://huggingface.co/Comfy-Org/flux1-dev',
files: [
{
@@ -212,6 +217,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 11.1,
vramRequired: '8-10 GB',
workflow: 'flux2',
+ tier: 'best',
url: 'https://huggingface.co/Comfy-Org/vae-text-encorder-for-flux-klein-4b',
files: [
{
@@ -255,6 +261,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 5.5,
vramRequired: 'depends on the checkpoint',
workflow: 'krea2',
+ tier: 'best',
url: 'https://huggingface.co/Comfy-Org/Krea-2',
files: [
{
@@ -282,6 +289,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 19.3,
vramRequired: '10-16 GB',
workflow: 'zimage',
+ tier: 'best',
url: 'https://huggingface.co/Comfy-Org/z_image_turbo',
files: [
{
@@ -316,6 +324,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 19.3,
vramRequired: '10-16 GB',
workflow: 'zimage',
+ tier: 'best',
url: 'https://huggingface.co/Comfy-Org/z_image',
files: [
{
@@ -355,6 +364,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 16.1,
vramRequired: '16-24 GB',
workflow: 'qwenimage',
+ tier: 'best',
url: 'https://huggingface.co/Comfy-Org/Qwen-Image-2.1',
files: [
{
@@ -389,6 +399,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 6.5,
vramRequired: '6-8 GB',
workflow: 'sdxl',
+ tier: 'older',
url: 'https://huggingface.co/Lykon/dreamshaper-xl-v2-turbo',
files: [
{
@@ -409,6 +420,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 28.9,
vramRequired: '24 GB',
workflow: 'ernie_image',
+ tier: 'best',
url: 'https://huggingface.co/Comfy-Org/ERNIE-Image',
files: [
{
@@ -450,6 +462,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 28.9,
vramRequired: '24 GB',
workflow: 'ernie_image',
+ tier: 'best',
url: 'https://huggingface.co/Comfy-Org/ERNIE-Image',
files: [
{
@@ -490,6 +503,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 0.33,
vramRequired: 'any',
workflow: 'sdxl',
+ tier: 'older',
url: 'https://huggingface.co/madebyollin/sdxl-vae-fp16-fix',
files: [
{
@@ -509,6 +523,7 @@ export function getImageBundles(): ModelBundle[] {
totalSizeGB: 0.17,
vramRequired: 'any',
workflow: 'sdxl',
+ tier: 'older',
url: 'https://huggingface.co/nerijs/pixel-art-xl',
files: [
{
@@ -621,6 +636,14 @@ export interface ModelBundle {
totalSizeGB: number
vramRequired: string
workflow: string
+ /**
+ * How the pickers order this bundle (Oct 2026, David). 'best' is today's open
+ * weight state of the art and stands on top with a small mark, 'older' is
+ * collected under "Older models", everything else keeps its usual place.
+ * Nothing is hidden by it. Every local model is an open weight, so there is
+ * no weights field here (the cloud catalog carries one).
+ */
+ tier: ModelTier
files: DiscoverModel[]
url?: string
hot?: boolean
@@ -630,6 +653,33 @@ export interface ModelBundle {
verified?: boolean // E2E tested and confirmed working
}
+// The three files MiniMax H3 and FastH3 share: the text encoder and both
+// autoencoders. One definition, so an install of either bundle satisfies the
+// other and the two can never drift apart.
+const H3_SHARED_FILES: DiscoverModel[] = [
+ {
+ name: 'Qwen3-VL 32B Text Encoder (NVFP4)',
+ description: 'Required text encoder for MiniMax H3. Runs on any NVIDIA card, not only Blackwell.',
+ pulls: '', tags: ['Text Encoder', '15.7 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors',
+ filename: 'qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors', subfolder: 'text_encoders', sizeGB: 15.7,
+ },
+ {
+ name: 'MiniMax H3 Video VAE',
+ description: 'Required, decodes the picture.',
+ pulls: '', tags: ['VAE', '2.8 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_video_vae_int8_convrot.safetensors',
+ filename: 'minimax_h3_video_vae_int8_convrot.safetensors', subfolder: 'vae', sizeGB: 2.8,
+ },
+ {
+ name: 'MiniMax H3 Audio VAE',
+ description: 'Required, decodes the sound.',
+ pulls: '', tags: ['VAE', '605 MB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_audio_vae_fp32.safetensors',
+ filename: 'minimax_h3_audio_vae_fp32.safetensors', subfolder: 'vae', sizeGB: 0.6,
+ },
+]
+
export function getVideoBundles(): ModelBundle[] {
return [
{
@@ -641,6 +691,7 @@ export function getVideoBundles(): ModelBundle[] {
totalSizeGB: 9.2,
vramRequired: '8-10 GB',
workflow: 'wan',
+ tier: 'older',
url: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged',
files: [
{
@@ -675,6 +726,7 @@ export function getVideoBundles(): ModelBundle[] {
totalSizeGB: 20.5,
vramRequired: '12+ GB',
workflow: 'wan',
+ tier: 'older',
url: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged',
files: [
{
@@ -711,6 +763,7 @@ export function getVideoBundles(): ModelBundle[] {
totalSizeGB: 16.9,
vramRequired: '12+ GB',
workflow: 'wan22',
+ tier: 'standard',
url: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged',
files: [
{
@@ -745,6 +798,7 @@ export function getVideoBundles(): ModelBundle[] {
totalSizeGB: 18.8,
vramRequired: '12+ GB',
workflow: 'hunyuan',
+ tier: 'older',
url: 'https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged',
files: [
{
@@ -778,13 +832,14 @@ export function getVideoBundles(): ModelBundle[] {
],
},
{
- name: 'LTX Video 2.3 · 22B FP8 (Latest)',
+ name: 'LTX Video 2.3 · 22B FP8',
description: 'Lightricks LTX Video 2.3 · fast inference, high quality. Uses Gemma 3 12B text encoder. Distilled for speed.',
tags: ['LTX 2.3', '22B', 'Quality'],
verified: true,
totalSizeGB: 40,
vramRequired: '16+ GB',
workflow: 'ltx',
+ tier: 'older',
url: 'https://huggingface.co/Lightricks/LTX-2.3-fp8',
files: [
{
@@ -815,6 +870,7 @@ export function getVideoBundles(): ModelBundle[] {
totalSizeGB: 40.1,
vramRequired: '24+ GB',
workflow: 'minimaxh3',
+ tier: 'best',
url: 'https://huggingface.co/Comfy-Org/MiniMax-H3',
files: [
{
@@ -824,26 +880,93 @@ export function getVideoBundles(): ModelBundle[] {
downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors',
filename: 'minimax_h3_fl2va_pruned_int8_convrot.safetensors', subfolder: 'diffusion_models', sizeGB: 21.0,
},
+ ...H3_SHARED_FILES,
+ ],
+ },
+ // FastH3 (FastVideo, 8 step distilled MiniMax H3). A full checkpoint of its
+ // own, not a LoRA: FastVideo/FastVideo-FastH3-Comfy ships the distilled
+ // weights as diffusion_models/fastvideo_fasth3_8step_v2_pruned_*.safetensors.
+ // The official Comfy-Org template (video_fastvideo_fasth3_t2v) loads it with
+ // the same Qwen3-VL encoder and the same two VAEs as MiniMax H3, so those
+ // three files are shared. Text to video only: the model card says the
+ // first/last frame and reference tasks were not distilled. Sizes and
+ // digests read from the Hugging Face tree API on 2026-10-02. Needs ComfyUI
+ // 0.35.0 or newer (BlockSparseAttention, comfy_extras/nodes_sparse_attention.py).
+ {
+ name: 'FastH3 · MiniMax H3 in 8 Steps',
+ description: 'The quick MiniMax H3: video with its own sound from a prompt in 8 steps. Text to video only. Shares its text encoder and VAEs with MiniMax H3.',
+ tags: ['FastH3', 'Audio', 'Fast'],
+ totalSizeGB: 39.7,
+ vramRequired: '24+ GB',
+ workflow: 'minimaxh3',
+ tier: 'best',
+ url: 'https://huggingface.co/FastVideo/FastVideo-FastH3-Comfy',
+ files: [
{
- name: 'Qwen3-VL 32B Text Encoder (NVFP4)',
- description: 'Required text encoder for MiniMax H3. Runs on any NVIDIA card, not only Blackwell.',
- pulls: '', tags: ['Text Encoder', '15.7 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors',
- filename: 'qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors', subfolder: 'text_encoders', sizeGB: 15.7,
+ name: 'FastH3 8 Step V2 (int8)',
+ description: 'Main model, distilled to 8 steps. Text to video with sound.',
+ pulls: '', tags: ['Model', '20.6 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/FastVideo/FastVideo-FastH3-Comfy/resolve/main/diffusion_models/fastvideo_fasth3_8step_v2_pruned_int8_convrot.safetensors',
+ filename: 'fastvideo_fasth3_8step_v2_pruned_int8_convrot.safetensors', subfolder: 'diffusion_models', sizeGB: 20.61,
+ sha256: '0922785978dc9bfe1adf27d8b291b0ca763f9f165f882e6cb297c72fbb6deda8',
+ },
+ ...H3_SHARED_FILES,
+ ],
+ },
+ // LTX 2.5 (Lightricks, open weights since 11.08.2026). Every file below is
+ // the one the official Comfy-Org template video_ltx2_5_t2v/_i2v loads, from
+ // the official repo; sizes (GiB) from the Hugging Face tree API on
+ // 2026-10-02. The repo is GATED: Hugging Face asks for a one time licence
+ // accept and every download needs a token (Settings, AI Backends, Hugging
+ // Face token); the downloader answers an unauthorised request with a
+ // sentence that names that field. The model patch for 2.5 reached ComfyUI
+ // in 0.32.0 (PR 15499), and the graph needs LTXVDualCFGGuider, which
+ // arrived in the same release. There is no FP8 file in the repo: the small
+ // official variant is the distilled INT8 transformer.
+ {
+ name: 'LTX 2.5 · Video with Sound',
+ description: 'Video with its own sound from a prompt or a first frame, with cuts between connected shots. Fast distilled version. Needs a free Hugging Face token in Settings.',
+ tags: ['LTX 2.5', 'Audio', 'Multishot'],
+ totalSizeGB: 37.0,
+ vramRequired: '16+ GB',
+ workflow: 'ltx25',
+ tier: 'best',
+ url: 'https://huggingface.co/Lightricks/LTX-2.5',
+ files: [
+ {
+ name: 'LTX 2.5 22B Distilled (int8)',
+ description: 'Main video model, distilled for fast renders. Video and sound in one pass.',
+ pulls: '', tags: ['Model', '21.5 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Lightricks/LTX-2.5/resolve/main/diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors',
+ filename: 'ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors', subfolder: 'diffusion_models', sizeGB: 20.03,
+ },
+ {
+ name: 'Gemma 4 12B Text Encoder (LTX 2.5, int8)',
+ description: 'Required text encoder for LTX 2.5.',
+ pulls: '', tags: ['Text Encoder', '15.4 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Lightricks/LTX-2.5/resolve/main/text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors',
+ filename: 'gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors', subfolder: 'text_encoders', sizeGB: 14.32,
},
{
- name: 'MiniMax H3 Video VAE',
+ name: 'LTX 2.5 Video VAE',
description: 'Required, decodes the picture.',
- pulls: '', tags: ['VAE', '2.8 GB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_video_vae_int8_convrot.safetensors',
- filename: 'minimax_h3_video_vae_int8_convrot.safetensors', subfolder: 'vae', sizeGB: 2.8,
+ pulls: '', tags: ['VAE', '1.5 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Lightricks/LTX-2.5/resolve/main/vae/ltx-2.5-video-vae-bf16.safetensors',
+ filename: 'ltx-2.5-video-vae-bf16.safetensors', subfolder: 'vae', sizeGB: 1.37,
},
{
- name: 'MiniMax H3 Audio VAE',
+ name: 'LTX 2.5 Audio VAE',
description: 'Required, decodes the sound.',
- pulls: '', tags: ['VAE', '605 MB'], updated: 'New',
- downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_audio_vae_fp32.safetensors',
- filename: 'minimax_h3_audio_vae_fp32.safetensors', subfolder: 'vae', sizeGB: 0.6,
+ pulls: '', tags: ['VAE', '365 MB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Lightricks/LTX-2.5/resolve/main/vae/ltx-2.5-audio-vae-bf16.safetensors',
+ filename: 'ltx-2.5-audio-vae-bf16.safetensors', subfolder: 'vae', sizeGB: 0.34,
+ },
+ {
+ name: 'LTX 2.5 Latent Upscaler x2',
+ description: 'Required, sharpens the picture in the second pass.',
+ pulls: '', tags: ['Upscaler', '996 MB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Lightricks/LTX-2.5/resolve/main/latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors',
+ filename: 'ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors', subfolder: 'latent_upscale_models', sizeGB: 0.93,
},
],
},
@@ -856,6 +979,7 @@ export function getVideoBundles(): ModelBundle[] {
totalSizeGB: 2.8,
vramRequired: '6-8 GB',
workflow: 'animatediff',
+ tier: 'older',
customNodes: ['animatediff-evolved'],
url: 'https://huggingface.co/ByteDance/AnimateDiff-Lightning',
files: [
@@ -882,6 +1006,7 @@ export function getVideoBundles(): ModelBundle[] {
totalSizeGB: 3.6,
vramRequired: '6-8 GB',
workflow: 'animatediff',
+ tier: 'older',
customNodes: ['animatediff-evolved'],
url: 'https://huggingface.co/guoyww/animatediff',
files: [
@@ -920,6 +1045,7 @@ export function getVideoBundles(): ModelBundle[] {
totalSizeGB: 27.0,
vramRequired: '6-8 GB',
workflow: 'framepack',
+ tier: 'older',
i2v: true,
customNodes: ['framepack-wrapper'],
url: 'https://huggingface.co/lllyasviel/FramePack_F1_I2V_HY_20250503',
@@ -969,6 +1095,7 @@ export function getVideoBundles(): ModelBundle[] {
totalSizeGB: 4.8,
vramRequired: '12+ GB',
workflow: 'svd',
+ tier: 'older',
i2v: true,
url: 'https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1',
files: [
@@ -988,6 +1115,7 @@ export function getVideoBundles(): ModelBundle[] {
totalSizeGB: 20.4,
vramRequired: '16+ GB',
workflow: 'mochi',
+ tier: 'older',
url: 'https://huggingface.co/Comfy-Org/mochi_preview_repackaged',
files: [
{
@@ -1031,6 +1159,7 @@ export function getVideoBundles(): ModelBundle[] {
totalSizeGB: 19.2,
vramRequired: '24+ GB',
workflow: 'cosmos',
+ tier: 'older',
url: 'https://huggingface.co/mcmonkey/cosmos-1.0',
files: [
{
@@ -1064,6 +1193,7 @@ export function getVideoBundles(): ModelBundle[] {
totalSizeGB: 15.5,
vramRequired: '10-12 GB',
workflow: 'wan',
+ tier: 'older',
customNodes: ['gguf'],
url: 'https://huggingface.co/NSFW-API/NSFW_Wan_14b',
files: [
@@ -1099,6 +1229,7 @@ export function getVideoBundles(): ModelBundle[] {
totalSizeGB: 16.6,
vramRequired: '10-12 GB',
workflow: 'wan',
+ tier: 'standard',
customNodes: ['gguf'],
url: 'https://huggingface.co/desirel/WAN2.2-14B-Rapid-AllInOne-GGUF-NSFW-v10',
files: [
@@ -1145,6 +1276,7 @@ export function getAudioBundles(): ModelBundle[] {
totalSizeGB: 9.4,
vramRequired: '6-8 GB',
workflow: 'ace',
+ tier: 'best',
url: 'https://huggingface.co/Comfy-Org/ace_step_1.5_ComfyUI_files',
files: [
{
@@ -1156,6 +1288,32 @@ export function getAudioBundles(): ModelBundle[] {
},
],
},
+ // YuE2 (m-a-p, ComfyUI 0.36.0 and newer, PR 16250). Songs with vocals from a
+ // style and lyrics. The int8 checkpoint is the one the official template
+ // audio_yue2_text2music loads; it is an all in one file (model, text model
+ // and audio VAE), so it goes to checkpoints like ACE Step. Size and digest
+ // from the Hugging Face tree API on 2026-10-02. The model card says CC BY NC
+ // 4.0, so the card says non-commercial.
+ {
+ name: 'YuE2 (Songs from Style and Lyrics)',
+ description: 'Full songs with vocals from a style and your lyrics. Non-commercial use only (CC BY-NC 4.0).',
+ tags: ['Music', 'Vocals', 'Lyrics'],
+ totalSizeGB: 3.69,
+ vramRequired: '6-8 GB',
+ workflow: 'yue2',
+ tier: 'best',
+ url: 'https://huggingface.co/Comfy-Org/YuE2',
+ files: [
+ {
+ name: 'YuE2 3B (int8, all in one)',
+ description: 'Complete music model. Includes its text model and audio VAE.',
+ pulls: '', tags: ['Checkpoint', '4.0 GB'], updated: 'New',
+ downloadUrl: 'https://huggingface.co/Comfy-Org/YuE2/resolve/main/checkpoints/yue2_3b_int8_convrot.safetensors',
+ filename: 'yue2_3b_int8_convrot.safetensors', subfolder: 'checkpoints', sizeGB: 3.69,
+ sha256: '96fe199377309001ed8cd26a944baeee8cc31a20ba7c36d1d3c0a7e1f4149db6',
+ },
+ ],
+ },
{
name: 'ACE Step v1 3.5B (Music, lighter)',
description: 'The proven full song generator. Smaller download, runs from 4 GB VRAM.',
@@ -1163,6 +1321,7 @@ export function getAudioBundles(): ModelBundle[] {
totalSizeGB: 7.2,
vramRequired: '4-6 GB',
workflow: 'ace',
+ tier: 'standard',
url: 'https://huggingface.co/Comfy-Org/ACE-Step_ComfyUI_repackaged',
files: [
{
@@ -1210,6 +1369,7 @@ export function getLipsyncBundles(): ModelBundle[] {
totalSizeGB: 20.0,
vramRequired: '10-12 GB',
workflow: 'wans2v',
+ tier: 'standard',
customNodes: ['gguf'],
url: 'https://huggingface.co/QuantStack/Wan2.2-S2V-14B-GGUF',
files: [
@@ -1230,6 +1390,7 @@ export function getLipsyncBundles(): ModelBundle[] {
totalSizeGB: 22.4,
vramRequired: '16 GB best, offloads on less',
workflow: 'wans2v',
+ tier: 'standard',
url: 'https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged',
files: [
{
@@ -1270,6 +1431,7 @@ export function getMotionBundles(): ModelBundle[] {
totalSizeGB: 10.5,
vramRequired: '8-10 GB',
workflow: 'wanvace',
+ tier: 'older',
customNodes: ['controlnet-aux'],
url: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged',
files: [
@@ -1290,6 +1452,7 @@ export function getMotionBundles(): ModelBundle[] {
totalSizeGB: 17.3,
vramRequired: '10-12 GB',
workflow: 'wananimate',
+ tier: 'standard',
customNodes: ['gguf', 'controlnet-aux'],
url: 'https://huggingface.co/QuantStack/Wan2.2-Animate-14B-GGUF',
files: [
diff --git a/src/api/vram-handoff.ts b/src/api/vram-handoff.ts
index b9ebc944..e4d85791 100644
--- a/src/api/vram-handoff.ts
+++ b/src/api/vram-handoff.ts
@@ -1365,8 +1365,9 @@ async function generateVideo(
// matches isI2VModel(), but that branch's 25-frame / 8-fps tuning would butcher
// it (wan22 is 24 fps, up to ~7 s). buildDynamicWorkflow routes to buildWan22.
// MiniMax H3 takes the same road: its encode node has an optional first
- // frame, so one graph serves both modes, at 24 fps and up to ~15 s.
- if (type === 'wan22' || type === 'minimaxh3') {
+ // frame, so one graph serves both modes, at 24 fps and up to ~15 s. LTX 2.5
+ // does the same through a first frame pinned into its latent.
+ if (type === 'wan22' || type === 'minimaxh3' || type === 'ltx25') {
const { buildDynamicWorkflow } = await import('./dynamic-workflow')
const d = MODEL_TYPE_DEFAULTS[type]
const av = args as Record<string, unknown>
@@ -1397,7 +1398,7 @@ async function generateVideo(
if (frameRej) return frameRej
// 24 fps native; Wan up to ~7 s (169 frames), MiniMax H3 up to ~15 s
// (362, the top of its trained range). resolveClip honors `seconds`/`frames`.
- const vMax = caps?.frameRange?.max ?? (type === 'minimaxh3' ? 362 : 169)
+ const vMax = caps?.frameRange?.max ?? (type === 'minimaxh3' ? 362 : type === 'ltx25' ? 242 : 169)
const { frames, fps } = resolveClip(args, { defFps: d.fps, defFrames: d.frames, maxFrames: vMax })
const tun = resolveTunables(args, caps, { steps: d.steps, cfg: d.cfg, sampler: d.sampler, scheduler: d.scheduler })
if (tun.reject) return `Cannot generate: ${tun.reject}`
@@ -2043,6 +2044,7 @@ export function resolveI2VResolution(
const landscapeDefault = { width: 1024, height: 576 }
if (!srcW || !srcH || srcW <= 0 || srcH <= 0) {
if (type === 'minimaxh3') return { width: 1344, height: 768 }
+ if (type === 'ltx25') return { width: 1280, height: 704 }
return (type === 'svd' || type === 'wan22') ? landscapeDefault : { width: 768, height: 768 }
}
const aspect = srcW / srcH
@@ -2050,6 +2052,14 @@ export function resolveI2VResolution(
// Square is closer to landscape than portrait; center-crop handles the rest.
return aspect >= 0.95 ? { width: 1024, height: 576 } : { width: 576, height: 1024 }
}
+ if (type === 'ltx25') {
+ // The official template's 1280x704 canvas on the 64 pixel grid its half
+ // size first pass needs. Keeps the source aspect.
+ const MAX_PX = 1280 * 704
+ const scale = Math.sqrt(MAX_PX / (srcW * srcH))
+ const snap = (v: number) => Math.max(256, Math.round(v / 64) * 64)
+ return { width: snap(srcW * scale), height: snap(srcH * scale) }
+ }
if (type === 'minimaxh3') {
// The official templates' canvas: a 768 short edge, capped at 1344x768
// worth of pixels, snapped to 32. Keeps the source aspect.
diff --git a/src/components/create/experimental/ModelChip.tsx b/src/components/create/experimental/ModelChip.tsx
index e99e915b..78999ebe 100644
--- a/src/components/create/experimental/ModelChip.tsx
+++ b/src/components/create/experimental/ModelChip.tsx
@@ -5,6 +5,7 @@ import {
} from '../../../stores/cloudCatalogStore'
import { DEFAULT_MODEL_IDS } from '../../../lib/render/cloud-models'
import { sortByTier, tierGroup, tierMarks } from '../../../lib/render/model-tier'
+import { localTier } from '../../../lib/render/local-model-tier'
import { intentPickerModels, intentRoles, createStudioCost, isStudioModel } from '../../../lib/render/create-studio'
import { resolveCharacterModel, characterGenerationModels } from '../../../hooks/useCloudCreate'
import type { RenderOp } from '../../../lib/render/cloud-jobs'
@@ -235,10 +236,16 @@ function LocalModelChip() {
? resolveLocalOpPick(stored, list)
: list.some((m) => m.name === stored) ? stored : (list[0]?.name ?? stored)
- const options: SelectOption[] = list.map((m) => ({
+ // Beste oben mit der Marke "Best", Aeltere gesammelt unten unter "Older
+ // models", der Rest in gewohnter Reihenfolge. Wie im Cloud-Waehler; nichts
+ // verschwindet. `value` oben haelt sich an die ungeordnete Liste, denn die
+ // zeigt, welches Modell ein Lauf wirklich nimmt.
+ const options: SelectOption[] = sortByTier(list.map((m) => ({ m, tier: localTier(m) }))).map(({ m, tier }) => ({
value: m.name,
label: prettyName(m.name),
badge: TYPE_BADGE[m.type],
+ group: tierGroup({ tier }),
+ tags: tierMarks({ tier }),
}))
// Discovery rows: a few hosted models of this kind at the list's tail.
// Picking one opens the Cloud sheet; the local selection stays untouched.
diff --git a/src/components/create/experimental/__tests__/local-model-chip-tiers.test.tsx b/src/components/create/experimental/__tests__/local-model-chip-tiers.test.tsx
new file mode 100644
index 00000000..421771b6
--- /dev/null
+++ b/src/components/create/experimental/__tests__/local-model-chip-tiers.test.tsx
@@ -0,0 +1,95 @@
+// @vitest-environment jsdom
+/**
+ * Der lokale Modellwaehler ordnet nach Stufe, wie der Cloud-Waehler.
+ *
+ * 02.10.2026, David: "Best" oben mit kleiner Marke, Aeltere gesammelt unten
+ * unter "Older models", nichts wird versteckt, Reihenfolge innerhalb einer
+ * Stufe bleibt wie die Liste sie liefert.
+ */
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+import { cleanup, fireEvent, render, screen } from '@testing-library/react'
+
+vi.mock('../../../../hooks/useContentPolicy', () => ({
+ useContentPolicy: () => 'soft' as const,
+ primeContentPolicyCache: vi.fn(),
+}))
+
+import { ModelChip } from '../ModelChip'
+import { useCreateStore } from '../../../../stores/createStore'
+import { OLDER_GROUP } from '../../../../lib/render/model-tier'
+import { classifyModel, type ClassifiedModel } from '../../../../api/comfyui'
+
+const model = (name: string): ClassifiedModel =>
+ ({ name, type: classifyModel(name), folder: 'checkpoints' }) as unknown as ClassifiedModel
+
+beforeEach(() => {
+ cleanup()
+ vi.stubGlobal('ResizeObserver', class { observe() {} unobserve() {} disconnect() {} })
+})
+afterEach(() => { cleanup(); vi.unstubAllGlobals() })
+
+/** Hinter den lokalen Zeilen haengen die Cloud-Hinweiszeilen; nur die ersten n gehoeren zur Liste. */
+function lies(n: number) {
+ render(<ModelChip />)
+ fireEvent.click(screen.getByRole('button'))
+ const liste = document.querySelector('.lu-elevated') as HTMLElement
+ if (!liste) throw new Error('Liste nicht offen')
+ const zeilen = Array.from(liste.querySelectorAll('button')).map((b) => ({
+ name: (b.querySelector('.truncate')?.textContent ?? '').trim(),
+ best: Array.from(b.querySelectorAll('span')).some((s) => s.textContent === 'Best'),
+ davor: b.previousElementSibling?.textContent ?? '',
+ }))
+ return zeilen.slice(0, n)
+}
+
+describe('lokaler Bildwaehler', () => {
+ it('Beste oben mit Marke, Aeltere unten unter einer einzigen Zwischenzeile', () => {
+ useCreateStore.setState({
+ backend: 'local',
+ imageModelList: [
+ model('Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors'),
+ model('chroma1-hd.safetensors'),
+ model('qwen_image_2.1_int8_convrot.safetensors'),
+ model('flux1-dev-fp8.safetensors'),
+ model('z_image_turbo_bf16.safetensors'),
+ ],
+ })
+ useCreateStore.getState().setIntent('image')
+ const zeilen = lies(5)
+ expect(zeilen).toHaveLength(5)
+ expect(zeilen.slice(0, 2).every((z) => z.best)).toBe(true)
+ expect(zeilen.slice(2).some((z) => z.best)).toBe(false)
+ expect(zeilen.filter((z) => z.davor === OLDER_GROUP)).toHaveLength(1)
+ expect(zeilen[3].davor).toBe(OLDER_GROUP)
+ expect(zeilen[2].name).toMatch(/chroma/i)
+ })
+
+ it('der geschlossene Waehler zeigt keine Marke', () => {
+ useCreateStore.setState({ backend: 'local', imageModelList: [model('z_image_turbo_bf16.safetensors')] })
+ useCreateStore.getState().setIntent('image')
+ render(<ModelChip />)
+ expect(screen.queryByText('Best')).toBeNull()
+ expect(screen.queryByText(OLDER_GROUP)).toBeNull()
+ })
+})
+
+describe('lokaler Videowaehler', () => {
+ it('LTX 2.5 und MiniMax H3 oben, LTX 2.3 und Wan 2.1 unten', () => {
+ useCreateStore.setState({
+ backend: 'local',
+ videoModelList: [
+ model('ltx-2.3-22b-distilled-fp8.safetensors'),
+ model('wan2.2_ti2v_5B_fp16.safetensors'),
+ model('ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors'),
+ model('wan2.1_t2v_14B_fp8_e4m3fn.safetensors'),
+ ],
+ })
+ useCreateStore.getState().setIntent('video')
+ const zeilen = lies(4)
+ expect(zeilen[0].best).toBe(true)
+ expect(zeilen[0].name).toMatch(/2\.5/)
+ expect(zeilen[2].davor).toBe(OLDER_GROUP)
+ expect(zeilen.filter((z) => z.davor === OLDER_GROUP)).toHaveLength(1)
+ expect(zeilen).toHaveLength(4)
+ })
+})
diff --git a/src/components/create/experimental/badges.ts b/src/components/create/experimental/badges.ts
index cfa54404..f7a0544d 100644
--- a/src/components/create/experimental/badges.ts
+++ b/src/components/create/experimental/badges.ts
@@ -47,6 +47,7 @@ export const TYPE_BADGE: Record<ModelType, { label: string; color: string }> = {
wan22: { label: 'Wan 2.2', color: 'bg-orange-500/15 text-orange-300' },
hunyuan: { label: 'Hunyuan', color: 'bg-red-500/15 text-red-300' },
ltx: { label: 'LTX', color: 'bg-cyan-500/15 text-cyan-300' },
+ ltx25: { label: 'LTX 2.5', color: 'bg-cyan-500/15 text-cyan-300' },
// Video with sound like LTX, so it shares LTX's row.
minimaxh3: { label: 'MiniMax H3', color: 'bg-cyan-500/15 text-cyan-300' },
mochi: { label: 'Mochi', color: 'bg-pink-500/15 text-pink-300' },
@@ -58,6 +59,7 @@ export const TYPE_BADGE: Record<ModelType, { label: string; color: string }> = {
allegro: { label: 'Allegro', color: 'bg-rose-500/15 text-rose-300' },
// 2.5.8 specialized local lanes
ace: { label: 'ACE Step', color: 'bg-fuchsia-500/15 text-fuchsia-300' },
+ yue2: { label: 'YuE2', color: 'bg-fuchsia-500/15 text-fuchsia-300' },
wans2v: { label: 'Wan S2V', color: 'bg-orange-500/15 text-orange-300' },
wananimate: { label: 'Wan Animate', color: 'bg-orange-500/15 text-orange-300' },
wanvace: { label: 'VACE', color: 'bg-lime-500/15 text-lime-300' },
diff --git a/src/components/models/DiscoverModels.tsx b/src/components/models/DiscoverModels.tsx
index 908e7979..e514af43 100644
--- a/src/components/models/DiscoverModels.tsx
+++ b/src/components/models/DiscoverModels.tsx
@@ -1,4 +1,4 @@
-import { useCallback, useState, useEffect, useRef } from 'react'
+import { Fragment, useCallback, useState, useEffect, useRef } from 'react'
import { chatRecommendationGroups, isBelowChatMinimum, SMALL_CHAT_MODEL_WARNING } from '../../lib/chat-model-minimum'
import { bundleIsComplete, bundleIsDownloading, bundleHasErrors } from '../../lib/bundle-state'
import { motion } from 'framer-motion'
@@ -14,6 +14,7 @@ import {
type DiscoverModel, type DownloadProgress, type ModelBundle, type HfGgufFile,
} from '../../api/discover'
import { getSystemVRAM } from '../../api/comfyui'
+import { sortByTier, tierGroup } from '../../lib/render/model-tier'
import { getMaxVramGb, getTotalRamGb, bundleVramNeedGb } from '../../lib/hardware'
import { openExternal } from '../../api/backend'
import { useModels } from '../../hooks/useModels'
@@ -312,7 +313,9 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:
const parseVRAM = (b: ModelBundle): number => bundleVramNeedGb(b)
// Sort bundles: verified first, then HOT, then fits VRAM, then by size
- const sortedBundles = [...bundles].sort((a, b) => {
+ // Then the tier, stable: Best on top, Older gathered at the bottom under its
+ // own line, nothing hidden (David 2026-10-02, same rule as the cloud pickers).
+ const sortedBundles = sortByTier([...bundles].sort((a, b) => {
// Verified models always first
if (a.verified && !b.verified) return -1
if (!a.verified && b.verified) return 1
@@ -326,7 +329,7 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:
if (!aFits && bFits) return 1
}
return parseVRAM(a) - parseVRAM(b)
- })
+ }))
const tabFilteredBundles = sortedBundles.filter(b => subTab === 'uncensored' ? b.uncensored : !b.uncensored)
@@ -955,7 +958,11 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:
{(isImage || isVideo) && filteredBundles.length > 0 && (
<div className="grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-2.5">
{filteredBundles.map((bundle, bi) => (
- <motion.div key={bundle.name} initial={{ opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: Math.min(bi, 12) * 0.025 }}>
+ <Fragment key={bundle.name}>
+ {tierGroup(bundle) && tierGroup(bundle) !== tierGroup(filteredBundles[bi - 1] ?? {}) && (
+ <div className="col-span-full t-control pt-2 text-gray-500" data-tier-group={tierGroup(bundle)}>{tierGroup(bundle)}</div>
+ )}
+ <motion.div initial={{ opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: Math.min(bi, 12) * 0.025 }}>
<BundleTile
bundle={bundle}
vramGb={systemVRAM}
@@ -968,6 +975,7 @@ export function DiscoverModels({ category, search = '', searchSubmitToken = 0 }:
onOpenUrl={(u) => openExternal(u)}
/>
</motion.div>
+ </Fragment>
))}
</div>
)}
diff --git a/src/components/models/ModelTiles.tsx b/src/components/models/ModelTiles.tsx
index 7c75bf0e..e034844e 100644
--- a/src/components/models/ModelTiles.tsx
+++ b/src/components/models/ModelTiles.tsx
@@ -13,6 +13,7 @@ import type { LucideIcon } from 'lucide-react'
import type { DiscoverModel, DownloadProgress, ModelBundle } from '../../api/discover'
import { formatBytes, countLabel } from '../../lib/formatters'
import { bundleVramNeedGb } from '../../lib/hardware'
+import { tierMarks } from '../../lib/render/model-tier'
import { modelTileAction } from '../../lib/model-tile-action'
import { ICON_SM } from '../ui/icon-size'
@@ -571,6 +572,9 @@ export function BundleTile({ bundle, vramGb, complete, downloading, hasErrors, o
<div className="flex items-center gap-1.5 min-w-0">
<h3 className="text-[0.78rem] font-semibold text-gray-900 dark:text-white truncate">{bundle.name}</h3>
{bundle.hot && !complete && <HotMark />}
+ {tierMarks(bundle).map((t) => (
+ <span key={t.label} className={`shrink-0 rounded px-1.5 py-0.5 t-micro font-semibold ${t.color}`}>{t.label}</span>
+ ))}
</div>
{bundle.description && (
<p className="t-micro text-gray-500 dark:text-gray-400 leading-snug mt-0.5 line-clamp-2">{bundle.description}</p>
diff --git a/src/components/models/__tests__/die-stufen-im-model-manager.test.tsx b/src/components/models/__tests__/die-stufen-im-model-manager.test.tsx
new file mode 100644
index 00000000..c92375e9
--- /dev/null
+++ b/src/components/models/__tests__/die-stufen-im-model-manager.test.tsx
@@ -0,0 +1,110 @@
+/**
+ * @vitest-environment jsdom
+ *
+ * Der Model Manager ordnet seine Bild- und Video-Bundles nach Stufe
+ * (02.10.2026, David): "Best" steht oben und traegt eine kleine Marke, die
+ * aelteren Modelle stehen gesammelt unten unter "Older models", nichts wird
+ * versteckt. Dieselbe Regel und dieselbe Optik wie in den Cloud-Waehlern
+ * (lib/render/model-tier.ts).
+ *
+ * Gemessen an der gerenderten Seite, nicht am Quelltext.
+ *
+ * Run: npx vitest run src/components/models/__tests__/die-stufen-im-model-manager.test.tsx
+ */
+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
+import { render, screen, cleanup, waitFor } from '@testing-library/react'
+
+vi.mock('../../../api/backend', async (importOriginal) => ({
+ ...(await importOriginal<typeof import('../../../api/backend')>()),
+ backendCall: vi.fn(async () => []),
+ openExternal: vi.fn(),
+ isTauri: () => false,
+ isMacOS: () => false,
+}))
+vi.mock('../../../api/comfyui', async (importOriginal) => ({
+ ...(await importOriginal<typeof import('../../../api/comfyui')>()),
+ getSystemVRAM: vi.fn(async () => 24),
+ readComfyFolderLists: vi.fn(async () => ({})),
+ refreshComfyModels: vi.fn(async () => {}),
+}))
+vi.mock('../../../lib/hardware', async (importOriginal) => ({
+ ...(await importOriginal<typeof import('../../../lib/hardware')>()),
+ getMaxVramGb: vi.fn(async () => 24),
+ getTotalRamGb: vi.fn(async () => 64),
+}))
+vi.mock('../CivitaiSearchPanel', () => ({ CivitaiSearchPanel: () => null }))
+vi.mock('../../chat/LuEngineSwitchBar', () => ({ LuEngineSwitchBar: () => null }))
+
+import { DiscoverModels } from '../DiscoverModels'
+import { getImageBundles, getVideoBundles } from '../../../api/model-bundles'
+import { OLDER_GROUP } from '../../../lib/render/model-tier'
+
+beforeEach(() => {
+ cleanup()
+ vi.stubGlobal('ResizeObserver', class { observe() {} unobserve() {} disconnect() {} })
+})
+afterEach(() => { cleanup(); vi.unstubAllGlobals() })
+
+/** Die Karten in der Reihenfolge, in der der Kunde sie sieht, samt Zwischenzeile. */
+function lies() {
+ const raster = document.querySelector('.grid') as HTMLElement
+ const kinder = Array.from(raster.children) as HTMLElement[]
+ const reihe: Array<{ typ: 'kopf' | 'karte'; text: string; best?: boolean }> = []
+ for (const k of kinder) {
+ const gruppe = k.getAttribute('data-tier-group')
+ if (gruppe) { reihe.push({ typ: 'kopf', text: gruppe }); continue }
+ const name = k.querySelector('[data-bundle-tile]')?.getAttribute('data-bundle-tile') ?? ''
+ const best = Array.from(k.querySelectorAll('h3 ~ span')).some((s) => s.textContent === 'Best')
+ reihe.push({ typ: 'karte', text: name, best })
+ }
+ return reihe
+}
+
+describe('der Video-Reiter', () => {
+ it('fuehrt die Besten oben mit "Best", sammelt die Aelteren unter "Older models"', async () => {
+ render(<DiscoverModels category="video" />)
+ await waitFor(() => expect(document.querySelectorAll('[data-bundle-tile]').length).toBeGreaterThan(5))
+ const reihe = lies()
+ const karten = reihe.filter((r) => r.typ === 'karte')
+ const mainstream = getVideoBundles().filter((b) => !b.uncensored)
+ expect(karten.map((r) => r.text).sort()).toEqual(mainstream.map((b) => b.name).sort())
+
+ const tierVon = (name: string) => getVideoBundles().find((b) => b.name === name)!.tier
+ const rank = { best: 0, standard: 1, older: 2 }
+ const ranks = karten.map((r) => rank[tierVon(r.text)])
+ expect(ranks).toEqual([...ranks].sort((a, b) => a - b))
+
+ // Marke "Best" genau an den Besten, an keiner anderen.
+ for (const k of karten) expect(k.best, k.text).toBe(tierVon(k.text) === 'best')
+ const best = karten.filter((k) => k.best).map((k) => k.text)
+ expect(best).toEqual(expect.arrayContaining([
+ 'LTX 2.5 · Video with Sound', 'MiniMax H3 · Video with Sound', 'FastH3 · MiniMax H3 in 8 Steps',
+ ]))
+
+ // Genau eine Zwischenzeile, direkt vor der ersten aelteren Karte.
+ const koepfe = reihe.filter((r) => r.typ === 'kopf')
+ expect(koepfe).toEqual([{ typ: 'kopf', text: OLDER_GROUP }])
+ const i = reihe.findIndex((r) => r.typ === 'kopf')
+ expect(tierVon(reihe[i + 1].text)).toBe('older')
+ expect(tierVon(reihe[i - 1].text)).not.toBe('older')
+ // Der alte LTX steht unten, nicht verschwunden.
+ expect(karten.map((r) => r.text).slice(i)).toContain('LTX Video 2.3 · 22B FP8')
+ })
+})
+
+describe('der Bild-Reiter', () => {
+ it('Qwen-Image 2.1, Z-Image, FLUX 2, ERNIE oben, die SDXL-Klassiker und FLUX 1 unten', async () => {
+ render(<DiscoverModels category="image" />)
+ await waitFor(() => expect(document.querySelectorAll('[data-bundle-tile]').length).toBeGreaterThan(3))
+ const reihe = lies()
+ const karten = reihe.filter((r) => r.typ === 'karte')
+ const mainstream = getImageBundles().filter((b) => !b.uncensored)
+ expect(karten.map((r) => r.text).sort()).toEqual(mainstream.map((b) => b.name).sort())
+ const i = reihe.findIndex((r) => r.typ === 'kopf')
+ const oben = reihe.slice(0, i).map((r) => r.text)
+ expect(oben).toEqual(expect.arrayContaining(['Qwen-Image 2.1 (Generate and Edit)', 'FLUX 2 Klein 4B (Next Gen)']))
+ const unten = reihe.slice(i + 1).map((r) => r.text)
+ expect(unten).toEqual(expect.arrayContaining(['FLUX.1 [dev] FP8 (High Quality)']))
+ expect(screen.getByText(OLDER_GROUP)).toBeTruthy()
+ })
+})
diff --git a/src/lib/render/__tests__/local-model-tier.test.ts b/src/lib/render/__tests__/local-model-tier.test.ts
new file mode 100644
index 00000000..fad1b81c
--- /dev/null
+++ b/src/lib/render/__tests__/local-model-tier.test.ts
@@ -0,0 +1,124 @@
+/**
+ * Die Stufen der lokalen ComfyUI-Modelle (02.10.2026, David).
+ *
+ * Zwei Seiten muessen dasselbe sagen: der Katalog (jedes Bundle traegt `tier`)
+ * und der lokale Waehler, der eine installierte Datei nur aus Typ und Namen
+ * kennt (local-model-tier.ts). Dieser Test haelt sie gleich und haelt fest,
+ * welche Familie wohin gehoert, mit dem Grund im Namen des Falls.
+ */
+import { describe, it, expect } from 'vitest'
+import { localTier } from '../local-model-tier'
+import { sortByTier, tierGroup, tierMarks, OLDER_GROUP } from '../model-tier'
+import { classifyModel } from '../../../api/comfyui'
+import {
+ getImageBundles, getVideoBundles, getAudioBundles, getLipsyncBundles, getMotionBundles, type ModelBundle,
+} from '../../../api/model-bundles'
+
+const ALL: ModelBundle[] = [
+ ...getImageBundles(), ...getVideoBundles(), ...getAudioBundles(), ...getLipsyncBundles(), ...getMotionBundles(),
+]
+
+/** Die Datei, die das Bundle tatsaechlich rechnet (nicht VAE oder Encoder). */
+const mainFile = (b: ModelBundle) =>
+ b.files.find((f) => ['diffusion_models', 'checkpoints', 'unet'].includes(f.subfolder ?? ''))?.filename ?? ''
+
+const tierOfFile = (name: string) => localTier({ name, type: classifyModel(name) })
+
+describe('jedes lokale Bundle traegt eine Stufe', () => {
+ it('alle 37 Bundles haben best, standard oder older', () => {
+ expect(ALL.length).toBe(37)
+ for (const b of ALL) expect(['best', 'standard', 'older'], b.name).toContain(b.tier)
+ })
+
+ it('Katalog und Waehler sagen dasselbe: die Stufe des Bundles ist die Stufe seiner Hauptdatei', () => {
+ for (const b of ALL) {
+ // Ein Bundle ohne eigene Hauptdatei (Krea 2 Begleitdateien, SDXL-VAE, Pixel Art
+ // LoRA) kennt der Waehler nicht als Modell; dort zaehlt die Familie des Bundles.
+ const name = mainFile(b)
+ const viaFile = name ? localTier({ name, type: classifyModel(name) }) : null
+ const viaFamily = localTier({ name, type: b.workflow })
+ expect(viaFamily, `${b.name} (Familie ${b.workflow})`).toBe(b.tier)
+ if (viaFile && name) {
+ // AnimateDiff und die SD1.5-Basis tragen nie den Typ des Bundles.
+ if (b.workflow !== 'animatediff') expect(viaFile, `${b.name} · ${name}`).toBe(b.tier)
+ }
+ }
+ })
+})
+
+describe('welche Familie wohin gehoert', () => {
+ const best = [
+ ['LTX 2.5', 'ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors'],
+ ['MiniMax H3', 'minimax_h3_fl2va_pruned_int8_convrot.safetensors'],
+ ['FastH3', 'fastvideo_fasth3_8step_v2_pruned_int8_convrot.safetensors'],
+ ['Qwen-Image 2.1', 'qwen_image_2.1_int8_convrot.safetensors'],
+ ['Z-Image Turbo', 'z_image_turbo_bf16.safetensors'],
+ ['Z-Image Base', 'z_image_bf16.safetensors'],
+ ['FLUX 2 Klein', 'flux-2-klein-base-4b.safetensors'],
+ ['Krea 2', 'krea-2-dev-fp8.safetensors'],
+ ['ERNIE-Image', 'ernie-image-turbo.safetensors'],
+ ['YuE2', 'yue2_3b_int8_convrot.safetensors'],
+ ['ACE Step 1.5 Turbo', 'ace_step_1.5_turbo_aio.safetensors'],
+ ]
+ const standard = [
+ ['Wan 2.2 TI2V 5B', 'wan2.2_ti2v_5B_fp16.safetensors'],
+ ['Wan 2.2 Rapid AIO', 'wan2.2-i2v-rapid-aio-v10-nsfw-Q4_K_M.gguf'],
+ ['Wan 2.2 S2V', 'wan2.2_s2v_14B_fp8_scaled.safetensors'],
+ ['Wan 2.2 Animate', 'Wan2.2-Animate-14B-Q4_K_M.gguf'],
+ ['ACE Step v1', 'ace_step_v1_3.5b.safetensors'],
+ ]
+ const older = [
+ ['Juggernaut XL', 'Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors'],
+ ['RealVisXL', 'RealVisXL_V5.0_fp16.safetensors'],
+ ['DreamShaper XL', 'DreamShaperXL_Turbo_V2-SFW.safetensors'],
+ ['FLUX 1 schnell', 'flux1-schnell-fp8.safetensors'],
+ ['FLUX 1 dev', 'flux1-dev-fp8.safetensors'],
+ ['Wan 2.1 1.3B', 'wan2.1_t2v_1.3B_bf16.safetensors'],
+ ['Wan 2.1 14B', 'wan2.1_t2v_14B_fp8_e4m3fn.safetensors'],
+ ['NSFW Wan 14B', 'nsfw_wan_14b_e15_q4_k.gguf'],
+ ['Wan VACE 1.3B', 'wan2.1_vace_1.3B_fp16.safetensors'],
+ ['HunyuanVideo 1.5', 'hunyuanvideo1.5_480p_t2v_cfg_distilled_fp8_scaled.safetensors'],
+ ['LTX 2.3', 'ltx-2.3-22b-distilled-fp8.safetensors'],
+ ['FramePack', 'FramePackI2V_HY_fp8_e4m3fn.safetensors'],
+ ['SVD', 'svd_xt_1_1.safetensors'],
+ ['Mochi', 'mochi_preview_fp8_scaled.safetensors'],
+ ['Cosmos 7B', 'Cosmos-1_0-Diffusion-7B-Text2World.safetensors'],
+ ]
+
+ it.each(best)('%s ist best', (_n, file) => { expect(tierOfFile(file)).toBe('best') })
+ it.each(standard)('%s ist standard', (_n, file) => { expect(tierOfFile(file)).toBe('standard') })
+ it.each(older)('%s ist older', (_n, file) => { expect(tierOfFile(file)).toBe('older') })
+
+ it('was keine Liste nennt, bleibt standard und traegt nichts', () => {
+ expect(localTier({ name: 'mystery.safetensors', type: 'unknown' })).toBe('standard')
+ expect(localTier({ name: 'chroma1-hd.safetensors', type: 'chroma' })).toBe('standard')
+ expect(tierMarks({ tier: 'standard' })).toEqual([])
+ expect(tierGroup({ tier: 'standard' })).toBeUndefined()
+ })
+})
+
+describe('die Reihenfolge im Waehler', () => {
+ const list = [
+ 'Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors', 'chroma1-hd.safetensors', 'qwen_image_2.1_int8_convrot.safetensors',
+ 'flux1-dev-fp8.safetensors', 'z_image_turbo_bf16.safetensors', 'wan2.2_ti2v_5B_fp16.safetensors',
+ ].map((name) => ({ name, tier: tierOfFile(name) }))
+
+ it('Beste oben mit "Best", der Rest in gewohnter Reihenfolge, Aeltere unten unter "Older models"', () => {
+ const sorted = sortByTier(list)
+ expect(sorted.map((m) => m.name)).toEqual([
+ 'qwen_image_2.1_int8_convrot.safetensors', 'z_image_turbo_bf16.safetensors',
+ 'chroma1-hd.safetensors', 'wan2.2_ti2v_5B_fp16.safetensors',
+ 'Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors', 'flux1-dev-fp8.safetensors',
+ ])
+ expect(sorted.slice(0, 2).map((m) => tierMarks(m).map((t) => t.label))).toEqual([['Best'], ['Best']])
+ expect(sorted.slice(2, 4).map((m) => tierGroup(m))).toEqual([undefined, undefined])
+ expect(sorted.slice(4).map((m) => tierGroup(m))).toEqual([OLDER_GROUP, OLDER_GROUP])
+ })
+
+ it('sortiert, ohne etwas zu verlieren oder die Eingabe zu veraendern', () => {
+ const before = list.map((m) => m.name)
+ const sorted = sortByTier(list)
+ expect(sorted).toHaveLength(list.length)
+ expect(list.map((m) => m.name)).toEqual(before)
+ })
+})
diff --git a/src/lib/render/local-model-tier.ts b/src/lib/render/local-model-tier.ts
new file mode 100644
index 00000000..0966b509
--- /dev/null
+++ b/src/lib/render/local-model-tier.ts
@@ -0,0 +1,51 @@
+// Welche Stufe ein lokales ComfyUI-Modell traegt (02.10.2026, David).
+//
+// Die Cloud-Waehler lesen `tier` aus dem Katalog. Ein lokales Modell ist eine
+// Datei auf der Platte, und die Datei weiss nichts von einer Stufe, also wird sie
+// hier aus der Architektur (und bei zwei Familien aus dem Namen) gelesen. Die
+// Bundles im Katalog (api/model-bundles.ts) tragen dieselbe Stufe als Feld; ein
+// Test haelt beide Seiten gleich, damit der Model Manager und der Waehler nie
+// verschiedener Meinung sind.
+//
+// Die Stufe ordnet und kennzeichnet, sie versteckt nichts. Alle lokalen Modelle
+// sind offene Gewichte, darum gibt es hier kein `weights`.
+//
+// Diese Datei ist rein und kennt api/comfyui nicht (die Typen kommen als String
+// herein), damit lib/render und api keinen Importkreis bilden.
+
+import type { ModelTier } from './model-tier'
+
+/** Heutiger Stand der Technik unter den offenen Gewichten, lokal lauffaehig. */
+const BEST = new Set([
+ 'ltx25', 'minimaxh3', // Video mit Ton
+ 'qwenimage', 'zimage', 'flux2', 'krea2', 'ernie_image', // Bild
+ 'yue2', // Musik
+])
+
+/** Von einer neueren Familie abgeloest. Nicht versteckt, nur nach unten gesammelt. */
+const OLDER = new Set([
+ 'sdxl', 'sd15', 'flux', // Bild: SDXL-Klassiker, FLUX 1
+ 'ltx', 'wan', 'wanvace', 'hunyuan', 'mochi', 'cosmos', 'svd', 'framepack', // Video
+ 'animatediff', 'cogvideo', 'pyramidflow', 'allegro',
+])
+
+/** ACE Step 1.5 ist der aktuelle Stand, v1 die leichtere Variante daneben. */
+const ACE_15 = /1[._-]?5/
+
+/**
+ * Die Stufe eines lokalen Modells. Alles, was keine der Listen nennt (Wan 2.2,
+ * Chroma, HiDream, SD 3.5, Lumina 2, Qwen-Image 1, Wan 2.2 in allen Formen, ACE
+ * Step v1, ein unbekannter Dateiname), bleibt 'standard': gewohnte Reihenfolge, keine Marke.
+ */
+export function localTier(m: { name: string; type: string }): ModelTier {
+ // Die 14B-Wan-Mischungen auf 2.2-Basis (Rapid AIO) tragen den Typ 'wan' wie
+ // Wan 2.1, sind aber nicht aelter als Wan 2.2 selbst.
+ if (m.type === 'wan' && /wan[._-]?2[._-]?2/i.test(m.name)) return 'standard'
+ if (m.type === 'ace') {
+ const stem = m.name.toLowerCase().replace(/\.[a-z0-9]+$/, '').replace(/^.*ace[_-]?step/, '')
+ return ACE_15.test(stem) ? 'best' : 'standard'
+ }
+ if (BEST.has(m.type)) return 'best'
+ if (OLDER.has(m.type)) return 'older'
+ return 'standard'
+}
diff --git a/src/lib/render/music-ui.ts b/src/lib/render/music-ui.ts
index 6e88f80a..f192ad27 100644
--- a/src/lib/render/music-ui.ts
+++ b/src/lib/render/music-ui.ts
@@ -10,7 +10,7 @@
export type CreateBackendKind = 'local' | 'cloud'
/**
- * Local music always runs an ACE-Step checkpoint through buildMusicWorkflow,
+ * Local music runs an ACE-Step or a YuE2 checkpoint through buildMusicWorkflow,
* and that builder feeds `lyrics` into the encoder for every one of them, so
* the box is always right locally. Cloud depends on the catalog flag, because
* only ace-step-1.5 has a lyrics input on the wire.
diff --git a/src/stores/createStore.ts b/src/stores/createStore.ts
index fead4338..39b7cb3a 100644
--- a/src/stores/createStore.ts
+++ b/src/stores/createStore.ts
@@ -152,6 +152,7 @@ export const MODEL_TYPE_DEFAULTS: Record<ModelType, {
wan22: { steps: 30, cfgScale: 5.0, sampler: 'euler', scheduler: 'simple', width: 1024, height: 576, frames: 49, fps: 24 },
hunyuan: { steps: 30, cfgScale: 6.0, sampler: 'euler', scheduler: 'normal', width: 848, height: 480, frames: 45, fps: 15 },
ltx: { steps: 20, cfgScale: 1.0, sampler: 'euler', scheduler: 'simple', width: 768, height: 512, frames: 97, fps: 24 },
+ ltx25: { steps: 8, cfgScale: 1.0, sampler: 'euler_ancestral', scheduler: 'simple', width: 1280, height: 704, frames: 121, fps: 24 },
minimaxh3: { steps: 20, cfgScale: 1.0, sampler: 'res_multistep', scheduler: 'simple', width: 1344, height: 768, frames: 124, fps: 24 },
mochi: { steps: 40, cfgScale: 4.5, sampler: 'euler', scheduler: 'normal', width: 848, height: 480, frames: 49, fps: 24 },
cosmos: { steps: 30, cfgScale: 7.0, sampler: 'euler', scheduler: 'normal', width: 1280, height: 704, frames: 57, fps: 24 },
@@ -163,6 +164,7 @@ export const MODEL_TYPE_DEFAULTS: Record<ModelType, {
// 2.5.8 specialized local lanes (see comfyui.ts MODEL_TYPE_DEFAULTS for the
// node-default provenance). ACE width/height are unused by the audio graph.
ace: { steps: 50, cfgScale: 5.0, sampler: 'euler', scheduler: 'simple', width: 1024, height: 1024 },
+ yue2: { steps: 32, cfgScale: 1.0, sampler: 'dpm_2', scheduler: 'sgm_uniform', width: 1024, height: 1024 },
wans2v: { steps: 20, cfgScale: 6.0, sampler: 'euler', scheduler: 'simple', width: 832, height: 480, frames: 77, fps: 16 },
wananimate: { steps: 20, cfgScale: 5.0, sampler: 'euler', scheduler: 'simple', width: 832, height: 480, frames: 77, fps: 16 },
wanvace: { steps: 25, cfgScale: 5.0, sampler: 'euler', scheduler: 'simple', width: 832, height: 480, frames: 81, fps: 16 },