Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
Merge branch 'feat/minimax-h3-ref2va-backend' into feat/minimax-h3-ref2va-webv2
Lincoln Steinbd2cc93025cc
diff --cc invokeai/frontend/webv2/performance/architecture-baseline.jsonindex f94c80c4b1,1e1222ffa1..28e86a7384--- a/invokeai/frontend/webv2/performance/architecture-baseline.json+++ b/invokeai/frontend/webv2/performance/architecture-baseline.json@@@ -2,15 -2,15 +2,15 @@@"build": {"launchpad": {"baseline": {- "brotliBytes": 837433,- "brotliBytes": 837711,++ "brotliBytes": 837716,"cssRawBytes": 2159,"fontRawBytes": 219480,- "gzipBytes": 836417,- "gzipBytes": 836619,++ "gzipBytes": 836624,"imageRawBytes": 156376,- "initialRawBytes": 1947147,+ "initialRawBytes": 1948152,"largestAssetRawBytes": 746355,"otherAssetRawBytes": 0,- "ownedRawBytes": 69114,+ "ownedRawBytes": 69169,"requestCount": 41,"scriptRequestCount": 25,"sourceOwners": [@@@ -287,15 -287,15 +287,15 @@@]},"limits": {- "brotliBytes": 845808,- "brotliBytes": 846089,++ "brotliBytes": 846094,"cssRawBytes": 2181,"fontRawBytes": 221675,- "gzipBytes": 844782,- "gzipBytes": 844986,++ "gzipBytes": 844991,"imageRawBytes": 157940,- "initialRawBytes": 1966619,+ "initialRawBytes": 1967634,"largestAssetRawBytes": 753819,"otherAssetRawBytes": 0,- "ownedRawBytes": 69114,+ "ownedRawBytes": 69169,"requestCount": 41,"scriptRequestCount": 25},@@@ -305,17 -305,17 +305,17 @@@},"editor": {"baseline": {- "brotliBytes": 1050651,- "brotliBytes": 1056818,++ "brotliBytes": 1057991,"cssRawBytes": 2159,"fontRawBytes": 219480,- "gzipBytes": 1046347,- "gzipBytes": 1052118,++ "gzipBytes": 1053293,"imageRawBytes": 156376,- "initialRawBytes": 2586287,- "initialRawBytes": 2599248,++ "initialRawBytes": 2603620,"largestAssetRawBytes": 746355,"otherAssetRawBytes": 0,- "ownedRawBytes": 115755,- "requestCount": 95,- "scriptRequestCount": 79,+ "ownedRawBytes": 113925,+ "requestCount": 96,+ "scriptRequestCount": 80,"sourceOwners": ["package:@ark-ui/react","package:@chakra-ui/react",@@@ -864,24 -866,24 +866,24 @@@]},"limits": {- "brotliBytes": 1061158,- "brotliBytes": 1067387,++ "brotliBytes": 1068571,"cssRawBytes": 2181,"fontRawBytes": 221675,- "gzipBytes": 1056811,- "gzipBytes": 1062640,++ "gzipBytes": 1063826,"imageRawBytes": 157940,- "initialRawBytes": 2612150,- "initialRawBytes": 2625241,++ "initialRawBytes": 2629657,"largestAssetRawBytes": 753819,"otherAssetRawBytes": 0,- "ownedRawBytes": 115755,- "requestCount": 95,- "scriptRequestCount": 79+ "ownedRawBytes": 113925,+ "requestCount": 96,+ "scriptRequestCount": 80},"owner": "workbench","remediationTicket": "deepen-widget-registry-loading","source": "src/app/WorkbenchApp.tsx"}},- "capturedAt": "2026-08-24",- "capturedAt": "2026-08-29",++ "capturedAt": "2026-08-30","developmentInvalidation": {"platformUiBarrel": {"specifier": "@platform/ui",diff --cc invokeai/frontend/webv2/performance/browser-baseline.jsonindex f808445717,7f170e7059..c67d329e3b--- a/invokeai/frontend/webv2/performance/browser-baseline.json+++ b/invokeai/frontend/webv2/performance/browser-baseline.json@@@ -1,6 -1,6 +1,6 @@@{"browserExecutable": "/home/lstein/.cache/ms-playwright/chromium-1234/chrome-linux64/chrome",- "capturedAt": "2026-08-27",- "capturedAt": "2026-08-29",++ "capturedAt": "2026-08-30","routes": [{"activatedResourceBaseline": {@@@ -25,13 -25,13 +25,13 @@@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 150.69999980926514,- "domContentLoadedMedianMs": 91.19999999925494,++ "domContentLoadedMedianMs": 90.39999999850988,"id": "launchpad","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,"layoutSwitchMedianMs": 0,- "loadMedianMs": 150.89999961853027,- "longestTaskMaxMs": 74,- "loadMedianMs": 91.30000000074506,- "longestTaskMaxMs": 55,++ "loadMedianMs": 90.5,++ "longestTaskMaxMs": 56,"owner": "app","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:launchpad",@@@ -41,24 -41,24 +41,24 @@@"fontRawBytes": 23664,"imageRawBytes": 0,"largestAssetRawBytes": 746355,- "otherRawBytes": 152364,- "otherRawBytes": 151700,++ "otherRawBytes": 152645,"requestCount": 37,- "scriptRawBytes": 1623787,- "scriptRawBytes": 1625475,++ "scriptRawBytes": 1625511,"scriptRequestCount": 33,- "totalRawBytes": 1801974- "totalRawBytes": 1802998++ "totalRawBytes": 1803979},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 0,"largestAssetRawBytes": 753819,- "otherRawBytes": 153888,- "otherRawBytes": 153217,++ "otherRawBytes": 154172,"requestCount": 37,- "scriptRawBytes": 1640025,- "scriptRawBytes": 1641730,++ "scriptRawBytes": 1641767,"scriptRequestCount": 33,- "totalRawBytes": 1819994- "totalRawBytes": 1821028++ "totalRawBytes": 1822019},- "routeReadyMedianMs": 321.29999923706055,- "routeReadyMedianMs": 207.19999999925494,++ "routeReadyMedianMs": 209.60000000149012,"scriptSourceOwnerSet": "launchpad-static","stateProfile": "empty"},@@@ -85,13 -85,13 +85,13 @@@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 151.5999994277954,- "domContentLoadedMedianMs": 92.20000000111759,++ "domContentLoadedMedianMs": 94.09999999776483,"id": "launchpad","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,"layoutSwitchMedianMs": 0,- "loadMedianMs": 151.69999980926514,- "longestTaskMaxMs": 78,- "loadMedianMs": 92.30000000074506,++ "loadMedianMs": 94.09999999776483,+ "longestTaskMaxMs": 56,"owner": "app","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:launchpad",@@@ -101,24 -101,24 +101,24 @@@"fontRawBytes": 23664,"imageRawBytes": 0,"largestAssetRawBytes": 746355,- "otherRawBytes": 152364,- "otherRawBytes": 151700,++ "otherRawBytes": 152645,"requestCount": 37,- "scriptRawBytes": 1623787,- "scriptRawBytes": 1625475,++ "scriptRawBytes": 1625511,"scriptRequestCount": 33,- "totalRawBytes": 1801974- "totalRawBytes": 1802998++ "totalRawBytes": 1803979},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 0,"largestAssetRawBytes": 753819,- "otherRawBytes": 153888,- "otherRawBytes": 153217,++ "otherRawBytes": 154172,"requestCount": 37,- "scriptRawBytes": 1640025,- "scriptRawBytes": 1641730,++ "scriptRawBytes": 1641767,"scriptRequestCount": 33,- "totalRawBytes": 1819994- "totalRawBytes": 1821028++ "totalRawBytes": 1822019},- "routeReadyMedianMs": 336.69999980926514,- "routeReadyMedianMs": 221.90000000037253,++ "routeReadyMedianMs": 223.19999999925494,"scriptSourceOwnerSet": "launchpad-static","stateProfile": "representative"},@@@ -145,15 -145,15 +145,15 @@@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 127.80000019073486,- "domContentLoadedMedianMs": 91.5,++ "domContentLoadedMedianMs": 93.10000000149012,"id": "editor-minimal","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,"layoutSwitchMedianMs": 0,- "loadMedianMs": 128,- "longestTaskMaxMs": 122,- "loadMedianMs": 91.59999999962747,++ "loadMedianMs": 93.30000000074506,+ "longestTaskMaxMs": 79,"owner": "workbench",- "projectSwitchMedianMs": 40.19999980926514,- "projectSwitchMedianMs": 28,++ "projectSwitchMedianMs": 27.600000001490116,"readyMark": "invokeai:ready:widget:center:preview","remediationTicket": "deepen-widget-registry-loading","resourceBaseline": {@@@ -161,24 -161,24 +161,24 @@@"fontRawBytes": 23664,"imageRawBytes": 156376,"largestAssetRawBytes": 746355,- "otherRawBytes": 152364,- "requestCount": 114,- "scriptRawBytes": 3186080,- "scriptRequestCount": 109,- "totalRawBytes": 3520643- "otherRawBytes": 151700,++ "otherRawBytes": 152645,+ "requestCount": 115,- "scriptRawBytes": 3200450,++ "scriptRawBytes": 3207341,+ "scriptRequestCount": 110,- "totalRawBytes": 3534349++ "totalRawBytes": 3542185},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 157940,"largestAssetRawBytes": 753819,- "otherRawBytes": 153888,- "requestCount": 114,- "scriptRawBytes": 3217941,- "scriptRequestCount": 109,- "totalRawBytes": 3555850- "otherRawBytes": 153217,++ "otherRawBytes": 154172,+ "requestCount": 115,- "scriptRawBytes": 3232455,++ "scriptRawBytes": 3239415,+ "scriptRequestCount": 110,- "totalRawBytes": 3569693++ "totalRawBytes": 3577607},- "routeReadyMedianMs": 713.4000005722046,- "routeReadyMedianMs": 585.8000000007451,++ "routeReadyMedianMs": 590.6000000014901,"scriptSourceOwnerSet": "editor-minimal-static","stateProfile": "empty"},@@@ -205,15 -205,15 +205,15 @@@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 134.5,- "domContentLoadedMedianMs": 92.30000000074506,++ "domContentLoadedMedianMs": 91.69999999925494,"id": "editor-minimal","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,"layoutSwitchMedianMs": 0,- "loadMedianMs": 134.60000038146973,- "longestTaskMaxMs": 195,- "loadMedianMs": 92.40000000037253,- "longestTaskMaxMs": 128,++ "loadMedianMs": 91.69999999925494,++ "longestTaskMaxMs": 156,"owner": "workbench",- "projectSwitchMedianMs": 84.39999961853027,- "projectSwitchMedianMs": 41.80000000074506,++ "projectSwitchMedianMs": 46.30000000074506,"readyMark": "invokeai:ready:widget:center:preview","remediationTicket": "deepen-widget-registry-loading","resourceBaseline": {@@@ -221,24 -221,24 +221,24 @@@"fontRawBytes": 23664,"imageRawBytes": 156376,"largestAssetRawBytes": 746355,- "otherRawBytes": 152364,- "requestCount": 114,- "scriptRawBytes": 3186080,- "scriptRequestCount": 109,- "totalRawBytes": 3520643- "otherRawBytes": 151700,++ "otherRawBytes": 152645,+ "requestCount": 115,- "scriptRawBytes": 3200450,++ "scriptRawBytes": 3207341,+ "scriptRequestCount": 110,- "totalRawBytes": 3534349++ "totalRawBytes": 3542185},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 157940,"largestAssetRawBytes": 753819,- "otherRawBytes": 153888,- "requestCount": 114,- "scriptRawBytes": 3217941,- "scriptRequestCount": 109,- "totalRawBytes": 3555850- "otherRawBytes": 153217,++ "otherRawBytes": 154172,+ "requestCount": 115,- "scriptRawBytes": 3232455,++ "scriptRawBytes": 3239415,+ "scriptRequestCount": 110,- "totalRawBytes": 3569693++ "totalRawBytes": 3577607},- "routeReadyMedianMs": 516.3000001907349,- "routeReadyMedianMs": 349.69999999925494,++ "routeReadyMedianMs": 351.5,"scriptSourceOwnerSet": "editor-minimal-static","stateProfile": "representative"},@@@ -258,20 -258,20 +258,20 @@@"cssRawBytes": 0,"fontRawBytes": 0,"imageRawBytes": 0,- "largestAssetRawBytes": 138991,+ "largestAssetRawBytes": 139046,"otherRawBytes": 0,"requestCount": 7,- "scriptRawBytes": 319115,+ "scriptRawBytes": 319168,"scriptRequestCount": 7,- "totalRawBytes": 319115+ "totalRawBytes": 319168},- "domContentLoadedMedianMs": 138,- "domContentLoadedMedianMs": 92,++ "domContentLoadedMedianMs": 91.59999999776483,"id": "editor-canvas",- "layoutAckMedianMs": 8.199999809265137,- "layoutReturnSwitchMedianMs": 37.39999961853027,- "layoutSwitchMedianMs": 87.90000057220459,- "loadMedianMs": 138.19999980926514,- "longestTaskMaxMs": 114,- "layoutAckMedianMs": 2.199999999254942,- "layoutReturnSwitchMedianMs": 34.59999999962747,- "layoutSwitchMedianMs": 69.89999999850988,- "loadMedianMs": 92.09999999962747,- "longestTaskMaxMs": 80,++ "layoutAckMedianMs": 2.100000001490116,++ "layoutReturnSwitchMedianMs": 34.69999999925494,++ "layoutSwitchMedianMs": 66.30000000074506,++ "loadMedianMs": 91.59999999776483,++ "longestTaskMaxMs": 81,"owner": "canvas","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:canvas",@@@ -281,24 -281,24 +281,24 @@@"fontRawBytes": 23664,"imageRawBytes": 156376,"largestAssetRawBytes": 746355,- "otherRawBytes": 152364,- "requestCount": 121,- "scriptRawBytes": 3502035,- "scriptRequestCount": 116,- "totalRawBytes": 3836598- "otherRawBytes": 151700,++ "otherRawBytes": 152645,+ "requestCount": 122,- "scriptRawBytes": 3516457,++ "scriptRawBytes": 3523348,+ "scriptRequestCount": 117,- "totalRawBytes": 3850356++ "totalRawBytes": 3858192},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 157940,"largestAssetRawBytes": 753819,- "otherRawBytes": 153888,- "requestCount": 121,- "scriptRawBytes": 3537056,- "scriptRequestCount": 116,- "totalRawBytes": 3874964- "otherRawBytes": 153217,++ "otherRawBytes": 154172,+ "requestCount": 122,- "scriptRawBytes": 3551622,++ "scriptRawBytes": 3558582,+ "scriptRequestCount": 117,- "totalRawBytes": 3888860++ "totalRawBytes": 3896774},- "routeReadyMedianMs": 1157.6000003814697,- "routeReadyMedianMs": 929.0999999996275,++ "routeReadyMedianMs": 938.0999999977648,"scriptSourceOwnerSet": "editor-canvas-static","stateProfile": "empty"},@@@ -318,20 -318,20 +318,20 @@@"cssRawBytes": 0,"fontRawBytes": 0,"imageRawBytes": 0,- "largestAssetRawBytes": 138991,+ "largestAssetRawBytes": 139046,"otherRawBytes": 0,"requestCount": 7,- "scriptRawBytes": 319115,+ "scriptRawBytes": 319168,"scriptRequestCount": 7,- "totalRawBytes": 319115+ "totalRawBytes": 319168},- "domContentLoadedMedianMs": 126.80000019073486,- "domContentLoadedMedianMs": 92,++ "domContentLoadedMedianMs": 93.59999999776483,"id": "editor-canvas",- "layoutAckMedianMs": 3.3000001907348633,- "layoutReturnSwitchMedianMs": 36.5,- "layoutSwitchMedianMs": 200.69999980926514,- "loadMedianMs": 126.80000019073486,- "longestTaskMaxMs": 395,- "layoutAckMedianMs": 2.900000000372529,- "layoutReturnSwitchMedianMs": 93.19999999925494,- "layoutSwitchMedianMs": 151.2999999988824,- "loadMedianMs": 92.10000000149012,- "longestTaskMaxMs": 289,++ "layoutAckMedianMs": 2.5,++ "layoutReturnSwitchMedianMs": 35,++ "layoutSwitchMedianMs": 149.59999999776483,++ "loadMedianMs": 93.69999999925494,++ "longestTaskMaxMs": 275,"owner": "canvas","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:canvas",@@@ -341,24 -341,24 +341,24 @@@"fontRawBytes": 23664,"imageRawBytes": 156376,"largestAssetRawBytes": 746355,- "otherRawBytes": 152364,- "requestCount": 121,- "scriptRawBytes": 3502035,- "scriptRequestCount": 116,- "totalRawBytes": 3836598- "otherRawBytes": 151700,++ "otherRawBytes": 152645,+ "requestCount": 122,- "scriptRawBytes": 3516457,++ "scriptRawBytes": 3523348,+ "scriptRequestCount": 117,- "totalRawBytes": 3850356++ "totalRawBytes": 3858192},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 157940,"largestAssetRawBytes": 753819,- "otherRawBytes": 153888,- "requestCount": 121,- "scriptRawBytes": 3537056,- "scriptRequestCount": 116,- "totalRawBytes": 3874964- "otherRawBytes": 153217,++ "otherRawBytes": 154172,+ "requestCount": 122,- "scriptRawBytes": 3551622,++ "scriptRawBytes": 3558582,+ "scriptRequestCount": 117,- "totalRawBytes": 3888860++ "totalRawBytes": 3896774},- "routeReadyMedianMs": 1332.8000001907349,- "routeReadyMedianMs": 1105.9000000003725,++ "routeReadyMedianMs": 1081.8999999985099,"scriptSourceOwnerSet": "editor-canvas-static","stateProfile": "representative"},@@@ -385,13 -385,13 +385,13 @@@"scriptRequestCount": 6,"totalRawBytes": 383401},- "domContentLoadedMedianMs": 136.69999980926514,- "domContentLoadedMedianMs": 92.69999999925494,++ "domContentLoadedMedianMs": 89.10000000149012,"id": "editor-workflow",- "layoutAckMedianMs": 11.200000762939453,- "layoutReturnSwitchMedianMs": 30.899999618530273,- "layoutSwitchMedianMs": 101.69999980926514,- "loadMedianMs": 136.80000019073486,- "longestTaskMaxMs": 111,- "layoutAckMedianMs": 2.300000000745058,- "layoutReturnSwitchMedianMs": 30.59999999962747,- "layoutSwitchMedianMs": 77.19999999925494,- "loadMedianMs": 92.80000000074506,- "longestTaskMaxMs": 80,++ "layoutAckMedianMs": 2,++ "layoutReturnSwitchMedianMs": 30.599999997764826,++ "layoutSwitchMedianMs": 78.10000000149012,++ "loadMedianMs": 89.19999999925494,++ "longestTaskMaxMs": 77,"owner": "workflow","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:workflow",@@@ -401,24 -401,24 +401,24 @@@"fontRawBytes": 23664,"imageRawBytes": 156376,"largestAssetRawBytes": 746355,- "otherRawBytes": 152364,- "requestCount": 121,- "scriptRawBytes": 3550271,- "scriptRequestCount": 115,- "totalRawBytes": 3900247- "otherRawBytes": 151700,++ "otherRawBytes": 152645,+ "requestCount": 122,- "scriptRawBytes": 3564641,++ "scriptRawBytes": 3571532,+ "scriptRequestCount": 116,- "totalRawBytes": 3913953++ "totalRawBytes": 3921789},"resourceLimits": {"cssRawBytes": 17748,"fontRawBytes": 23901,"imageRawBytes": 157940,"largestAssetRawBytes": 753819,- "otherRawBytes": 153888,- "requestCount": 121,- "scriptRawBytes": 3585774,- "scriptRequestCount": 115,- "totalRawBytes": 3939250- "otherRawBytes": 153217,++ "otherRawBytes": 154172,+ "requestCount": 122,- "scriptRawBytes": 3600288,++ "scriptRawBytes": 3607248,+ "scriptRequestCount": 116,- "totalRawBytes": 3953093++ "totalRawBytes": 3961007},- "routeReadyMedianMs": 1163.3999996185303,- "routeReadyMedianMs": 949.2999999988824,++ "routeReadyMedianMs": 950.4000000022352,"scriptSourceOwnerSet": "editor-workflow-static","stateProfile": "empty"},@@@ -445,13 -445,13 +445,13 @@@"scriptRequestCount": 6,"totalRawBytes": 383401},- "domContentLoadedMedianMs": 144.19999980926514,- "domContentLoadedMedianMs": 91.69999999925494,++ "domContentLoadedMedianMs": 91.29999999701977,"id": "editor-workflow",- "layoutAckMedianMs": 3.1999998092651367,- "layoutReturnSwitchMedianMs": 36.40000057220459,- "layoutSwitchMedianMs": 137,- "loadMedianMs": 144.39999961853027,- "longestTaskMaxMs": 377,- "layoutAckMedianMs": 3,- "layoutReturnSwitchMedianMs": 36.20000000111759,- "layoutSwitchMedianMs": 108.30000000074506,- "loadMedianMs": 91.79999999888241,- "longestTaskMaxMs": 265,++ "layoutAckMedianMs": 2.7000000029802322,++ "layoutReturnSwitchMedianMs": 36.5,++ "layoutSwitchMedianMs": 106.89999999850988,++ "loadMedianMs": 91.39999999850988,++ "longestTaskMaxMs": 259,"owner": "workflow","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:workflow",@@@ -461,24 -461,24 +461,24 @@@"fontRawBytes": 23664,"imageRawBytes": 156376,"largestAssetRawBytes": 746355,- "otherRawBytes": 152364,- "requestCount": 121,- "scriptRawBytes": 3550271,- "scriptRequestCount": 115,- "totalRawBytes": 3900247- "otherRawBytes": 151700,++ "otherRawBytes": 152645,+ "requestCount": 122,- "scriptRawBytes": 3564641,++ "scriptRawBytes": 3571532,+ "scriptRequestCount": 116,- "totalRawBytes": 3913953++ "totalRawBytes": 3921789},"resourceLimits": {"cssRawBytes": 17748,"fontRawBytes": 23901,"imageRawBytes": 157940,"largestAssetRawBytes": 753819,- "otherRawBytes": 153888,- "requestCount": 121,- "scriptRawBytes": 3585774,- "scriptRequestCount": 115,- "totalRawBytes": 3939250- "otherRawBytes": 153217,++ "otherRawBytes": 154172,+ "requestCount": 122,- "scriptRawBytes": 3600288,++ "scriptRawBytes": 3607248,+ "scriptRequestCount": 116,- "totalRawBytes": 3953093++ "totalRawBytes": 3961007},- "routeReadyMedianMs": 1283.5,- "routeReadyMedianMs": 1053,++ "routeReadyMedianMs": 1075.0999999977648,"scriptSourceOwnerSet": "editor-workflow-static","stateProfile": "representative"},@@@ -505,13 -505,13 +505,13 @@@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 145.19999980926514,- "domContentLoadedMedianMs": 93.69999999925494,++ "domContentLoadedMedianMs": 92.80000000074506,"id": "editor-gallery","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,- "layoutSwitchMedianMs": 33.5,- "loadMedianMs": 145.19999980926514,- "longestTaskMaxMs": 105,+ "layoutSwitchMedianMs": 20.800000000745058,- "loadMedianMs": 93.80000000074506,- "longestTaskMaxMs": 76,++ "loadMedianMs": 93,++ "longestTaskMaxMs": 79,"owner": "gallery","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:gallery",@@@ -521,24 -521,24 +521,24 @@@"fontRawBytes": 23664,"imageRawBytes": 156376,"largestAssetRawBytes": 746355,- "otherRawBytes": 152364,- "requestCount": 114,- "scriptRawBytes": 3186080,- "scriptRequestCount": 109,- "totalRawBytes": 3520643- "otherRawBytes": 151700,++ "otherRawBytes": 152645,+ "requestCount": 115,- "scriptRawBytes": 3200450,++ "scriptRawBytes": 3207341,+ "scriptRequestCount": 110,- "totalRawBytes": 3534349++ "totalRawBytes": 3542185},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 157940,"largestAssetRawBytes": 753819,- "otherRawBytes": 153888,- "requestCount": 114,- "scriptRawBytes": 3217941,- "scriptRequestCount": 109,- "totalRawBytes": 3555850- "otherRawBytes": 153217,++ "otherRawBytes": 154172,+ "requestCount": 115,- "scriptRawBytes": 3232455,++ "scriptRawBytes": 3239415,+ "scriptRequestCount": 110,- "totalRawBytes": 3569693++ "totalRawBytes": 3577607},- "routeReadyMedianMs": 1411.9000005722046,- "routeReadyMedianMs": 1160.5999999996275,++ "routeReadyMedianMs": 1154.6000000014901,"scriptSourceOwnerSet": "editor-minimal-static","stateProfile": "empty"},@@@ -565,13 -565,13 +565,13 @@@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 141.30000019073486,- "domContentLoadedMedianMs": 90.59999999962747,++ "domContentLoadedMedianMs": 92.10000000149012,"id": "editor-gallery","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,- "layoutSwitchMedianMs": 99.10000038146973,- "loadMedianMs": 141.30000019073486,- "longestTaskMaxMs": 200,- "layoutSwitchMedianMs": 67.20000000111759,- "loadMedianMs": 90.70000000111759,- "longestTaskMaxMs": 141,++ "layoutSwitchMedianMs": 66,++ "loadMedianMs": 92.20000000298023,++ "longestTaskMaxMs": 131,"owner": "gallery","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:gallery",@@@ -581,24 -581,24 +581,24 @@@"fontRawBytes": 23664,"imageRawBytes": 156376,"largestAssetRawBytes": 746355,- "otherRawBytes": 152364,- "requestCount": 114,- "scriptRawBytes": 3186080,- "scriptRequestCount": 109,- "totalRawBytes": 3520643- "otherRawBytes": 151700,++ "otherRawBytes": 152645,+ "requestCount": 115,- "scriptRawBytes": 3200450,++ "scriptRawBytes": 3207341,+ "scriptRequestCount": 110,- "totalRawBytes": 3534349++ "totalRawBytes": 3542185},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 157940,"largestAssetRawBytes": 753819,- "otherRawBytes": 153888,- "requestCount": 114,- "scriptRawBytes": 3217941,- "scriptRequestCount": 109,- "totalRawBytes": 3555850- "otherRawBytes": 153217,++ "otherRawBytes": 154172,+ "requestCount": 115,- "scriptRawBytes": 3232455,++ "scriptRawBytes": 3239415,+ "scriptRequestCount": 110,- "totalRawBytes": 3569693++ "totalRawBytes": 3577607},- "routeReadyMedianMs": 1531,- "routeReadyMedianMs": 1313,++ "routeReadyMedianMs": 1312,"scriptSourceOwnerSet": "editor-minimal-static","stateProfile": "representative"}diff --cc invokeai/frontend/webv2/src/features/video/core/videoPolicies.test.tsindex 89fe0ad80a,4a07015b1f..9e2aae4d70--- a/invokeai/frontend/webv2/src/features/video/core/videoPolicies.test.ts+++ b/invokeai/frontend/webv2/src/features/video/core/videoPolicies.test.ts@@@ -890,151 -1043,3 +1044,153 @@@ describe('getVideoModelAvailabilityReasexpect(installed).toEqual([]);});});++// ---------------------------------------------------------------------------+// Ref2VA: effective variant, reference mode, transitions++const ref2vaTransformer = (key = 'h3-ref2va-ckpt'): MainModelConfig => ({+ ...h3Model('checkpoint', key),+ name: 'MiniMax H3 Ref2VA Transformer (int8, pruned)',+ variant: 'ref2va',+});++const fl2vaTransformer = (key = 'h3-fl2va-ckpt'): MainModelConfig => ({+ ...h3Model('checkpoint', key),+ name: 'MiniMax H3 FL2VA Transformer (int8, pruned)',+ variant: 'fl2va',+});++const imageReference = { detail: 'max', image: { height: 4, image_name: 'ref.png', width: 4 }, kind: 'image' } as const;++describe('resolveEffectiveVideoModel', () => {+ it('overrides the H3 variant with the selected transformer checkpoint', () => {+ const model = h3Model();+ const settings = settingsFor(model, { h3TransformerModel: ref2vaTransformer() });++ expect(resolveEffectiveVideoModel(model, settings)?.variant).toBe('ref2va');+ expect(resolveEffectiveVideoModel(model, settingsFor(model))?.variant).toBe('fl2va');+ });++ it('never touches non-H3 models', () => {+ const model = wanModel('t2v_a14b', 'diffusers');++ expect(resolveEffectiveVideoModel(model, settingsFor(model, { h3TransformerModel: ref2vaTransformer() }))).toBe(+ model+ );+ });+});++describe('reference mode policy', () => {+ it('a ref2va transformer switches the panel to the reference-only mode set', () => {+ const model = h3Model();+ const settings = settingsFor(model, { h3TransformerModel: ref2vaTransformer() });++ expect(getVideoModelPolicy(model, settings).modes).toEqual(['reference']);+ expect(getVideoModelPolicy(model, settings).references).toEqual({ maxImages: 9, maxVideos: 3 });+ expect(getVideoModelPolicy(model, settingsFor(model)).references).toBeNull();+ });++ it('an unknown variant still falls back to fl2va, but ref2va never does', () => {+ const unknown = { ...h3Model(), variant: 'novel_task' };++ expect(getVideoModes(unknown)).toContain('txt2vid');+ expect(getVideoModes({ ...h3Model(), variant: 'ref2va' })).toEqual(['reference']);+ });++ it('validates the reference rules', () => {+ const model = h3Model();+ const withRefTransformer = (overrides: Partial<VideoSettings>) =>+ settingsFor(model, { h3TransformerModel: ref2vaTransformer(), ...overrides });++ expect(getVideoValidationReasons(model, withRefTransformer({}))).toContain(+ 'Reference-to-video needs at least one image or video reference.'+ );+ expect(+ getVideoValidationReasons(+ model,+ withRefTransformer({+ references: [+ {+ clip: {+ endFrame: 10,+ fps: 24,+ height: 4,+ numFrames: 12,+ startFrame: 0,+ video_name: 'ref.mp4',+ width: 4,+ },+ conditioning: 'audio',+ kind: 'video',+ },+ ],+ })+ )+ ).toContain(+ 'At least one reference must contribute visuals — add an image, or set a video reference to include video.'+ );+ expect(getVideoValidationReasons(model, withRefTransformer({ references: [imageReference] }))).toEqual([]);+ });++ it('rejects references on an fl2va-effective panel', () => {+ const model = h3Model();+ const reasons = getVideoValidationReasons(model, settingsFor(model, { references: [imageReference] }));++ expect(reasons.some((reason) => reason.includes('reference-conditioned'))).toBe(true);+ });+});++describe('getVideoTransformerSelectionResult', () => {+ it('clears frame media when switching to a ref2va transformer, and references on the way back', () => {+ const model = h3Model();+ const first = { height: 4, image_name: 'kf.png', width: 4 };+ const toRef = getVideoTransformerSelectionResult({+ currentSettings: settingsFor(model, { firstFrameImage: first, modelKey: model.key }),+ model,+ models: [model],+ transformer: ref2vaTransformer(),+ });++ expect(toRef.settings.firstFrameImage).toBeNull();+ expect(toRef.settings.h3TransformerModel?.variant).toBe('ref2va');+ expect(toRef.clearedLabels).toContain('First frame');++ const backToFl = getVideoTransformerSelectionResult({+ currentSettings: { ...toRef.settings, references: [imageReference] },+ model,+ models: [model],+ transformer: fl2vaTransformer(),+ });++ expect(backToFl.settings.references).toEqual([]);+ expect(backToFl.clearedLabels).toContain('References');+ });+});++describe('ref2va accelerator auto-pick', () => {+ const REF2V_TURBO = {+ base: 'minimax-h3',+ key: 'ref2v-turbo',+ name: 'MiniMax H3 Ref2V Turbo LoRA',+ type: 'lora' as const,+ };+ const FL2VA_TURBO = { base: 'minimax-h3', key: 'turbo', name: 'MiniMax H3 Turbo LoRA', type: 'lora' as const };++ it('requires the ref2v-token repack for the ref2va variant and excludes it otherwise', () => {- expect(findMiniMaxH3TurboLora([REF2V_TURBO, FL2VA_TURBO], 'ref2va')).toMatchObject({ key: 'ref2v-turbo' });- expect(findMiniMaxH3TurboLora([REF2V_TURBO, FL2VA_TURBO], 'fl2va')).toMatchObject({ key: 'turbo' });- expect(findMiniMaxH3TurboLora([FL2VA_TURBO], 'ref2va')).toBeNull();++ expect(findMiniMaxH3TurboLora([REF2V_TURBO, FL2VA_TURBO], { variant: 'ref2va' })).toMatchObject({++ key: 'ref2v-turbo',++ });++ expect(findMiniMaxH3TurboLora([REF2V_TURBO, FL2VA_TURBO], { variant: 'fl2va' })).toMatchObject({ key: 'turbo' });++ expect(findMiniMaxH3TurboLora([FL2VA_TURBO], { variant: 'ref2va' })).toBeNull();+ });++ it('the accelerator toggle resolves through the effective variant (4-step ref2v turbo)', () => {+ const model = h3Model();+ const settings = settingsFor(model, { h3TransformerModel: ref2vaTransformer() });+ const result = getAcceleratorToggleResult(settings, model, [model, REF2V_TURBO, FL2VA_TURBO], true);++ expect(result.missingLoras).toBe(false);+ expect(result.settings.acceleratorLoraKeys).toEqual(['ref2v-turbo']);+ expect(result.settings.steps).toBe(4);+ });+});diff --cc invokeai/frontend/webv2/src/features/video/core/videoPolicies.tsindex 579d5e5a2e,4473e7bfc8..3fde3a77c6--- a/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts+++ b/invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts@@@ -125,16 -136,9 +138,17 @@@ export const MINIMAX_H3_TURBO_ACCELERATcfgScaleLowNoise: null,label: 'Turbo',steps: 6,+ stepOverrides: [{ pattern: LIGHTX2V_PATTERN, steps: 8 }],};+/** The Ref2VA-trained 4-step Turbo distillation (Comfy-Org's ref2v turbo repack). */+export const MINIMAX_H3_REF2V_TURBO_ACCELERATOR: VideoAcceleratorConfig = {+ cfgScale: 1,+ cfgScaleLowNoise: null,+ label: 'Turbo',+ steps: 4,+};+const WAN_TARGET_RESOLUTION_OPTIONS: readonly VideoTargetResolutionOption[] = [{ id: '480p', label: '480p (Wan native)' },{ id: '720p', label: '720p (Wan native)' },@@@ -490,6 -467,17 +514,23 @@@ export interface WanLightningLoraPairlow: LoraModelConfig;}+ export interface FindAcceleratorLoraOptions {+ /**+ * Accept only LoRAs that also name the model family. Used when the candidate+ * list is the user's own Concepts list rather than the installed catalog:+ * there is no better-named release for a look-alike to lose to, so a+ * personal "Turbo …" LoRA — or a T2V Lightning pair sitting on an I2V main —+ * would otherwise be mistaken for a distillation fast path.+ */+ requireFamilyName?: boolean;+ }+++/** MiniMax H3 only: the task variant decides which Turbo distillation qualifies. */++export interface FindMiniMaxH3TurboLoraOptions extends FindAcceleratorLoraOptions {++ /** The effective model's variant; ref2va REQUIRES the ref2v-token repack, every other variant excludes it. */++ variant?: string | null;++}++// "high"/"low" as standalone words. \b is useless here because release files// use underscores ("high_noise_model") where \w breaks no boundary, while a// plain word-suffix match swallows "Slow"/"Thigh" — so the token must be@@@ -544,13 -545,9 +598,13 @@@ const MINIMAX_H3_REF2V_PATTERN = /(?:^|*/export const findMiniMaxH3TurboLora = (models: readonly ModelConfig[],- variant: string | null | undefined = 'fl2va'- { requireFamilyName = false }: FindAcceleratorLoraOptions = {}++ { requireFamilyName = false, variant = 'fl2va' }: FindMiniMaxH3TurboLoraOptions = {}): LoraModelConfig | null => {const score = (model: LoraModelConfig): number => (MINIMAX_H3_NAME_PATTERN.test(model.name) ? 0 : 1);+ // The task decides which distillation qualifies: ref2va REQUIRES the ref2v-token repack,+ // every other variant excludes it — the two are trained against different transformers.+ const matchesTask = (name: string): boolean =>+ variant === 'ref2va' ? MINIMAX_H3_REF2V_PATTERN.test(name) : !MINIMAX_H3_REF2V_PATTERN.test(name);return (models@@@ -559,30 -556,148 +613,152 @@@isLoraModelConfig(model) &&model.base === 'minimax-h3' &&TURBO_PATTERN.test(model.name) &&- matchesTask(model.name)- !MINIMAX_H3_REF2V_PATTERN.test(model.name) &&++ matchesTask(model.name) &&+ (!requireFamilyName || MINIMAX_H3_NAME_PATTERN.test(model.name))).sort((a, b) => score(a) - score(b) || a.name.localeCompare(b.name))[0] ?? null);};- /** The accelerator LoRA entries for the EFFECTIVE model, or null when they are not installed. */- const findAcceleratorLoraEntries = (model: MainModelConfig, models: readonly ModelConfig[]): GenerateLora[] | null => {+ /**+ * The complete accelerator LoRA set contained in `candidates`, or null when it+ * is not all there. The candidates are the installed catalog when asking what+ * the toggle *would* run, and the user's own Concepts list when asking what is- * actually running.++ * actually running. `model` must be the EFFECTIVE model: for MiniMax H3 the++ * task variant (fl2va vs ref2va) decides which Turbo distillation qualifies.+ */+ export const findAcceleratorLorasIn = (+ model: MainModelConfig,+ candidates: readonly ModelConfig[],+ options: FindAcceleratorLoraOptions = {}+ ): LoraModelConfig[] | null => {if (model.base === 'minimax-h3') {- const turbo = findMiniMaxH3TurboLora(models, typeof model.variant === 'string' ? model.variant : 'fl2va');- const turbo = findMiniMaxH3TurboLora(candidates, options);++ const turbo = findMiniMaxH3TurboLora(candidates, {++ ...options,++ variant: typeof model.variant === 'string' ? model.variant : 'fl2va',++ });- return turbo ? [{ isEnabled: true, model: turbo, weight: 1 }] : null;+ return turbo ? [turbo] : null;}- const pair = findWanLightningLoraPair(models, model.variant);+ const pair = findWanLightningLoraPair(candidates, model.variant, options);- return pair- ? [- { isEnabled: true, model: pair.high, weight: 1 },- { isEnabled: true, model: pair.low, weight: 1 },- ]- : null;+ return pair ? [pair.high, pair.low] : null;+ };++ // "4-step", "8 steps", "6step" — how a distillation release states the schedule+ // it was trained for. Two digits at most, so a checkpoint tag ("step600") or a+ // rank cannot be read as a step count.+ const STEP_COUNT_PATTERN = /(?:^|[^a-z0-9])(\d{1,2})[ _-]?steps?(?:[^a-z0-9]|$)/i;++ /**+ * The step count one distillation LoRA was trained for. Its name is the only+ * record of it: an explicit "N-step" token wins, then the family's per-release+ * overrides, and failing both the family's reference count.+ */+ const getLoraAcceleratorSteps = (config: VideoAcceleratorConfig, lora: LoraModelConfig): number => {+ const stated = Number(STEP_COUNT_PATTERN.exec(lora.name)?.[1] ?? 0);++ if (stated > 0) {+ return stated;+ }++ return config.stepOverrides?.find((override) => override.pattern.test(lora.name))?.steps ?? config.steps;+ };++ /**+ * The step count for a whole accelerator set. Both halves of a Wan Lightning+ * pair state the same schedule; if a mismatched pair is ever assembled, the+ * higher count is the safe pick — under-stepping is what reads as a broken+ * model.+ */+ export const getAcceleratorSteps = (config: VideoAcceleratorConfig, loras: readonly LoraModelConfig[]): number =>+ loras.reduce((steps, lora) => Math.max(steps, getLoraAcceleratorSteps(config, lora)), 0) || config.steps;++ /** The LoRA models the user currently has switched on in the Concepts list. */+ const getEnabledLoraModels = (settings: Pick<VideoSettings, 'loras'>): LoraModelConfig[] =>+ settings.loras.filter((lora) => lora.isEnabled).map((lora) => lora.model);++ /** The LoRA models the accelerator toggle recorded, as they stand in the list. */+ const getRecordedAcceleratorLoras = (+ settings: Pick<VideoSettings, 'acceleratorEnabled' | 'acceleratorLoraKeys' | 'loras'>+ ): LoraModelConfig[] => {+ const recorded = new Set(settings.acceleratorLoraKeys);++ return settings.acceleratorEnabled+ ? settings.loras.filter((lora) => recorded.has(lora.model.key)).map((lora) => lora.model)+ : [];+ };++ /**+ * The complete accelerator set contained in `candidates`, judged the way the+ * panel has to judge LoRAs the user is holding: one that names the model's own+ * family, or failing that the very set the catalog would install. The+ * family-name requirement keeps a personal "Turbo …" LoRA — or a T2V Lightning+ * pair left over on an I2V main — from passing as a fast path; the catalog+ * pick is exempt from it because it is what the toggle itself installs, odd+ * name and all.+ */+ const findAcceleratorAmong = (+ model: MainModelConfig,+ candidates: readonly LoraModelConfig[],+ models: readonly ModelConfig[]+ ): LoraModelConfig[] | null => {+ const named = findAcceleratorLorasIn(model, candidates, { requireFamilyName: true });++ if (named) {+ return named;+ }++ const catalogPick = findAcceleratorLorasIn(model, models);++ return catalogPick?.every((lora) => candidates.some((candidate) => candidate.key === lora.key)) ? catalogPick : null;+ };++ /**+ * Whether the settings' recorded accelerator keys still name a complete set of+ * enabled LoRAs that is a valid fast path *for this model* — the question both+ * the model-switch reconcile and the Concepts-list reconcile turn on. Asked of+ * the recorded keys alone, so with two Turbo LoRAs enabled the one the user+ * anchored on keeps the fast path instead of losing it to a tie-break.+ */+ const isRecordedAcceleratorIntact = (+ settings: Pick<VideoSettings, 'acceleratorLoraKeys' | 'loras'>,+ model: MainModelConfig,+ models: readonly ModelConfig[],+ config: VideoVariantConfig+ ): boolean => {+ const recorded = new Set(settings.acceleratorLoraKeys);++ if (!config.accelerator || recorded.size === 0) {+ return false;+ }++ // Deduplicated by key: a list holding the same LoRA twice (a hand-edited+ // project file, metadata whose graph listed one twice) must not make this+ // permanently false — the identity guarantee in `syncVideoWidgetValuesWithModels`+ // depends on an unchanged value reaching the 'unchanged' outcome.+ const live = [+ ...new Map(+ getEnabledLoraModels(settings)+ .filter((lora) => recorded.has(lora.key))+ .map((lora) => [lora.key, lora])+ ).values(),+ ];++ return live.length === recorded.size && findAcceleratorAmong(model, live, models)?.length === recorded.size;};+ /**+ * The accelerator LoRA entries for a model, or null when they are not+ * installed. Deliberately catalog-only: the family name test is all that+ * separates a distillation LoRA from any other, and "MiniMax H3 …" is how a+ * user names their OWN H3 LoRA too, so letting the panel's list steer this+ * would let the toggle arm itself on a LoRA with no distillation in it.+ */+ const findAcceleratorLoraEntries = (model: MainModelConfig, models: readonly ModelConfig[]): GenerateLora[] | null =>+ findAcceleratorLorasIn(model, models)?.map((lora) => ({ isEnabled: true, model: lora, weight: 1 })) ?? null;+export interface AcceleratorToggleResult {settings: VideoSettings;/** True when enabling was requested but the accelerator LoRA(s) are not installed. */@@@ -646,7 -760,84 +822,89 @@@ export const getAcceleratorToggleResul...withoutAccelerators.filter((lora) => !entries.some((e) => e.model.key === lora.model.key)),...entries,],- steps: config.accelerator.steps,+ steps: getAcceleratorSteps(+ config.accelerator,+ entries.map((entry) => entry.model)+ ),+ },+ };+ };++ export type AcceleratorLoraChangeOutcome = 'unchanged' | 'switched' | 'disabled';++ export interface AcceleratorLoraChangeResult {+ settings: VideoSettings;+ outcome: AcceleratorLoraChangeOutcome;+ /** The LoRA set now driving the fast path — only set when `outcome` is 'switched'. */+ acceleratorLoras: LoraModelConfig[] | null;+ }++ /**+ * Re-reads the fast path from the Concepts list after it changes. The flag has+ * to describe what is actually enabled, so swapping one Turbo LoRA for another+ * keeps the fast path — re-anchored on the new LoRA, at the step count *it*+ * was distilled for — instead of tearing it down. Only a list with no complete+ * accelerator left in it turns the toggle off and restores the model's own+ * sampling defaults: a silent 6-step run with no distillation LoRA behind it+ * just reads as a broken model.+ *+ * Strictly a repair of a fast path that is already ON. An off accelerator is+ * never armed by a list edit, however accelerator-shaped the LoRA that lands+ * in it looks: the name heuristic cannot tell a distillation release from a+ * user's own "… Turbo …" LoRA, and arming on it would silently drop a+ * hand-tuned step count onto a LoRA that does not support it.+ */+ export const getAcceleratorLoraChangeResult = (+ settings: VideoSettings,+ model: MainModelConfig,+ models: readonly ModelConfig[],+ loras: GenerateLora[]+ ): AcceleratorLoraChangeResult => {- const config = getVideoConfig(model);++ // The transformer override can redefine the task (fl2va vs ref2va), and the two tasks++ // have different accelerators: judge the list against the EFFECTIVE model.++ const effectiveModel = resolveEffectiveVideoModel(model, settings);++ const config = getVideoConfig(effectiveModel);+ const next: VideoSettings = { ...settings, loras };++ // Nothing to repair, and nothing this function is allowed to start.+ if (!settings.acceleratorEnabled) {+ return { acceleratorLoras: null, outcome: 'unchanged', settings: next };+ }++ // The recorded set is still running: leave everything the user tuned alone.- if (isRecordedAcceleratorIntact(next, model, models, config)) {++ if (isRecordedAcceleratorIntact(next, effectiveModel, models, config)) {+ return { acceleratorLoras: null, outcome: 'unchanged', settings: next };+ }+- const replacement = config.accelerator ? findAcceleratorAmong(model, getEnabledLoraModels(next), models) : null;++ const replacement = config.accelerator++ ? findAcceleratorAmong(effectiveModel, getEnabledLoraModels(next), models)++ : null;++ if (replacement && config.accelerator) {+ return {+ acceleratorLoras: replacement,+ outcome: 'switched',+ settings: {+ ...next,+ acceleratorEnabled: true,+ acceleratorLoraKeys: replacement.map((lora) => lora.key),+ cfgScale: config.accelerator.cfgScale,+ cfgScaleLowNoise: config.accelerator.cfgScaleLowNoise,+ steps: getAcceleratorSteps(config.accelerator, replacement),+ },+ };+ }++ return {+ acceleratorLoras: null,+ outcome: 'disabled',+ settings: {+ ...next,+ acceleratorEnabled: false,+ acceleratorLoraKeys: [],+ cfgScale: config.defaults.cfgScale,+ cfgScaleLowNoise: config.defaults.cfgScaleLowNoise,+ steps: config.defaults.steps,},};};@@@ -1145,24 -1321,16 +1403,16 @@@ export const getVideoModelSelectionResu}if (next.acceleratorEnabled) {- // Carry the "fast path" intent across model switches: when the new model- // resolves to the SAME accelerator LoRA set, everything the user may have- // tuned (steps, CFG, LoRA weights) is left alone. Only when the identity- // changes (Lightning ↔ Turbo) is the toggle re-applied, and when the new- // model has no accelerator — or its LoRAs are not installed — the fast+ // Carry the "fast path" intent across model switches: when the LoRAs the+ // user is actually running are still a valid accelerator for the new model,+ // everything they may have tuned (steps, CFG, LoRA weights) is left alone.+ // Only when that set no longer applies (Lightning ↔ Turbo, or a Wan pair+ // aimed at the other expert family) is the toggle re-applied — and when the+ // new model has no accelerator, or its LoRAs are not installed, the fast// path turns off, restoring the model's own steps/CFG.- const targetEntries = config.accelerator ? findAcceleratorLoraEntries(effectiveModel, models) : null;- const targetKeys = targetEntries?.map((entry) => entry.model.key).sort() ?? null;- const currentKeys = [...next.acceleratorLoraKeys].sort();- const sameAccelerator =- targetKeys !== null &&- targetKeys.length === currentKeys.length &&- targetKeys.every((key, index) => key === currentKeys[index]);-- if (!sameAccelerator) {- const result = targetEntries- ? getAcceleratorToggleResult(next, model, models, true)- : getAcceleratorToggleResult(next, model, models, false);- if (!isRecordedAcceleratorIntact(next, model, models, config)) {- const targetEntries = config.accelerator ? findAcceleratorLoraEntries(model, models) : null;++ if (!isRecordedAcceleratorIntact(next, effectiveModel, models, config)) {++ const targetEntries = config.accelerator ? findAcceleratorLoraEntries(effectiveModel, models) : null;+ const result = getAcceleratorToggleResult(next, model, models, targetEntries !== null);Object.assign(next, result.settings);addClearedLabel(clearedLabels, 'Acceleration');diff --cc invokeai/frontend/webv2/src/features/video/core/widgetValues.tsindex 540cb8e219,f82fb9f7a0..8ab53bbad6--- a/invokeai/frontend/webv2/src/features/video/core/widgetValues.ts+++ b/invokeai/frontend/webv2/src/features/video/core/widgetValues.ts@@@ -12,12 -13,9 +13,11 @@@ importgetDefaultVideoSettings,getVideoComponentSectionPolicy,getVideoModelAvailabilityReasons,- getVideoModelPolicy,getVideoModelSelectionResult,+ getVideoModes,getVideoValidationReasons,isSupportedVideoModel,+ resolveEffectiveVideoModel,type VideoComponentPolicyContext,type VideoComponentValueKey,} from './videoPolicies';diff --cc invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsxindex 51f3e3d294,452f472587..d69ac8faff--- a/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx+++ b/invokeai/frontend/webv2/src/features/video/ui/VideoWidgetView.tsx@@@ -245,27 -245,16 +246,25 @@@ export const VideoWidgetView = () =>(sourceVideo: VideoSourceClip | null) => patch({ sourceVideo, ...(sourceVideo ? { firstFrameImage: null } : {}) }),[patch]);+ const setReferences = useCallback(+ (references: VideoReferenceItem[]) =>+ patch({+ references,+ ...(references.length > 0 ? { firstFrameImage: null, lastFrameImage: null, sourceVideo: null } : {}),+ }),+ [patch]+ );+ const clearReferences = useCallback(() => patch({ references: [] }), [patch]);const setLoras = useCallback((loras: VideoWidgetValues['loras']) => {- // Removing or disabling one of the accelerator's LoRAs breaks the fast- // path: turn it off explicitly, restore the model's own sampling- // defaults (Lightning wrote steps/CFG), keep the user's list edit, and- // say so — a silent 4-step run without the distillation pair would just- // look like a broken model.- const acceleratorBroken =- values.acceleratorEnabled &&- !values.acceleratorLoraKeys.every((key) => loras.some((lora) => lora.model.key === key && lora.isEnabled));-- if (!acceleratorBroken) {+ // While the fast path is on it follows the list: a different complete+ // accelerator set in it re-anchors the toggle onto that set at its own+ // step count, and losing the last one turns the toggle off and restores+ // the model's own sampling defaults (the accelerator wrote steps/CFG).+ // Either way the user's list edit stands, and either way they are told —+ // a silent 6-step run with no distillation LoRA behind it just looks+ // like a broken model. An off accelerator is never armed from here.+ if (!values.model) {patch({ loras });return;}diff --cc invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.tsindex 9259b1b0bc,1d46f175c6..591843cdc1--- a/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts+++ b/invokeai/frontend/webv2/src/workbench/image-actions/videoRecall.ts@@@ -281,31 -278,17 +280,22 @@@ export const deriveAcceleratorRecallStasteps: number,settings: VideoWidgetValues): Pick<VideoWidgetValues, 'acceleratorEnabled' | 'acceleratorLoraKeys'> => {+ // The H3 task variant lives on the recalled transformer override, and the two tasks have+ // DIFFERENT accelerators (fl2va Turbo at 6 steps, ref2v Turbo at 4) - so both the policy+ // and the expected-LoRA lookup must go through the effective model. Callers must recall+ // the component overrides into `settings` before deriving this.+ const effectiveModel = resolveEffectiveVideoModel(model, settings);const accelerator = getVideoModelPolicy(model, settings).ui.accelerator;-- if (!accelerator || steps !== accelerator.steps) {- return { acceleratorEnabled: false, acceleratorLoraKeys: [] };- }-- const expected =- effectiveModel.base === 'minimax-h3'- ? [- findMiniMaxH3TurboLora(models, typeof effectiveModel.variant === 'string' ? effectiveModel.variant : 'fl2va'),- ].flatMap((lora) => (lora ? [lora.key] : []))- : (() => {- const pair = findWanLightningLoraPair(models, effectiveModel.variant);-- return pair ? [pair.high.key, pair.low.key] : [];- })();- const present = expected.length > 0 && expected.every((key) => loras.some((lora) => lora.model.key === key));-- return present- ? { acceleratorEnabled: true, acceleratorLoraKeys: expected }+ const recalled = accelerator+ ? findAcceleratorLorasIn(- model,++ effectiveModel,+ loras.map((lora) => lora.model),+ { requireFamilyName: true }+ )+ : null;++ return accelerator && recalled && steps === getAcceleratorSteps(accelerator, recalled)+ ? { acceleratorEnabled: true, acceleratorLoraKeys: recalled.map((lora) => lora.key) }: { acceleratorEnabled: false, acceleratorLoraKeys: [] };};@@@ -559,29 -518,7 +552,29 @@@ export const buildVideoRecallSettingsfields.push('components');}+ const recordedLoras = getMetadataLoras(metadata);+ const resolvedLoras = recordedLoras.flatMap((entry) => {+ const installed = models.find((candidate) => candidate.key === entry.key);++ return installed && isLoraModelConfig(installed) && isLoraCompatibleWithModel(installed, model)+ ? [{ isEnabled: true, model: installed as LoraModelConfig, weight: entry.weight }]+ : [];+ });++ // The recall reproduces the recorded LoRA set: empty when the video ran+ // without LoRAs, and also when the recorded ones are no longer installed —+ // keeping the panel's current LoRAs would misrepresent the run either way.+ if (resolvedLoras.length > 0 || values.loras.length > 0) {+ values = {+ ...values,+ loras: resolvedLoras,- ...deriveAcceleratorRecallState(model, models, resolvedLoras, values.steps, values),++ ...deriveAcceleratorRecallState(model, resolvedLoras, values.steps, values),+ };+ fields.push('loras');+ }+const media = getRecallableMediaNames(metadata);+ const references = getRecallableReferences(metadata);// Judged against the ORIGINAL panel state: the model transition above may// already have cleared media the new family cannot consume, and that change// is still part of what this recall did.