Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Studio: LTX-2.5 VAE fixture, catalog row and Video page defaults (#13500)
Daniel Han4e8888c46550
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts b/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.tsindex 1f19347b64a..259e5f2e99f 100644--- a/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts+++ b/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts@@ -479,6 +479,21 @@ export const IMAGE_CATALOG: CatalogGroup[] = [},];+// LTX-2.5 measured on a B200 capped to the tier's GiB, default 1280x704, 121 frames. Host RAM is the server's peak+// RSS plus the Gemma 4 encoder worker's.+// Diffusers pack: the plan quantises the DiT to int8, so both tiers need a host that runs a dense quant. Encoder on+// the CPU in both. 24 GiB: DiT streamed by group offload, 21.0 GB card peak, 47.7 + 25.3 GiB host. 48 GiB: DiT+// resident, 43.8 GB card peak, 20.1 + 25.9 GiB host.+const LTX25_OFFLOAD_TIERS: readonly OffloadFitTier[] = [+ { gpuGb: 24, systemRamGb: 80, requiresQuantisedStreaming: true, requiresDenseQuant: true },+ { gpuGb: 48, systemRamGb: 48, requiresDenseQuant: true },+];++// The single file keeps its bf16 DiT (no runtime quant on single-file loads), streamed by group offload in both+// tiers. 24 GiB: encoder on the CPU, 21.3 GB card peak, 72.0 + 25.3 GiB host. 48 GiB: encoder on the card, 37.2 GB+// card peak, 72.1 + 23.6 GiB host. Both need about 97 GiB of RAM, so one tier covers them.+const LTX25_SINGLE_FILE_OFFLOAD_TIERS: readonly OffloadFitTier[] = [{ gpuGb: 24, systemRamGb: 100 }];+export const VIDEO_CATALOG: CatalogGroup[] = [{canonicalId: "MiniMaxAI/MiniMax-H3",@@ -542,6 +557,29 @@ export const VIDEO_CATALOG: CatalogGroup[] = [gguf("unsloth/LTX-2.3-GGUF", { totalParams: 21_005_004_544 }),],},+ {+ // LTX-2.5 distilled: the Diffusers pack (its Gemma 4 encoder runs in Studio's transformers 5.10 sidecar) plus+ // the official split single-file DiT, which loads against the companion files beside it in the same repo.+ canonicalId: "Lightricks/LTX-2.5-Diffusers",+ displayName: "LTX 2.5 distilled",+ description: "Text- and image-to-video with audio",+ scope: "video",+ capabilities: { audio: true },+ artifacts: [+ // Both repos are gated on the Hub (license + token).+ bf16Pipeline("Lightricks/LTX-2.5-Diffusers", 75, {+ label: "BF16 - Diffusers",+ gated: true,+ offloadFitTiers: LTX25_OFFLOAD_TIERS,+ }),+ bf16Single(+ "Lightricks/LTX-2.5",+ "diffusion_models/ltx-2.5-22b-distilled-transformer-bf16.safetensors",+ 75,+ { label: "BF16 - Single file", gated: true, offloadFitTiers: LTX25_SINGLE_FILE_OFFLOAD_TIERS },+ ),+ ],+ },{canonicalId: "Lightricks/LTX-2",displayName: "LTX 2 (base)",@@ -1169,10 +1207,13 @@ export interface OffloadFitTier {systemRamGb: number;/** Only offered where `/api/system.quantised_streaming` says group offload streams torchao weights. */requiresQuantisedStreaming?: boolean;+ /** Measured with a runtime dense quant (int8 / fp8) DiT: only offered where the host runs one. */+ requiresDenseQuant?: boolean;}function offloadTierMet(tier: OffloadFitTier, budget: DeviceBudget): boolean {if (tier.requiresQuantisedStreaming && budget.quantisedStreaming !== true) return false;+ if (tier.requiresDenseQuant && !budget.denseQuantSchemes?.length) return false;return budget.gpuGb >= tier.gpuGb && budget.systemRamGb >= tier.systemRamGb;}diff --git a/studio/frontend/src/features/video/video-page.tsx b/studio/frontend/src/features/video/video-page.tsxindex 581dc7c57cb..5f04019d7b6 100644--- a/studio/frontend/src/features/video/video-page.tsx+++ b/studio/frontend/src/features/video/video-page.tsx@@ -272,11 +272,41 @@ const MODEL_DEFAULTS: Array<{ match: string; steps: number; guidance: number }>{ match: "hunyuanvideo", steps: 20, guidance: 6 },];-function defaultsFor(repoId: string): { steps: number; guidance: number } {+function defaultsFor(repoId: string, family?: string): { steps: number; guidance: number } {const fold = (text: string) => `${text.toLowerCase().replace(/[-_.\s]+/g, "-")}-`;const id = fold(repoId);// The Wan and FusionX rows count only in the model / file name, as on the backend.const name = fold(repoId.replace(/[\\/]+$/, "").split(/[\\/]/).pop() ?? "");+ // LTX-2.5 (diffusers' pre-release "2.4" too) is decided on the two names the backend gets: the selected file and+ // the repo, read by their last segment. A local file's repo is the folder it sits in (the picker loads it from that+ // directory), a Hub file's is the repo segment after the owner. The version is ltx_name_version's ("ltx-2.5",+ // "LTX25", "ltx2.5", "LTX-Video-2.5"), or the explicit ltx-2.5 family. The variant is ltx25_is_dev's: the first+ // name naming one decides, "distill" before a dev / full / sft token (or transformer_full); a dev pick runs 30+ // steps at guidance 3, anything else the distilled 8 at guidance 1.+ const segments = repoId.replace(/[\\/]+$/, "").split(/[\\/]/);+ const local = /^([\\/~.]|[a-z]:)/i.test(repoId);+ const fileLeaf = segments[segments.length - 1] ?? "";+ const repoLeaf = local ? segments[segments.length - 2] : segments.length >= 3 ? segments[1] : undefined;+ const names = [fileLeaf, ...(repoLeaf ? [repoLeaf] : [])].map((n) => n.toLowerCase());+ const ltxMinor = (text: string) => {+ for (const found of text.matchAll(+ /(?<![a-z0-9])ltx(?:v|[-_ ]?video)?[-_ ]?2(?:[._]([0-9]+)(?![0-9])|([0-9])(?![0-9a-z])|(?![0-9a-z]|[._][0-9]))/g,+ )) {+ if (found[2] === undefined || Number(found[2]) >= 4) return Number(found[1] ?? found[2] ?? 0);+ }+ return undefined;+ };+ // The family itself comes from the weights, so a name-less pair falls back to the nearest folder naming a release.+ const minor = [...names, ...segments.slice(0, -1).reverse().map((n) => n.toLowerCase())]+ .map(ltxMinor)+ .find((m) => m !== undefined);+ if (family?.toLowerCase() === "ltx-2.5" || minor === 4 || minor === 5) {+ for (const n of names) {+ if (/(?<![a-z0-9])distill/.test(n)) break;+ if (/(?<![a-z0-9])(?:dev|full|sft)(?![a-z0-9])|transformer_full/.test(n)) return { steps: 30, guidance: 3 };+ }+ return { steps: 8, guidance: 1 };+ }return (MODEL_DEFAULTS.find((d) =>(d.match.startsWith("wan") || d.match === "fusionx" ? name : id).includes(d.match),@@ -285,6 +315,8 @@ function defaultsFor(repoId: string): { steps: number; guidance: number } {}function defaultsKeyFor(repoId: string, familyOverride: string): string {+ // An explicit LTX-2.5 family keeps the id: its file and repo names still pick dev or distilled.+ if (explicitFamily(familyOverride)?.toLowerCase() === "ltx-2.5") return repoId;return defaultsFor(repoId) !== DEFAULT_GEN ? repoId : (explicitFamily(familyOverride) ?? repoId);}@@ -1488,7 +1520,10 @@ function VideoGenerator({// whether the user takes the form after THIS pick.const claimedAt = videoFormClaimId();pickRecipeSuperseded.current = () => videoFormClaimId() !== claimedAt;- const recommended = defaultsFor(defaultsKeyFor(repoId, effectiveFamilyOverride));+ const recommended = defaultsFor(+ defaultsKeyFor(repoId, effectiveFamilyOverride),+ explicitFamily(effectiveFamilyOverride),+ );setPendingModelDefaults(recommended);setSteps(recommended.steps);setGuidance(recommended.guidance);diff --git a/studio/frontend/tests/video-model-defaults.test.ts b/studio/frontend/tests/video-model-defaults.test.tsindex d12d509db1a..432f05dee57 100644--- a/studio/frontend/tests/video-model-defaults.test.ts+++ b/studio/frontend/tests/video-model-defaults.test.ts@@ -29,13 +29,14 @@ const defaultsFor = (() => {].join("\n").replace(/: Array<\{[^}]*\}>/, "")- .replace(/\(repoId: string\): \{[^}]*\}/, "(repoId)")+ .replace(/\(repoId: string, family\?: string\): \{[^}]*\}/, "(repoId, family)").replace(/\((\w+): string\)/g, "($1)");const pick = new Function(`${source}\nreturn defaultsFor;`)() as (repoId: string,+ family?: string,) => { steps: number; guidance: number };- return (repoId: string) => {- const { steps, guidance } = pick(repoId);+ return (repoId: string, family?: string) => {+ const { steps, guidance } = pick(repoId, family);return { steps, guidance };};})();@@ -68,6 +69,43 @@ test("the other families keep their recipes", () => {["MiniMaxAI/MiniMax_H3", 30, 1],["Lightricks/LTX-2.3", 40, 4],["Lightricks/LTX-2.3/ltx-2.3-22b-distilled.safetensors", 8, 1],+ ["Lightricks/LTX-2.5-Diffusers", 8, 1],+ ["Lightricks/LTX-2.5/diffusion_models/ltx-2.5-22b-distilled-transformer-bf16.safetensors", 8, 1],+ ["Lightricks/LTX-2.5/diffusion_models/ltx-2.5-22b-dev-transformer-bf16.safetensors", 30, 3],+ // Every variant name the backend's ltx25_is_dev accepts, with or without the size tag.+ ["someone/LTX-2.5-GGUF/ltx-2.5-dev.safetensors", 30, 3],+ ["/models/ltx_2.5_full_bf16.safetensors", 30, 3],+ ["someone/LTX-2.5-sft", 30, 3],+ ["someone/LTX-2.5/ltx-2.5-transformer_full.safetensors", 30, 3],+ // An opaque file name falls back to the repo: a Hub file's repo segment, a local file's own folder (the picker+ // loads a local file from its directory), as the backend gets them.+ ["/models/LTX-2.5-dev/model.safetensors", 30, 3],+ ["C:\\models\\LTX-2.5-dev\\model.safetensors", 30, 3],+ ["someone/LTX-2.5-sft/diffusion_models/model.safetensors", 30, 3],+ ["/models/LTX-2.5-sft/diffusion_models/model.safetensors", 8, 1],+ ["/home/dev/models/LTX-2.5/model.safetensors", 8, 1],+ // Any non-alphanumeric boundary, as the backend's token regex.+ ["/models/LTX-2.5/ltx-2.5-(dev).safetensors", 30, 3],+ ["/models/LTX-2.5/ltx-2.5+sft.safetensors", 30, 3],+ // Only the file and its repo count: an older LTX folder further up does not.+ ["/models/LTX-2.3-archive/LTX-2.5-dev/model.safetensors", 30, 3],+ ["/models/LTX-2.5-archive/LTX-2.3/model.safetensors", 40, 4],+ ["/models/LTX-2.5-dev/ltx-2.5-distilled.safetensors", 8, 1],+ // The file decides over the repo, and "distilled" wins inside one name.+ ["someone/LTX-2.5-dev/ltx-2.5-distilled.safetensors", 8, 1],+ ["someone/LTX-2.5/ltx-2.5-dev-distilled.safetensors", 8, 1],+ ["someone/LTX-2.5/ltx-2.5-developer.safetensors", 8, 1],+ // The compact spellings the backend's ltx_name_version accepts, and diffusers' pre-release "2.4".+ ["someone/LTX25", 8, 1],+ ["someone/ltx2.5", 8, 1],+ ["someone/LTX-Video-2.5", 8, 1],+ ["someone/LTXV-2.5-dev", 30, 3],+ ["/models/ltx25_dev.safetensors", 30, 3],+ ["someone/LTX-2.4-Diffusers", 8, 1],+ // Neither the old releases nor a future one take the LTX-2.5 recipe.+ ["someone/LTX2", 40, 4],+ ["someone/ltx-2.3-dev", 40, 4],+ ["someone/LTX-2.6", 40, 4],["hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-480p_t2v", 20, 6],["someone/unknown-model", 8, 1],["wan21-lab/HunyuanVideo-1.5-Diffusers-480p_t2v", 20, 6],@@ -82,3 +120,10 @@ test("the other families keep their recipes", () => {assert.deepEqual(defaultsFor(id), { steps, guidance }, id);}});++test("an explicit LTX-2.5 family still reads the variant from the file and repo names", () => {+ assert.deepEqual(defaultsFor("/models/opaque/transformer_full.safetensors", "ltx-2.5"), { steps: 30, guidance: 3 });+ assert.deepEqual(defaultsFor("/models/LTX-dev-run/model.safetensors", "ltx-2.5"), { steps: 30, guidance: 3 });+ assert.deepEqual(defaultsFor("/models/opaque/model.safetensors", "ltx-2.5"), { steps: 8, guidance: 1 });+ assert.deepEqual(defaultsFor("/models/opaque/model.safetensors"), { steps: 8, guidance: 1 });+});