Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: expose verified FastH3 V2 image mode (#7830)
[._.]/ Adam Eivy0db61a69c28c
diff --git a/data.reference/media-models.json b/data.reference/media-models.jsonindex fd5a43351f..9f5a7364f2 100644--- a/data.reference/media-models.json+++ b/data.reference/media-models.json@@ -1253,7 +1253,8 @@"fastvideoFamily": "fasth3","fastvideoMlxFormat": "int8","supportedModes": [- "text"+ "text",+ "image"],"defaultWidth": 832,"defaultHeight": 480,@@ -1335,7 +1336,8 @@"fastvideoFamily": "fasth3","fastvideoMlxFormat": "int6","supportedModes": [- "text"+ "text",+ "image"],"defaultWidth": 832,"defaultHeight": 480,diff --git a/server/lib/mediaModels.js b/server/lib/mediaModels.jsindex 4933f98f4c..cb36897eba 100644--- a/server/lib/mediaModels.js+++ b/server/lib/mediaModels.js@@ -470,6 +470,25 @@ export const upgradeFastMetalDownloadSizes = (list) => {return list.map((entry) => FASTMETAL_DOWNLOAD_SIZE_PROFILES.reduce(upgradeFastMetalEntry, entry));};+const FASTH3_V2_IMAGE_MODE_REPO = 'FastVideo/FastVideo-FastH3-8-Step-V2';+const FASTH3_V2_IMAGE_MODE_IDS = new Set(['fasth3_v2_int8', 'fasth3_v2_int6']);++// FastH3 V2 is the only FastH3 MLX lane with the verified image-conditioning+// path. Older persisted registries inherited ['text'] from the preview source+// rows, so upgrade those shipped rows while preserving forks and any explicit+// user capability override.+export const upgradeFastH3V2ImageModes = (list) => {+ if (!Array.isArray(list)) return list;+ return list.map((entry) => {+ if (!isPlainObject(entry)+ || !FASTH3_V2_IMAGE_MODE_IDS.has(entry.id)+ || entry.repo !== FASTH3_V2_IMAGE_MODE_REPO+ || (Array.isArray(entry.supportedModes) && entry.supportedModes.length > 0+ && JSON.stringify(entry.supportedModes) !== JSON.stringify(['text']))) return entry;+ return { ...entry, supportedModes: ['text', 'image'] };+ });+};+// Existing installs already persisted the shipped LTX-2.5 row before its A2V// duration contract was declared. Backfill only the untouched pinned model and// only absent keys: a user-repointed fork or an explicit local override remains@@ -826,6 +845,7 @@ const DEFAULT_REGISTRY = {repo: 'FastVideo/FastVideo-FastH3-8-Step-V2',revision: '3da2ddfe1954d9cda4c05b643dc0f26007a655c5',fastvideoVsa: true,+ supportedModes: ['text', 'image'],steps: 8,samplerNote: 'Quality option: 8 steps with 80% sparse attention, reference implementation. Requires an updated FastVideo runtime with VSA support. INT6 and INT8 share one ~147.9 GB source download; first use converts the DiT locally with routing weights retained. Not a real-time model.',})),@@ -1425,6 +1445,7 @@ const VIDEO_REGISTRY_UPGRADES = Object.freeze([// disclosure block: this row corrects the stale `estimatedDownloadGb` inside// an already-persisted one, and the decorator would never revisit it.Object.freeze({ name: 'upgradeFastMetalDownloadSizes', apply: upgradeFastMetalDownloadSizes }),+ Object.freeze({ name: 'upgradeFastH3V2ImageModes', apply: upgradeFastH3V2ImageModes }),Object.freeze({ name: 'backfillRuntime', apply: backfillRuntime }),// CUDA-only, and in this order: the legacy `ltx_video` row is repointed at the// `cuda_video` runtime first, then the LTX-2.5 memory floor is raised.diff --git a/server/lib/mediaModels.test.js b/server/lib/mediaModels.test.jsindex a130505e47..acd1977942 100644--- a/server/lib/mediaModels.test.js+++ b/server/lib/mediaModels.test.js@@ -39,7 +39,7 @@ describe('data.reference seed file', () => {const upgraded = reloadMediaModels();for (const id of ids) expect(upgraded.video.mlx.find((entry) => entry.id === id)).toBeDefined();const v2 = upgraded.video.mlx.find((entry) => entry.id === 'fasth3_v2_int6');- expect(v2).toMatchObject({ steps: 8, samplerLocked: true, fastvideoVsa: true, fastvideoMlxFormat: 'int6' });+ expect(v2).toMatchObject({ steps: 8, samplerLocked: true, fastvideoVsa: true, fastvideoMlxFormat: 'int6', supportedModes: ['text', 'image'] });expect(v2.termsGate.id).toBe('minimax-h3-community-license-2026-08-02');upgraded.video.mlx = upgraded.video.mlx.filter((entry) => entry.id !== v2.id);writeFileSync(registryFile, JSON.stringify(upgraded));@@ -71,6 +71,18 @@ describe('data.reference seed file', () => {});});+describe('FastH3 V2 image-mode compatibility upgrade', () => {+ it('upgrades shipped V2 rows but preserves forks and explicit custom modes', async () => {+ const { upgradeFastH3V2ImageModes } = await import('./mediaModels.js');+ const shipped = { id: 'fasth3_v2_int6', repo: 'FastVideo/FastVideo-FastH3-8-Step-V2', supportedModes: ['text'] };+ const fork = { ...shipped, repo: 'example/FastH3-fork' };+ const custom = { ...shipped, supportedModes: ['text', 'fflf'] };+ expect(upgradeFastH3V2ImageModes([shipped, fork, custom])).toEqual([+ { ...shipped, supportedModes: ['text', 'image'] }, fork, custom,+ ]);+ });+});+describe('LTX-2.5 CUDA compatibility upgrade', () => {it('raises only the untouched official 32 GB row to the validated 64 GB floor', async () => {const { upgradeLtx25CudaMemoryFloor } = await import('./mediaModels.js');@@ -1638,6 +1650,7 @@ describe('video registry upgrade chain', () => {'upgradeMiniMaxH3OutputControls','upgradeLtx25AudioControls','upgradeFastMetalDownloadSizes',+ 'upgradeFastH3V2ImageModes','backfillRuntime','upgradeLegacyCudaLtxRuntime','upgradeLtx25CudaMemoryFloor',