Skip to content

Free, open-source AI video generator for Mac. Run LTX-2.5 and MiniMax H3 (Hailuo) locally on Apple Silicon: text-to-video and image-to-video with sound, lip-sync, character LoRA training, songs from lyrics (YuE2) and image editing (Qwen-Image-Edit). One-click install via Pinokio. Offline: no cloud, no API key, no NVIDIA GPU.

release(v4.17.3): lip-sync that follows the voice, and errors that say what to do

mrbizarro9f49e879e43a
diff --git a/README.md b/README.md
index 76091ec..71bc8e7 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@
</p>
-> **Current release: v4.17.2.** **Housekeeping: internal notes and example paths removed from the public repo.** No behavior change — this release cleans development notes and machine-specific example paths out of the public tree. 4.17.1: the clip toolbar now fits the player at a laptop-sized window instead of wrapping over the clip name. 4.17.0 was the big one: estimates for your Mac, faces kept in portrait and phone photos, Undo on Stop/Clear/Hide, Lip-sync as a Video mode, and an Editor with Sync to song, Match colour, slip and roll edits, Replace and versioned renders. Press Update in Pinokio, then restart. Full notes on the [releases page](https://github.com/mrbizarro/Phosphene/releases).
+> **Current release: v4.17.3.** **Lip-sync that follows the voice, and errors that say what to do.** Lip-sync now separates the singing voice from the music for everyone (Update installs it), and a character LoRA no longer stops the mouth moving. Time estimates for your Mac are fixed where they mixed in much bigger Macs, and refreshed from the newest renders. A seed pasted from another app no longer fails the render, a damaged model file is caught and offered a one-click Repair, and a crash or a refusal says what happened and what to do instead of offering a Retry that cannot work. 4.17.0 was the big one: estimates for your Mac, faces kept in portrait and phone photos, Undo on Stop/Clear/Hide, Lip-sync as a Video mode, and an Editor with Sync to song, Match colour, slip and roll edits, Replace and versioned renders. Press Update in Pinokio, then restart. Full notes on the [releases page](https://github.com/mrbizarro/Phosphene/releases).
## Overview
diff --git a/VERSION b/VERSION
index 1c8fd19..ab268c2 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-4.17.2
+4.17.3
diff --git a/data/fleet_timings.json b/data/fleet_timings.json
index c553bdb..12f776c 100644
--- a/data/fleet_timings.json
+++ b/data/fleet_timings.json
@@ -1,5 +1,5 @@
{
- "built_at": "2026-09-29T18:21:15Z",
+ "built_at": "2026-10-01T06:52:31Z",
"levels": {
"cell": {
"cells": {
@@ -214,7 +214,7 @@
"p75_sec": 900.0
},
"h3|i2v|draft_3s|73.0|M4 Pro|48.0|fast": {
- "n": 7,
+ "n": 11,
"p25_sec": 180.0,
"p50_sec": 180.0,
"p75_sec": 240.0
@@ -225,6 +225,12 @@
"p50_sec": 120.0,
"p75_sec": 210.0
},
+ "h3|i2v|draft_3s|73.0|M5 Max|64.0|best": {
+ "n": 4,
+ "p25_sec": 60.0,
+ "p50_sec": 60.0,
+ "p75_sec": 60.0
+ },
"h3|i2v|draft_3s|73.0|M5 Pro|48.0|best": {
"n": 4,
"p25_sec": 120.0,
@@ -304,9 +310,9 @@
"p75_sec": 120.0
},
"h3|i2v|draft_5s|124.0|M4 Max|64.0|fast": {
- "n": 5,
+ "n": 7,
"p25_sec": 120.0,
- "p50_sec": 300.0,
+ "p50_sec": 120.0,
"p75_sec": 300.0
},
"h3|i2v|draft_5s|124.0|M4 Pro|48.0|fast": {
@@ -478,7 +484,7 @@
"p75_sec": 2400.0
},
"h3|i2v|high_15s|362.0|M4 Max|128.0|fast": {
- "n": 568,
+ "n": 593,
"p25_sec": 1200.0,
"p50_sec": 1200.0,
"p75_sec": 1200.0
@@ -544,10 +550,10 @@
"p75_sec": 300.0
},
"h3|i2v|high_3s|73.0|M4 Max|64.0|best": {
- "n": 5,
- "p25_sec": 420.0,
+ "n": 8,
+ "p25_sec": 555.0,
"p50_sec": 600.0,
- "p75_sec": 600.0
+ "p75_sec": 900.0
},
"h3|i2v|high_3s|73.0|M4 Max|64.0|fast": {
"n": 4,
@@ -555,6 +561,12 @@
"p50_sec": 300.0,
"p75_sec": 300.0
},
+ "h3|i2v|high_3s|73.0|M4 Pro|48.0|fast": {
+ "n": 10,
+ "p25_sec": 600.0,
+ "p50_sec": 600.0,
+ "p75_sec": 600.0
+ },
"h3|i2v|high_3s|73.0|M5 Max|128.0|fast": {
"n": 29,
"p25_sec": 120.0,
@@ -568,7 +580,7 @@
"p75_sec": 300.0
},
"h3|i2v|high_3s|73.0|M5 Pro|48.0|fast": {
- "n": 58,
+ "n": 103,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 180.0
@@ -688,16 +700,16 @@
"p75_sec": 1800.0
},
"h3|i2v|high_5s|124.0|M4 Max|64.0|fast": {
- "n": 90,
+ "n": 107,
"p25_sec": 420.0,
- "p50_sec": 510.0,
+ "p50_sec": 600.0,
"p75_sec": 600.0
},
"h3|i2v|high_5s|124.0|M4 Pro|48.0|fast": {
- "n": 7,
+ "n": 8,
"p25_sec": 900.0,
"p50_sec": 900.0,
- "p75_sec": 1050.0
+ "p75_sec": 975.0
},
"h3|i2v|high_5s|124.0|M5 Max|128.0|best": {
"n": 5,
@@ -718,7 +730,7 @@
"p75_sec": 600.0
},
"h3|i2v|high_5s|124.0|M5 Pro|48.0|fast": {
- "n": 146,
+ "n": 232,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -880,10 +892,10 @@
"p75_sec": 2400.0
},
"h3|i2v|standard_10s|243.0|M1 Max|64.0|fast": {
- "n": 19,
+ "n": 20,
"p25_sec": 900.0,
"p50_sec": 900.0,
- "p75_sec": 1050.0
+ "p75_sec": 1200.0
},
"h3|i2v|standard_10s|243.0|M1 Ultra|64.0|fast": {
"n": 11,
@@ -940,7 +952,7 @@
"p75_sec": 1200.0
},
"h3|i2v|standard_10s|243.0|M4 Max|64.0|fast": {
- "n": 138,
+ "n": 140,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -957,6 +969,12 @@
"p50_sec": 1200.0,
"p75_sec": 1200.0
},
+ "h3|i2v|standard_10s|243.0|M5 Max|128.0|fast": {
+ "n": 16,
+ "p25_sec": 180.0,
+ "p50_sec": 180.0,
+ "p75_sec": 180.0
+ },
"h3|i2v|standard_10s|243.0|M5 Max|64.0|fast": {
"n": 3,
"p25_sec": 180.0,
@@ -1029,6 +1047,12 @@
"p50_sec": 1200.0,
"p75_sec": 1200.0
},
+ "h3|i2v|standard_15s|362.0|M5 Max|128.0|fast": {
+ "n": 14,
+ "p25_sec": 240.0,
+ "p50_sec": 300.0,
+ "p75_sec": 300.0
+ },
"h3|i2v|standard_15s|362.0|M5 Max|64.0|best": {
"n": 4,
"p25_sec": 600.0,
@@ -1078,10 +1102,10 @@
"p75_sec": 180.0
},
"h3|i2v|standard_3s|73.0|M5 Max|128.0|best": {
- "n": 18,
+ "n": 24,
"p25_sec": 90.0,
- "p50_sec": 120.0,
- "p75_sec": 180.0
+ "p50_sec": 90.0,
+ "p75_sec": 135.0
},
"h3|i2v|standard_3s|73.0|M5 Max|64.0|fast": {
"n": 7,
@@ -1090,7 +1114,7 @@
"p75_sec": 60.0
},
"h3|i2v|standard_3s|73.0|M5 Pro|48.0|best": {
- "n": 4,
+ "n": 5,
"p25_sec": 180.0,
"p50_sec": 180.0,
"p75_sec": 180.0
@@ -1108,10 +1132,10 @@
"p75_sec": 1200.0
},
"h3|i2v|standard_5s|124.0|M1 Max|64.0|fast": {
- "n": 19,
+ "n": 23,
"p25_sec": 420.0,
"p50_sec": 420.0,
- "p75_sec": 420.0
+ "p75_sec": 510.0
},
"h3|i2v|standard_5s|124.0|M1 Ultra|128.0|fast": {
"n": 3,
@@ -1125,6 +1149,12 @@
"p50_sec": 600.0,
"p75_sec": 600.0
},
+ "h3|i2v|standard_5s|124.0|M2 Ultra|64.0|fast": {
+ "n": 3,
+ "p25_sec": 270.0,
+ "p50_sec": 300.0,
+ "p75_sec": 300.0
+ },
"h3|i2v|standard_5s|124.0|M3 Max|128.0|best": {
"n": 3,
"p25_sec": 600.0,
@@ -1192,7 +1222,7 @@
"p75_sec": 375.0
},
"h3|i2v|standard_5s|124.0|M4 Max|64.0|fast": {
- "n": 253,
+ "n": 257,
"p25_sec": 240.0,
"p50_sec": 240.0,
"p75_sec": 240.0
@@ -1204,9 +1234,9 @@
"p75_sec": 600.0
},
"h3|i2v|standard_5s|124.0|M5 Max|128.0|best": {
- "n": 68,
- "p25_sec": 240.0,
- "p50_sec": 300.0,
+ "n": 73,
+ "p25_sec": 180.0,
+ "p50_sec": 240.0,
"p75_sec": 300.0
},
"h3|i2v|standard_5s|124.0|M5 Max|48.0|best": {
@@ -1372,14 +1402,14 @@
"p75_sec": 1200.0
},
"h3|t2v|draft_15s|362.0|M5 Max|64.0|best": {
- "n": 4,
+ "n": 5,
"p25_sec": 420.0,
- "p50_sec": 510.0,
+ "p50_sec": 420.0,
"p75_sec": 600.0
},
"h3|t2v|draft_15s|362.0|M5 Max|64.0|fast": {
- "n": 4,
- "p25_sec": 225.0,
+ "n": 5,
+ "p25_sec": 240.0,
"p50_sec": 240.0,
"p75_sec": 240.0
},
@@ -1444,7 +1474,7 @@
"p75_sec": 420.0
},
"h3|t2v|draft_3s|73.0|M3 Ultra|512.0|fast": {
- "n": 9,
+ "n": 13,
"p25_sec": 45.0,
"p50_sec": 45.0,
"p75_sec": 45.0
@@ -1756,9 +1786,9 @@
"p75_sec": 2400.0
},
"h3|t2v|high_10s|243.0|M4 Max|128.0|fast": {
- "n": 4,
- "p25_sec": 1650.0,
- "p50_sec": 1800.0,
+ "n": 9,
+ "p25_sec": 1200.0,
+ "p50_sec": 1200.0,
"p75_sec": 1800.0
},
"h3|t2v|high_10s|243.0|M4 Max|48.0|fast": {
@@ -1882,7 +1912,7 @@
"p75_sec": 1200.0
},
"h3|t2v|high_5s|124.0|M4 Max|128.0|fast": {
- "n": 34,
+ "n": 36,
"p25_sec": 900.0,
"p50_sec": 900.0,
"p75_sec": 1200.0
@@ -2128,20 +2158,20 @@
"p75_sec": 1800.0
},
"h3|t2v|standard_15s|362.0|M5 Max|128.0|fast": {
- "n": 9,
- "p25_sec": 300.0,
+ "n": 11,
+ "p25_sec": 270.0,
"p50_sec": 300.0,
- "p75_sec": 420.0
+ "p75_sec": 360.0
},
"h3|t2v|standard_15s|362.0|M5 Max|64.0|best": {
- "n": 7,
- "p25_sec": 750.0,
+ "n": 8,
+ "p25_sec": 600.0,
"p50_sec": 900.0,
"p75_sec": 900.0
},
"h3|t2v|standard_15s|362.0|M5 Max|64.0|fast": {
- "n": 13,
- "p25_sec": 420.0,
+ "n": 18,
+ "p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 420.0
},
@@ -2248,7 +2278,7 @@
"p75_sec": 1800.0
},
"h3|t2v|standard_5s|124.0|M1 Max|64.0|fast": {
- "n": 29,
+ "n": 30,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -2259,6 +2289,18 @@
"p50_sec": 600.0,
"p75_sec": 750.0
},
+ "h3|t2v|standard_5s|124.0|M2 Max|64.0|best": {
+ "n": 6,
+ "p25_sec": 900.0,
+ "p50_sec": 900.0,
+ "p75_sec": 1125.0
+ },
+ "h3|t2v|standard_5s|124.0|M2 Max|64.0|fast": {
+ "n": 5,
+ "p25_sec": 420.0,
+ "p50_sec": 420.0,
+ "p75_sec": 420.0
+ },
"h3|t2v|standard_5s|124.0|M3 Max|128.0|best": {
"n": 4,
"p25_sec": 600.0,
@@ -2284,9 +2326,9 @@
"p75_sec": 300.0
},
"h3|t2v|standard_5s|124.0|M3 Ultra|512.0|fast": {
- "n": 18,
- "p25_sec": 150.0,
- "p50_sec": 510.0,
+ "n": 21,
+ "p25_sec": 120.0,
+ "p50_sec": 600.0,
"p75_sec": 600.0
},
"h3|t2v|standard_5s|124.0|M3 Ultra|96.0|best": {
@@ -2307,6 +2349,12 @@
"p50_sec": 300.0,
"p75_sec": 420.0
},
+ "h3|t2v|standard_5s|124.0|M4 Max|36.0|best": {
+ "n": 5,
+ "p25_sec": 600.0,
+ "p50_sec": 600.0,
+ "p75_sec": 600.0
+ },
"h3|t2v|standard_5s|124.0|M4 Max|64.0|best": {
"n": 7,
"p25_sec": 600.0,
@@ -2344,7 +2392,7 @@
"p75_sec": 240.0
},
"h3|t2v|standard_5s|124.0|M5 Max|128.0|fast": {
- "n": 9,
+ "n": 10,
"p25_sec": 90.0,
"p50_sec": 90.0,
"p75_sec": 120.0
@@ -2356,8 +2404,8 @@
"p75_sec": 330.0
},
"h3|t2v|standard_5s|124.0|M5 Max|64.0|best": {
- "n": 5,
- "p25_sec": 240.0,
+ "n": 8,
+ "p25_sec": 180.0,
"p50_sec": 240.0,
"p75_sec": 240.0
},
@@ -2500,15 +2548,15 @@
"p75_sec": 900.0
},
"ltx|a2v|balanced|217.0|M4 Pro|48.0|any": {
- "n": 9,
- "p25_sec": 600.0,
- "p50_sec": 600.0,
- "p75_sec": 600.0
+ "n": 38,
+ "p25_sec": 675.0,
+ "p50_sec": 900.0,
+ "p75_sec": 900.0
},
"ltx|a2v|balanced|241.0|M4 Pro|48.0|any": {
- "n": 6,
- "p25_sec": 600.0,
- "p50_sec": 750.0,
+ "n": 23,
+ "p25_sec": 900.0,
+ "p50_sec": 900.0,
"p75_sec": 900.0
},
"ltx|a2v|balanced|49.0|M4|32.0|any": {
@@ -2638,14 +2686,14 @@
"p75_sec": 240.0
},
"ltx|a2v|high|121.0|M4 Max|64.0|any": {
- "n": 12,
+ "n": 13,
"p25_sec": 420.0,
"p50_sec": 600.0,
"p75_sec": 900.0
},
"ltx|a2v|high|121.0|M4 Pro|24.0|any": {
- "n": 3,
- "p25_sec": 240.0,
+ "n": 4,
+ "p25_sec": 225.0,
"p50_sec": 240.0,
"p75_sec": 240.0
},
@@ -2662,10 +2710,10 @@
"p75_sec": 285.0
},
"ltx|a2v|high|121.0|M5 Pro|48.0|any": {
- "n": 5,
+ "n": 9,
"p25_sec": 180.0,
- "p50_sec": 180.0,
- "p75_sec": 240.0
+ "p50_sec": 600.0,
+ "p75_sec": 600.0
},
"ltx|a2v|high|129.0|M5 Max|48.0|any": {
"n": 3,
@@ -2685,6 +2733,12 @@
"p50_sec": 300.0,
"p75_sec": 300.0
},
+ "ltx|a2v|high|145.0|M5 Pro|48.0|any": {
+ "n": 5,
+ "p25_sec": 90.0,
+ "p50_sec": 600.0,
+ "p75_sec": 600.0
+ },
"ltx|a2v|high|153.0|M5 Pro|24.0|any": {
"n": 4,
"p25_sec": 90.0,
@@ -2740,10 +2794,10 @@
"p75_sec": 240.0
},
"ltx|a2v|high|169.0|M5 Pro|48.0|any": {
- "n": 3,
+ "n": 7,
"p25_sec": 300.0,
- "p50_sec": 300.0,
- "p75_sec": 300.0
+ "p50_sec": 900.0,
+ "p75_sec": 900.0
},
"ltx|a2v|high|185.0|M5 Max|128.0|any": {
"n": 4,
@@ -2788,14 +2842,14 @@
"p75_sec": 1200.0
},
"ltx|a2v|high|241.0|M4 Max|36.0|any": {
- "n": 6,
+ "n": 7,
"p25_sec": 300.0,
"p50_sec": 300.0,
- "p75_sec": 390.0
+ "p75_sec": 360.0
},
"ltx|a2v|high|241.0|M4 Pro|24.0|any": {
- "n": 3,
- "p25_sec": 600.0,
+ "n": 5,
+ "p25_sec": 420.0,
"p50_sec": 600.0,
"p75_sec": 600.0
},
@@ -3100,13 +3154,13 @@
"p75_sec": 60.0
},
"ltx|i2v|balanced|121.0|M1 Max|32.0|any": {
- "n": 36,
+ "n": 40,
"p25_sec": 180.0,
"p50_sec": 180.0,
- "p75_sec": 195.0
+ "p75_sec": 180.0
},
"ltx|i2v|balanced|121.0|M1 Max|64.0|any": {
- "n": 290,
+ "n": 295,
"p25_sec": 240.0,
"p50_sec": 240.0,
"p75_sec": 300.0
@@ -3148,13 +3202,13 @@
"p75_sec": 600.0
},
"ltx|i2v|balanced|121.0|M2 Max|32.0|any": {
- "n": 135,
+ "n": 142,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 180.0
},
"ltx|i2v|balanced|121.0|M2 Max|64.0|any": {
- "n": 99,
+ "n": 104,
"p25_sec": 240.0,
"p50_sec": 240.0,
"p75_sec": 240.0
@@ -3184,14 +3238,14 @@
"p75_sec": 120.0
},
"ltx|i2v|balanced|121.0|M2 Ultra|64.0|any": {
- "n": 17,
+ "n": 19,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 120.0
},
"ltx|i2v|balanced|121.0|M2|16.0|any": {
- "n": 7,
- "p25_sec": 750.0,
+ "n": 8,
+ "p25_sec": 825.0,
"p50_sec": 900.0,
"p75_sec": 900.0
},
@@ -3220,9 +3274,9 @@
"p75_sec": 195.0
},
"ltx|i2v|balanced|121.0|M3 Max|64.0|any": {
- "n": 162,
+ "n": 387,
"p25_sec": 180.0,
- "p50_sec": 300.0,
+ "p50_sec": 180.0,
"p75_sec": 300.0
},
"ltx|i2v|balanced|121.0|M3 Pro|18.0|any": {
@@ -3268,8 +3322,8 @@
"p75_sec": 420.0
},
"ltx|i2v|balanced|121.0|M4 Max|36.0|any": {
- "n": 210,
- "p25_sec": 97.5,
+ "n": 265,
+ "p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 120.0
},
@@ -3286,13 +3340,13 @@
"p75_sec": 240.0
},
"ltx|i2v|balanced|121.0|M4 Pro|24.0|any": {
- "n": 132,
+ "n": 133,
"p25_sec": 180.0,
"p50_sec": 180.0,
"p75_sec": 240.0
},
"ltx|i2v|balanced|121.0|M4 Pro|48.0|any": {
- "n": 165,
+ "n": 168,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -3304,15 +3358,15 @@
"p75_sec": 300.0
},
"ltx|i2v|balanced|121.0|M4|16.0|any": {
- "n": 67,
+ "n": 83,
"p25_sec": 300.0,
"p50_sec": 600.0,
"p75_sec": 600.0
},
"ltx|i2v|balanced|121.0|M4|24.0|any": {
- "n": 75,
+ "n": 81,
"p25_sec": 300.0,
- "p50_sec": 300.0,
+ "p50_sec": 420.0,
"p75_sec": 420.0
},
"ltx|i2v|balanced|121.0|M4|32.0|any": {
@@ -3352,7 +3406,7 @@
"p75_sec": 90.0
},
"ltx|i2v|balanced|121.0|M5 Pro|48.0|any": {
- "n": 215,
+ "n": 219,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 120.0
@@ -3364,7 +3418,7 @@
"p75_sec": 120.0
},
"ltx|i2v|balanced|121.0|M5|16.0|any": {
- "n": 27,
+ "n": 30,
"p25_sec": 180.0,
"p50_sec": 300.0,
"p75_sec": 420.0
@@ -3382,13 +3436,13 @@
"p75_sec": 300.0
},
"ltx|i2v|balanced|145.0|M3 Max|64.0|any": {
- "n": 59,
+ "n": 131,
"p25_sec": 240.0,
- "p50_sec": 300.0,
+ "p50_sec": 240.0,
"p75_sec": 300.0
},
"ltx|i2v|balanced|145.0|M4 Pro|48.0|any": {
- "n": 92,
+ "n": 95,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 420.0
@@ -3406,7 +3460,7 @@
"p75_sec": 300.0
},
"ltx|i2v|balanced|169.0|M1 Max|64.0|any": {
- "n": 20,
+ "n": 21,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 600.0
@@ -3429,6 +3483,12 @@
"p50_sec": 300.0,
"p75_sec": 450.0
},
+ "ltx|i2v|balanced|169.0|M2 Max|96.0|any": {
+ "n": 3,
+ "p25_sec": 300.0,
+ "p50_sec": 300.0,
+ "p75_sec": 360.0
+ },
"ltx|i2v|balanced|169.0|M2 Pro|32.0|any": {
"n": 4,
"p25_sec": 300.0,
@@ -3448,9 +3508,9 @@
"p75_sec": 1200.0
},
"ltx|i2v|balanced|169.0|M3 Max|64.0|any": {
- "n": 44,
+ "n": 76,
"p25_sec": 300.0,
- "p50_sec": 420.0,
+ "p50_sec": 300.0,
"p75_sec": 420.0
},
"ltx|i2v|balanced|169.0|M3 Ultra|256.0|any": {
@@ -3484,7 +3544,7 @@
"p75_sec": 285.0
},
"ltx|i2v|balanced|169.0|M4 Pro|48.0|any": {
- "n": 45,
+ "n": 46,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -3562,8 +3622,8 @@
"p75_sec": 300.0
},
"ltx|i2v|balanced|193.0|M3 Max|64.0|any": {
- "n": 40,
- "p25_sec": 420.0,
+ "n": 103,
+ "p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 420.0
},
@@ -3574,7 +3634,7 @@
"p75_sec": 120.0
},
"ltx|i2v|balanced|193.0|M4 Pro|48.0|any": {
- "n": 117,
+ "n": 123,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -3591,6 +3651,12 @@
"p50_sec": 105.0,
"p75_sec": 120.0
},
+ "ltx|i2v|balanced|217.0|M4 Pro|48.0|any": {
+ "n": 4,
+ "p25_sec": 600.0,
+ "p50_sec": 600.0,
+ "p75_sec": 600.0
+ },
"ltx|i2v|balanced|225.0|M5 Pro|64.0|any": {
"n": 3,
"p25_sec": 420.0,
@@ -3604,7 +3670,7 @@
"p75_sec": 300.0
},
"ltx|i2v|balanced|241.0|M1 Max|64.0|any": {
- "n": 79,
+ "n": 80,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -3640,7 +3706,7 @@
"p75_sec": 600.0
},
"ltx|i2v|balanced|241.0|M2 Max|64.0|any": {
- "n": 25,
+ "n": 33,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 600.0
@@ -3676,7 +3742,7 @@
"p75_sec": 300.0
},
"ltx|i2v|balanced|241.0|M2|16.0|any": {
- "n": 4,
+ "n": 9,
"p25_sec": 1800.0,
"p50_sec": 1800.0,
"p75_sec": 1800.0
@@ -3754,13 +3820,13 @@
"p75_sec": 420.0
},
"ltx|i2v|balanced|241.0|M4 Pro|24.0|any": {
- "n": 308,
+ "n": 326,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 420.0
},
"ltx|i2v|balanced|241.0|M4 Pro|48.0|any": {
- "n": 170,
+ "n": 189,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -3772,7 +3838,7 @@
"p75_sec": 600.0
},
"ltx|i2v|balanced|241.0|M4|16.0|any": {
- "n": 81,
+ "n": 84,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 900.0
@@ -3814,7 +3880,7 @@
"p75_sec": 120.0
},
"ltx|i2v|balanced|241.0|M5 Pro|48.0|any": {
- "n": 415,
+ "n": 419,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -3856,11 +3922,17 @@
"p75_sec": 420.0
},
"ltx|i2v|balanced|289.0|M4 Pro|48.0|any": {
- "n": 3,
+ "n": 19,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
},
+ "ltx|i2v|balanced|337.0|M4 Pro|48.0|any": {
+ "n": 3,
+ "p25_sec": 420.0,
+ "p50_sec": 420.0,
+ "p75_sec": 510.0
+ },
"ltx|i2v|balanced|361.0|M1 Max|64.0|any": {
"n": 6,
"p25_sec": 1275.0,
@@ -3892,7 +3964,7 @@
"p75_sec": 360.0
},
"ltx|i2v|balanced|361.0|M4 Pro|48.0|any": {
- "n": 9,
+ "n": 11,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -3999,8 +4071,14 @@
"p50_sec": 180.0,
"p75_sec": 180.0
},
- "ltx|i2v|balanced|721.0|M2 Max|64.0|any": {
- "n": 10,
+ "ltx|i2v|balanced|65.0|M4 Pro|48.0|any": {
+ "n": 3,
+ "p25_sec": 180.0,
+ "p50_sec": 180.0,
+ "p75_sec": 180.0
+ },
+ "ltx|i2v|balanced|721.0|M2 Max|64.0|any": {
+ "n": 10,
"p25_sec": 1800.0,
"p50_sec": 1800.0,
"p75_sec": 1800.0
@@ -4072,7 +4150,7 @@
"p75_sec": 180.0
},
"ltx|i2v|balanced|73.0|M4 Max|36.0|any": {
- "n": 82,
+ "n": 148,
"p25_sec": 90.0,
"p50_sec": 90.0,
"p75_sec": 90.0
@@ -4096,7 +4174,7 @@
"p75_sec": 120.0
},
"ltx|i2v|balanced|73.0|M4 Pro|48.0|any": {
- "n": 30,
+ "n": 33,
"p25_sec": 180.0,
"p50_sec": 180.0,
"p75_sec": 180.0
@@ -4234,7 +4312,7 @@
"p75_sec": 600.0
},
"ltx|i2v|high|121.0|M2 Max|64.0|any": {
- "n": 11,
+ "n": 12,
"p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -4414,10 +4492,10 @@
"p75_sec": 300.0
},
"ltx|i2v|high|241.0|M4 Max|128.0|any": {
- "n": 6,
- "p25_sec": 1200.0,
- "p50_sec": 1500.0,
- "p75_sec": 1800.0
+ "n": 22,
+ "p25_sec": 600.0,
+ "p50_sec": 600.0,
+ "p75_sec": 1125.0
},
"ltx|i2v|high|241.0|M4 Max|36.0|any": {
"n": 3,
@@ -4426,8 +4504,8 @@
"p75_sec": 1050.0
},
"ltx|i2v|high|241.0|M4 Max|48.0|any": {
- "n": 12,
- "p25_sec": 825.0,
+ "n": 13,
+ "p25_sec": 900.0,
"p50_sec": 900.0,
"p75_sec": 900.0
},
@@ -4455,6 +4533,12 @@
"p50_sec": 300.0,
"p75_sec": 300.0
},
+ "ltx|i2v|high|241.0|M5 Max|64.0|any": {
+ "n": 6,
+ "p25_sec": 300.0,
+ "p50_sec": 300.0,
+ "p75_sec": 300.0
+ },
"ltx|i2v|high|241.0|M5 Pro|48.0|any": {
"n": 3,
"p25_sec": 600.0,
@@ -4534,8 +4618,8 @@
"p75_sec": 180.0
},
"ltx|i2v|high|73.0|M4 Pro|48.0|any": {
- "n": 3,
- "p25_sec": 360.0,
+ "n": 5,
+ "p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
},
@@ -4551,6 +4635,12 @@
"p50_sec": 120.0,
"p75_sec": 180.0
},
+ "ltx|i2v|high|97.0|M4 Pro|48.0|any": {
+ "n": 3,
+ "p25_sec": 510.0,
+ "p50_sec": 600.0,
+ "p75_sec": 600.0
+ },
"ltx|i2v|high|97.0|M5 Max|128.0|any": {
"n": 4,
"p25_sec": 105.0,
@@ -4576,8 +4666,8 @@
"p75_sec": 285.0
},
"ltx|i2v|quick|121.0|M1 Max|64.0|any": {
- "n": 15,
- "p25_sec": 150.0,
+ "n": 19,
+ "p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 180.0
},
@@ -4660,9 +4750,9 @@
"p75_sec": 180.0
},
"ltx|i2v|quick|121.0|M4 Pro|48.0|any": {
- "n": 36,
+ "n": 37,
"p25_sec": 120.0,
- "p50_sec": 150.0,
+ "p50_sec": 180.0,
"p75_sec": 180.0
},
"ltx|i2v|quick|121.0|M4|16.0|any": {
@@ -4708,14 +4798,14 @@
"p75_sec": 225.0
},
"ltx|i2v|quick|121.0|M5|16.0|any": {
- "n": 13,
+ "n": 14,
"p25_sec": 240.0,
"p50_sec": 240.0,
- "p75_sec": 420.0
+ "p75_sec": 390.0
},
"ltx|i2v|quick|121.0|M5|24.0|any": {
- "n": 12,
- "p25_sec": 375.0,
+ "n": 13,
+ "p25_sec": 240.0,
"p50_sec": 600.0,
"p75_sec": 600.0
},
@@ -4762,10 +4852,10 @@
"p75_sec": 240.0
},
"ltx|i2v|quick|169.0|M4|16.0|any": {
- "n": 3,
- "p25_sec": 750.0,
- "p50_sec": 900.0,
- "p75_sec": 1050.0
+ "n": 4,
+ "p25_sec": 525.0,
+ "p50_sec": 750.0,
+ "p75_sec": 975.0
},
"ltx|i2v|quick|169.0|M5 Max|128.0|any": {
"n": 12,
@@ -4780,7 +4870,7 @@
"p75_sec": 120.0
},
"ltx|i2v|quick|241.0|M1 Max|32.0|any": {
- "n": 7,
+ "n": 10,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -4900,8 +4990,8 @@
"p75_sec": 60.0
},
"ltx|i2v|quick|481.0|M1 Max|32.0|any": {
- "n": 4,
- "p25_sec": 420.0,
+ "n": 7,
+ "p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 420.0
},
@@ -4954,10 +5044,10 @@
"p75_sec": 330.0
},
"ltx|i2v|quick|481.0|M4|16.0|any": {
- "n": 8,
+ "n": 11,
"p25_sec": 600.0,
- "p50_sec": 750.0,
- "p75_sec": 1200.0
+ "p50_sec": 900.0,
+ "p75_sec": 1050.0
},
"ltx|i2v|quick|481.0|M5 Max|128.0|any": {
"n": 7,
@@ -4984,7 +5074,7 @@
"p75_sec": 300.0
},
"ltx|i2v|quick|481.0|M5|16.0|any": {
- "n": 9,
+ "n": 10,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -5086,13 +5176,13 @@
"p75_sec": 420.0
},
"ltx|i2v|quick|73.0|M4 Pro|48.0|any": {
- "n": 7,
+ "n": 11,
"p25_sec": 90.0,
- "p50_sec": 90.0,
- "p75_sec": 105.0
+ "p50_sec": 120.0,
+ "p75_sec": 150.0
},
"ltx|i2v|quick|73.0|M4|16.0|any": {
- "n": 53,
+ "n": 54,
"p25_sec": 240.0,
"p50_sec": 300.0,
"p75_sec": 600.0
@@ -5145,6 +5235,12 @@
"p50_sec": 90.0,
"p75_sec": 105.0
},
+ "ltx|i2v|quick|97.0|M4 Pro|48.0|any": {
+ "n": 3,
+ "p25_sec": 120.0,
+ "p50_sec": 120.0,
+ "p75_sec": 180.0
+ },
"ltx|i2v|quick|97.0|M4|16.0|any": {
"n": 11,
"p25_sec": 300.0,
@@ -5158,13 +5254,13 @@
"p75_sec": 15.0
},
"ltx|i2v|standard|121.0|M1 Max|32.0|any": {
- "n": 202,
- "p25_sec": 240.0,
+ "n": 209,
+ "p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 300.0
},
"ltx|i2v|standard|121.0|M1 Max|64.0|any": {
- "n": 11,
+ "n": 13,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -5188,7 +5284,7 @@
"p75_sec": 2025.0
},
"ltx|i2v|standard|121.0|M2 Max|32.0|any": {
- "n": 18,
+ "n": 19,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 120.0
@@ -5200,7 +5296,7 @@
"p75_sec": 300.0
},
"ltx|i2v|standard|121.0|M2 Max|96.0|any": {
- "n": 110,
+ "n": 119,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -5236,8 +5332,8 @@
"p75_sec": 420.0
},
"ltx|i2v|standard|121.0|M3 Ultra|512.0|any": {
- "n": 48,
- "p25_sec": 285.0,
+ "n": 54,
+ "p25_sec": 255.0,
"p50_sec": 600.0,
"p75_sec": 600.0
},
@@ -5248,10 +5344,10 @@
"p75_sec": 600.0
},
"ltx|i2v|standard|121.0|M4 Max|36.0|any": {
- "n": 22,
+ "n": 23,
"p25_sec": 90.0,
"p50_sec": 90.0,
- "p75_sec": 112.5
+ "p75_sec": 120.0
},
"ltx|i2v|standard|121.0|M4 Max|48.0|any": {
"n": 75,
@@ -5272,7 +5368,7 @@
"p75_sec": 240.0
},
"ltx|i2v|standard|121.0|M4 Pro|48.0|any": {
- "n": 91,
+ "n": 92,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -5290,8 +5386,8 @@
"p75_sec": 420.0
},
"ltx|i2v|standard|121.0|M5 Max|128.0|any": {
- "n": 78,
- "p25_sec": 120.0,
+ "n": 82,
+ "p25_sec": 90.0,
"p50_sec": 180.0,
"p75_sec": 180.0
},
@@ -5380,10 +5476,10 @@
"p75_sec": 225.0
},
"ltx|i2v|standard|169.0|M1 Max|32.0|any": {
- "n": 110,
+ "n": 120,
"p25_sec": 420.0,
"p50_sec": 420.0,
- "p75_sec": 600.0
+ "p75_sec": 420.0
},
"ltx|i2v|standard|169.0|M1 Max|64.0|any": {
"n": 9,
@@ -5404,7 +5500,7 @@
"p75_sec": 180.0
},
"ltx|i2v|standard|169.0|M2 Max|96.0|any": {
- "n": 40,
+ "n": 53,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -5464,7 +5560,7 @@
"p75_sec": 240.0
},
"ltx|i2v|standard|169.0|M4 Pro|48.0|any": {
- "n": 52,
+ "n": 56,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -5608,7 +5704,7 @@
"p75_sec": 900.0
},
"ltx|i2v|standard|241.0|M2 Max|96.0|any": {
- "n": 30,
+ "n": 34,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -5686,13 +5782,13 @@
"p75_sec": 600.0
},
"ltx|i2v|standard|241.0|M4 Pro|24.0|any": {
- "n": 56,
+ "n": 66,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 300.0
},
"ltx|i2v|standard|241.0|M4 Pro|48.0|any": {
- "n": 29,
+ "n": 34,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -5716,10 +5812,10 @@
"p75_sec": 600.0
},
"ltx|i2v|standard|241.0|M5 Max|128.0|any": {
- "n": 24,
+ "n": 34,
"p25_sec": 300.0,
- "p50_sec": 300.0,
- "p75_sec": 420.0
+ "p50_sec": 420.0,
+ "p75_sec": 600.0
},
"ltx|i2v|standard|241.0|M5 Max|36.0|any": {
"n": 17,
@@ -6123,6 +6219,12 @@
"p50_sec": 1200.0,
"p75_sec": 1200.0
},
+ "ltx|keyframe|balanced|241.0|M2 Ultra|64.0|any": {
+ "n": 3,
+ "p25_sec": 510.0,
+ "p50_sec": 600.0,
+ "p75_sec": 600.0
+ },
"ltx|keyframe|balanced|241.0|M4 Max|48.0|any": {
"n": 3,
"p25_sec": 750.0,
@@ -6273,12 +6375,24 @@
"p50_sec": 180.0,
"p75_sec": 180.0
},
+ "ltx|keyframe|high|73.0|M4 Pro|48.0|any": {
+ "n": 3,
+ "p25_sec": 420.0,
+ "p50_sec": 420.0,
+ "p75_sec": 420.0
+ },
"ltx|keyframe|high|97.0|M3 Ultra|256.0|any": {
"n": 12,
"p25_sec": 180.0,
"p50_sec": 240.0,
"p75_sec": 300.0
},
+ "ltx|keyframe|high|97.0|M4 Pro|48.0|any": {
+ "n": 6,
+ "p25_sec": 420.0,
+ "p50_sec": 420.0,
+ "p75_sec": 420.0
+ },
"ltx|keyframe|quick|121.0|M4 Max|64.0|any": {
"n": 7,
"p25_sec": 240.0,
@@ -6370,13 +6484,13 @@
"p75_sec": 90.0
},
"ltx|t2v|balanced|121.0|M1 Max|32.0|any": {
- "n": 88,
+ "n": 104,
"p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 240.0
},
"ltx|t2v|balanced|121.0|M1 Max|64.0|any": {
- "n": 162,
+ "n": 163,
"p25_sec": 240.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -6418,13 +6532,13 @@
"p75_sec": 900.0
},
"ltx|t2v|balanced|121.0|M2 Max|32.0|any": {
- "n": 27,
+ "n": 30,
"p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 180.0
},
"ltx|t2v|balanced|121.0|M2 Max|64.0|any": {
- "n": 61,
+ "n": 62,
"p25_sec": 180.0,
"p50_sec": 180.0,
"p75_sec": 240.0
@@ -6448,7 +6562,7 @@
"p75_sec": 180.0
},
"ltx|t2v|balanced|121.0|M2 Ultra|128.0|any": {
- "n": 6,
+ "n": 8,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 120.0
@@ -6466,9 +6580,9 @@
"p75_sec": 1050.0
},
"ltx|t2v|balanced|121.0|M2|8.0|any": {
- "n": 5,
- "p25_sec": 600.0,
- "p50_sec": 900.0,
+ "n": 7,
+ "p25_sec": 510.0,
+ "p50_sec": 600.0,
"p75_sec": 900.0
},
"ltx|t2v|balanced|121.0|M3 Max|36.0|any": {
@@ -6514,10 +6628,10 @@
"p75_sec": 90.0
},
"ltx|t2v|balanced|121.0|M3 Ultra|512.0|any": {
- "n": 52,
+ "n": 57,
"p25_sec": 90.0,
"p50_sec": 90.0,
- "p75_sec": 90.0
+ "p75_sec": 120.0
},
"ltx|t2v|balanced|121.0|M3 Ultra|96.0|any": {
"n": 25,
@@ -6538,7 +6652,7 @@
"p75_sec": 1200.0
},
"ltx|t2v|balanced|121.0|M4 Max|128.0|any": {
- "n": 138,
+ "n": 140,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 180.0
@@ -6562,13 +6676,13 @@
"p75_sec": 180.0
},
"ltx|t2v|balanced|121.0|M4 Pro|24.0|any": {
- "n": 194,
+ "n": 208,
"p25_sec": 180.0,
"p50_sec": 240.0,
"p75_sec": 240.0
},
"ltx|t2v|balanced|121.0|M4 Pro|48.0|any": {
- "n": 109,
+ "n": 113,
"p25_sec": 240.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -6580,7 +6694,7 @@
"p75_sec": 300.0
},
"ltx|t2v|balanced|121.0|M4|16.0|any": {
- "n": 30,
+ "n": 32,
"p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 900.0
@@ -6598,10 +6712,10 @@
"p75_sec": 330.0
},
"ltx|t2v|balanced|121.0|M5 Max|128.0|any": {
- "n": 80,
+ "n": 83,
"p25_sec": 60.0,
"p50_sec": 60.0,
- "p75_sec": 60.0
+ "p75_sec": 75.0
},
"ltx|t2v|balanced|121.0|M5 Max|36.0|any": {
"n": 3,
@@ -6616,7 +6730,7 @@
"p75_sec": 180.0
},
"ltx|t2v|balanced|121.0|M5 Max|64.0|any": {
- "n": 50,
+ "n": 51,
"p25_sec": 60.0,
"p50_sec": 60.0,
"p75_sec": 90.0
@@ -6646,10 +6760,10 @@
"p75_sec": 420.0
},
"ltx|t2v|balanced|121.0|M5|24.0|any": {
- "n": 14,
- "p25_sec": 135.0,
- "p50_sec": 210.0,
- "p75_sec": 525.0
+ "n": 15,
+ "p25_sec": 120.0,
+ "p50_sec": 180.0,
+ "p75_sec": 450.0
},
"ltx|t2v|balanced|121.0|M5|32.0|any": {
"n": 11,
@@ -6657,6 +6771,12 @@
"p50_sec": 120.0,
"p75_sec": 180.0
},
+ "ltx|t2v|balanced|121.0|M6|32.0|any": {
+ "n": 3,
+ "p25_sec": 105.0,
+ "p50_sec": 120.0,
+ "p75_sec": 120.0
+ },
"ltx|t2v|balanced|145.0|M1 Max|64.0|any": {
"n": 6,
"p25_sec": 180.0,
@@ -6694,10 +6814,10 @@
"p75_sec": 90.0
},
"ltx|t2v|balanced|169.0|M1 Max|32.0|any": {
- "n": 11,
- "p25_sec": 210.0,
+ "n": 13,
+ "p25_sec": 240.0,
"p50_sec": 240.0,
- "p75_sec": 270.0
+ "p75_sec": 240.0
},
"ltx|t2v|balanced|169.0|M1 Max|64.0|any": {
"n": 16,
@@ -6808,10 +6928,10 @@
"p75_sec": 420.0
},
"ltx|t2v|balanced|241.0|M1 Max|32.0|any": {
- "n": 9,
- "p25_sec": 240.0,
+ "n": 12,
+ "p25_sec": 285.0,
"p50_sec": 300.0,
- "p75_sec": 420.0
+ "p75_sec": 330.0
},
"ltx|t2v|balanced|241.0|M1 Max|64.0|any": {
"n": 35,
@@ -6850,7 +6970,7 @@
"p75_sec": 450.0
},
"ltx|t2v|balanced|241.0|M2 Max|64.0|any": {
- "n": 61,
+ "n": 71,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -6886,7 +7006,7 @@
"p75_sec": 420.0
},
"ltx|t2v|balanced|241.0|M3 Ultra|512.0|any": {
- "n": 33,
+ "n": 34,
"p25_sec": 420.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -6904,10 +7024,10 @@
"p75_sec": 900.0
},
"ltx|t2v|balanced|241.0|M4 Max|36.0|any": {
- "n": 19,
+ "n": 20,
"p25_sec": 180.0,
- "p50_sec": 180.0,
- "p75_sec": 300.0
+ "p50_sec": 210.0,
+ "p75_sec": 375.0
},
"ltx|t2v|balanced|241.0|M4 Max|48.0|any": {
"n": 211,
@@ -6922,7 +7042,7 @@
"p75_sec": 300.0
},
"ltx|t2v|balanced|241.0|M4 Pro|24.0|any": {
- "n": 77,
+ "n": 79,
"p25_sec": 300.0,
"p50_sec": 600.0,
"p75_sec": 900.0
@@ -6940,9 +7060,9 @@
"p75_sec": 600.0
},
"ltx|t2v|balanced|241.0|M4|16.0|any": {
- "n": 14,
+ "n": 16,
"p25_sec": 600.0,
- "p50_sec": 900.0,
+ "p50_sec": 1050.0,
"p75_sec": 1200.0
},
"ltx|t2v|balanced|241.0|M4|24.0|any": {
@@ -6952,7 +7072,7 @@
"p75_sec": 2700.0
},
"ltx|t2v|balanced|241.0|M5 Max|128.0|any": {
- "n": 23,
+ "n": 26,
"p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 180.0
@@ -6964,13 +7084,13 @@
"p75_sec": 180.0
},
"ltx|t2v|balanced|241.0|M5 Max|64.0|any": {
- "n": 16,
+ "n": 18,
"p25_sec": 120.0,
- "p50_sec": 120.0,
- "p75_sec": 195.0
+ "p50_sec": 150.0,
+ "p75_sec": 240.0
},
"ltx|t2v|balanced|241.0|M5 Pro|48.0|any": {
- "n": 18,
+ "n": 19,
"p25_sec": 240.0,
"p50_sec": 240.0,
"p75_sec": 300.0
@@ -7066,7 +7186,7 @@
"p75_sec": 30.0
},
"ltx|t2v|balanced|73.0|M1 Max|32.0|any": {
- "n": 40,
+ "n": 46,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 120.0
@@ -7084,10 +7204,10 @@
"p75_sec": 135.0
},
"ltx|t2v|balanced|73.0|M2 Max|32.0|any": {
- "n": 15,
+ "n": 16,
"p25_sec": 120.0,
"p50_sec": 120.0,
- "p75_sec": 150.0
+ "p75_sec": 180.0
},
"ltx|t2v|balanced|73.0|M2 Max|64.0|any": {
"n": 14,
@@ -7132,7 +7252,7 @@
"p75_sec": 60.0
},
"ltx|t2v|balanced|73.0|M4 Max|128.0|any": {
- "n": 118,
+ "n": 119,
"p25_sec": 90.0,
"p50_sec": 90.0,
"p75_sec": 90.0
@@ -7150,7 +7270,7 @@
"p75_sec": 120.0
},
"ltx|t2v|balanced|73.0|M4 Pro|48.0|any": {
- "n": 40,
+ "n": 41,
"p25_sec": 90.0,
"p50_sec": 180.0,
"p75_sec": 180.0
@@ -7167,6 +7287,12 @@
"p50_sec": 45.0,
"p75_sec": 48.8
},
+ "ltx|t2v|balanced|73.0|M5 Max|64.0|any": {
+ "n": 4,
+ "p25_sec": 41.2,
+ "p50_sec": 45.0,
+ "p75_sec": 45.0
+ },
"ltx|t2v|balanced|73.0|M5 Pro|48.0|any": {
"n": 7,
"p25_sec": 60.0,
@@ -7197,6 +7323,12 @@
"p50_sec": 45.0,
"p75_sec": 45.0
},
+ "ltx|t2v|balanced|97.0|M1 Max|32.0|any": {
+ "n": 3,
+ "p25_sec": 150.0,
+ "p50_sec": 180.0,
+ "p75_sec": 180.0
+ },
"ltx|t2v|balanced|97.0|M1 Max|64.0|any": {
"n": 3,
"p25_sec": 120.0,
@@ -7312,15 +7444,15 @@
"p75_sec": 195.0
},
"ltx|t2v|high|121.0|M3 Ultra|512.0|any": {
- "n": 6,
- "p25_sec": 135.0,
- "p50_sec": 210.0,
- "p75_sec": 510.0
+ "n": 12,
+ "p25_sec": 180.0,
+ "p50_sec": 270.0,
+ "p75_sec": 675.0
},
"ltx|t2v|high|121.0|M4 Max|128.0|any": {
- "n": 57,
- "p25_sec": 600.0,
- "p50_sec": 900.0,
+ "n": 70,
+ "p25_sec": 420.0,
+ "p50_sec": 600.0,
"p75_sec": 900.0
},
"ltx|t2v|high|121.0|M4 Max|64.0|any": {
@@ -7330,15 +7462,21 @@
"p75_sec": 420.0
},
"ltx|t2v|high|121.0|M4 Pro|48.0|any": {
- "n": 10,
+ "n": 14,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
},
+ "ltx|t2v|high|121.0|M4 Pro|64.0|any": {
+ "n": 4,
+ "p25_sec": 420.0,
+ "p50_sec": 420.0,
+ "p75_sec": 420.0
+ },
"ltx|t2v|high|121.0|M5 Max|128.0|any": {
- "n": 8,
+ "n": 9,
"p25_sec": 120.0,
- "p50_sec": 150.0,
+ "p50_sec": 120.0,
"p75_sec": 180.0
},
"ltx|t2v|high|121.0|M5 Max|48.0|any": {
@@ -7402,8 +7540,8 @@
"p75_sec": 300.0
},
"ltx|t2v|high|169.0|M4 Pro|48.0|any": {
- "n": 7,
- "p25_sec": 600.0,
+ "n": 10,
+ "p25_sec": 675.0,
"p50_sec": 900.0,
"p75_sec": 900.0
},
@@ -7414,7 +7552,7 @@
"p75_sec": 255.0
},
"ltx|t2v|high|241.0|M1 Max|64.0|any": {
- "n": 42,
+ "n": 43,
"p25_sec": 900.0,
"p50_sec": 900.0,
"p75_sec": 900.0
@@ -7450,10 +7588,10 @@
"p75_sec": 300.0
},
"ltx|t2v|high|241.0|M4 Max|128.0|any": {
- "n": 11,
- "p25_sec": 1200.0,
- "p50_sec": 1200.0,
- "p75_sec": 1800.0
+ "n": 22,
+ "p25_sec": 900.0,
+ "p50_sec": 1050.0,
+ "p75_sec": 1200.0
},
"ltx|t2v|high|241.0|M4 Max|48.0|any": {
"n": 5,
@@ -7474,8 +7612,8 @@
"p75_sec": 1200.0
},
"ltx|t2v|high|241.0|M5 Max|128.0|any": {
- "n": 11,
- "p25_sec": 270.0,
+ "n": 12,
+ "p25_sec": 240.0,
"p50_sec": 300.0,
"p75_sec": 420.0
},
@@ -7485,6 +7623,12 @@
"p50_sec": 300.0,
"p75_sec": 300.0
},
+ "ltx|t2v|high|241.0|M5 Pro|64.0|any": {
+ "n": 4,
+ "p25_sec": 420.0,
+ "p50_sec": 420.0,
+ "p75_sec": 420.0
+ },
"ltx|t2v|high|289.0|M2 Max|96.0|any": {
"n": 5,
"p25_sec": 900.0,
@@ -7516,7 +7660,7 @@
"p75_sec": 180.0
},
"ltx|t2v|high|65.0|M5 Max|128.0|any": {
- "n": 17,
+ "n": 18,
"p25_sec": 90.0,
"p50_sec": 120.0,
"p75_sec": 120.0
@@ -7575,6 +7719,12 @@
"p50_sec": 420.0,
"p75_sec": 420.0
},
+ "ltx|t2v|high|97.0|M3 Ultra|512.0|any": {
+ "n": 3,
+ "p25_sec": 180.0,
+ "p50_sec": 180.0,
+ "p75_sec": 690.0
+ },
"ltx|t2v|high|97.0|M5 Pro|48.0|any": {
"n": 6,
"p25_sec": 135.0,
@@ -7588,7 +7738,7 @@
"p75_sec": 240.0
},
"ltx|t2v|quick|121.0|M1 Max|64.0|any": {
- "n": 34,
+ "n": 46,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 180.0
@@ -7612,8 +7762,8 @@
"p75_sec": 75.0
},
"ltx|t2v|quick|121.0|M2 Max|32.0|any": {
- "n": 6,
- "p25_sec": 120.0,
+ "n": 10,
+ "p25_sec": 97.5,
"p50_sec": 120.0,
"p75_sec": 120.0
},
@@ -7714,19 +7864,19 @@
"p75_sec": 180.0
},
"ltx|t2v|quick|121.0|M4|16.0|any": {
- "n": 7,
- "p25_sec": 360.0,
+ "n": 8,
+ "p25_sec": 300.0,
"p50_sec": 420.0,
- "p75_sec": 510.0
+ "p75_sec": 465.0
},
"ltx|t2v|quick|121.0|M4|24.0|any": {
- "n": 8,
- "p25_sec": 285.0,
+ "n": 11,
+ "p25_sec": 270.0,
"p50_sec": 300.0,
- "p75_sec": 330.0
+ "p75_sec": 300.0
},
"ltx|t2v|quick|121.0|M5 Max|128.0|any": {
- "n": 88,
+ "n": 102,
"p25_sec": 60.0,
"p50_sec": 120.0,
"p75_sec": 120.0
@@ -7774,16 +7924,16 @@
"p75_sec": 420.0
},
"ltx|t2v|quick|121.0|M5|24.0|any": {
- "n": 35,
+ "n": 38,
"p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 240.0
},
"ltx|t2v|quick|145.0|M4 Pro|24.0|any": {
- "n": 4,
+ "n": 7,
"p25_sec": 180.0,
"p50_sec": 180.0,
- "p75_sec": 195.0
+ "p75_sec": 180.0
},
"ltx|t2v|quick|145.0|M5 Max|128.0|any": {
"n": 3,
@@ -7852,13 +8002,13 @@
"p75_sec": 180.0
},
"ltx|t2v|quick|241.0|M1 Max|32.0|any": {
- "n": 4,
- "p25_sec": 525.0,
- "p50_sec": 600.0,
- "p75_sec": 675.0
+ "n": 7,
+ "p25_sec": 300.0,
+ "p50_sec": 300.0,
+ "p75_sec": 600.0
},
"ltx|t2v|quick|241.0|M1 Max|64.0|any": {
- "n": 28,
+ "n": 29,
"p25_sec": 240.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -7912,16 +8062,16 @@
"p75_sec": 300.0
},
"ltx|t2v|quick|241.0|M4|16.0|any": {
- "n": 41,
- "p25_sec": 420.0,
+ "n": 42,
+ "p25_sec": 465.0,
"p50_sec": 600.0,
"p75_sec": 600.0
},
"ltx|t2v|quick|241.0|M4|24.0|any": {
- "n": 5,
+ "n": 6,
"p25_sec": 420.0,
- "p50_sec": 420.0,
- "p75_sec": 900.0
+ "p50_sec": 510.0,
+ "p75_sec": 825.0
},
"ltx|t2v|quick|241.0|M5 Max|128.0|any": {
"n": 13,
@@ -7977,11 +8127,23 @@
"p50_sec": 30.0,
"p75_sec": 37.5
},
+ "ltx|t2v|quick|385.0|M5 Max|128.0|any": {
+ "n": 3,
+ "p25_sec": 150.0,
+ "p50_sec": 180.0,
+ "p75_sec": 210.0
+ },
+ "ltx|t2v|quick|481.0|M1 Max|32.0|any": {
+ "n": 8,
+ "p25_sec": 300.0,
+ "p50_sec": 300.0,
+ "p75_sec": 300.0
+ },
"ltx|t2v|quick|481.0|M1 Max|64.0|any": {
- "n": 4,
- "p25_sec": 525.0,
+ "n": 5,
+ "p25_sec": 600.0,
"p50_sec": 600.0,
- "p75_sec": 750.0
+ "p75_sec": 600.0
},
"ltx|t2v|quick|481.0|M1 Pro|32.0|any": {
"n": 3,
@@ -8092,10 +8254,10 @@
"p75_sec": 30.0
},
"ltx|t2v|quick|73.0|M1 Max|32.0|any": {
- "n": 3,
+ "n": 11,
"p25_sec": 120.0,
"p50_sec": 120.0,
- "p75_sec": 150.0
+ "p75_sec": 120.0
},
"ltx|t2v|quick|73.0|M1 Max|64.0|any": {
"n": 19,
@@ -8200,10 +8362,10 @@
"p75_sec": 600.0
},
"ltx|t2v|quick|73.0|M5 Max|128.0|any": {
- "n": 12,
- "p25_sec": 26.2,
- "p50_sec": 37.5,
- "p75_sec": 56.2
+ "n": 13,
+ "p25_sec": 30.0,
+ "p50_sec": 45.0,
+ "p75_sec": 45.0
},
"ltx|t2v|quick|73.0|M5 Max|64.0|any": {
"n": 3,
@@ -8248,10 +8410,10 @@
"p75_sec": 90.0
},
"ltx|t2v|quick|97.0|M3 Ultra|512.0|any": {
- "n": 4,
- "p25_sec": 101.2,
+ "n": 5,
+ "p25_sec": 120.0,
"p50_sec": 120.0,
- "p75_sec": 135.0
+ "p75_sec": 180.0
},
"ltx|t2v|quick|97.0|M4 Max|36.0|any": {
"n": 4,
@@ -8271,6 +8433,12 @@
"p50_sec": 240.0,
"p75_sec": 240.0
},
+ "ltx|t2v|quick|97.0|M5 Max|128.0|any": {
+ "n": 3,
+ "p25_sec": 37.5,
+ "p50_sec": 45.0,
+ "p75_sec": 45.0
+ },
"ltx|t2v|quick|97.0|M5 Pro|48.0|any": {
"n": 4,
"p25_sec": 45.0,
@@ -8350,9 +8518,9 @@
"p75_sec": 420.0
},
"ltx|t2v|standard|121.0|M3 Ultra|512.0|any": {
- "n": 43,
+ "n": 56,
"p25_sec": 120.0,
- "p50_sec": 120.0,
+ "p50_sec": 180.0,
"p75_sec": 420.0
},
"ltx|t2v|standard|121.0|M3 Ultra|96.0|any": {
@@ -8410,15 +8578,15 @@
"p75_sec": 375.0
},
"ltx|t2v|standard|121.0|M4|24.0|any": {
- "n": 3,
- "p25_sec": 270.0,
+ "n": 4,
+ "p25_sec": 285.0,
"p50_sec": 300.0,
- "p75_sec": 360.0
+ "p75_sec": 330.0
},
"ltx|t2v|standard|121.0|M5 Max|128.0|any": {
- "n": 20,
+ "n": 22,
"p25_sec": 60.0,
- "p50_sec": 120.0,
+ "p50_sec": 105.0,
"p75_sec": 120.0
},
"ltx|t2v|standard|121.0|M5 Max|36.0|any": {
@@ -8458,7 +8626,7 @@
"p75_sec": 420.0
},
"ltx|t2v|standard|121.0|M5|24.0|any": {
- "n": 144,
+ "n": 146,
"p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 240.0
@@ -8650,7 +8818,7 @@
"p75_sec": 600.0
},
"ltx|t2v|standard|241.0|M4|16.0|any": {
- "n": 22,
+ "n": 23,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 900.0
@@ -8662,10 +8830,10 @@
"p75_sec": 600.0
},
"ltx|t2v|standard|241.0|M5 Max|128.0|any": {
- "n": 9,
+ "n": 15,
"p25_sec": 300.0,
- "p50_sec": 300.0,
- "p75_sec": 420.0
+ "p50_sec": 600.0,
+ "p75_sec": 600.0
},
"ltx|t2v|standard|241.0|M5 Max|36.0|any": {
"n": 12,
@@ -8704,7 +8872,7 @@
"p75_sec": 600.0
},
"ltx|t2v|standard|241.0|M5|24.0|any": {
- "n": 48,
+ "n": 49,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 420.0
@@ -8757,6 +8925,18 @@
"p50_sec": 45.0,
"p75_sec": 45.0
},
+ "ltx|t2v|standard|49.0|M5 Max|128.0|any": {
+ "n": 3,
+ "p25_sec": 15.0,
+ "p50_sec": 15.0,
+ "p75_sec": 22.5
+ },
+ "ltx|t2v|standard|57.0|M3 Ultra|512.0|any": {
+ "n": 34,
+ "p25_sec": 60.0,
+ "p50_sec": 150.0,
+ "p75_sec": 300.0
+ },
"ltx|t2v|standard|73.0|M1 Max|32.0|any": {
"n": 4,
"p25_sec": 120.0,
@@ -9053,16 +9233,16 @@
"p75_sec": 900.0
},
"h3|i2v|draft_3s|73.0|M4 Pro|fast": {
- "n": 8,
+ "n": 12,
"p25_sec": 180.0,
"p50_sec": 180.0,
- "p75_sec": 210.0
+ "p75_sec": 240.0
},
"h3|i2v|draft_3s|73.0|M5 Max|best": {
- "n": 11,
+ "n": 13,
"p25_sec": 60.0,
"p50_sec": 90.0,
- "p75_sec": 150.0
+ "p75_sec": 120.0
},
"h3|i2v|draft_3s|73.0|M5 Pro|best": {
"n": 5,
@@ -9125,9 +9305,9 @@
"p75_sec": 120.0
},
"h3|i2v|draft_5s|124.0|M4 Max|fast": {
- "n": 19,
+ "n": 21,
"p25_sec": 120.0,
- "p50_sec": 300.0,
+ "p50_sec": 240.0,
"p75_sec": 300.0
},
"h3|i2v|draft_5s|124.0|M4 Pro|fast": {
@@ -9281,7 +9461,7 @@
"p75_sec": 2400.0
},
"h3|i2v|high_15s|362.0|M4 Max|fast": {
- "n": 569,
+ "n": 594,
"p25_sec": 1200.0,
"p50_sec": 1200.0,
"p75_sec": 1200.0
@@ -9323,10 +9503,10 @@
"p75_sec": 420.0
},
"h3|i2v|high_3s|73.0|M4 Max|best": {
- "n": 5,
- "p25_sec": 420.0,
+ "n": 8,
+ "p25_sec": 555.0,
"p50_sec": 600.0,
- "p75_sec": 600.0
+ "p75_sec": 900.0
},
"h3|i2v|high_3s|73.0|M4 Max|fast": {
"n": 16,
@@ -9334,6 +9514,12 @@
"p50_sec": 300.0,
"p75_sec": 420.0
},
+ "h3|i2v|high_3s|73.0|M4 Pro|fast": {
+ "n": 10,
+ "p25_sec": 600.0,
+ "p50_sec": 600.0,
+ "p75_sec": 600.0
+ },
"h3|i2v|high_3s|73.0|M5 Max|fast": {
"n": 29,
"p25_sec": 120.0,
@@ -9347,7 +9533,7 @@
"p75_sec": 300.0
},
"h3|i2v|high_3s|73.0|M5 Pro|fast": {
- "n": 58,
+ "n": 103,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 180.0
@@ -9419,16 +9605,16 @@
"p75_sec": 1800.0
},
"h3|i2v|high_5s|124.0|M4 Max|fast": {
- "n": 141,
+ "n": 160,
"p25_sec": 420.0,
"p50_sec": 600.0,
"p75_sec": 900.0
},
"h3|i2v|high_5s|124.0|M4 Pro|fast": {
- "n": 7,
+ "n": 8,
"p25_sec": 900.0,
"p50_sec": 900.0,
- "p75_sec": 1050.0
+ "p75_sec": 975.0
},
"h3|i2v|high_5s|124.0|M5 Max|best": {
"n": 6,
@@ -9449,7 +9635,7 @@
"p75_sec": 600.0
},
"h3|i2v|high_5s|124.0|M5 Pro|fast": {
- "n": 147,
+ "n": 233,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -9497,10 +9683,10 @@
"p75_sec": 5400.0
},
"h3|i2v|native_3s|73.0|M4 Max|best": {
- "n": 3,
+ "n": 4,
"p25_sec": 1200.0,
- "p50_sec": 1200.0,
- "p75_sec": 1500.0
+ "p50_sec": 1500.0,
+ "p75_sec": 1800.0
},
"h3|i2v|native_3s|73.0|M4 Max|fast": {
"n": 24,
@@ -9605,10 +9791,10 @@
"p75_sec": 2400.0
},
"h3|i2v|standard_10s|243.0|M1 Max|fast": {
- "n": 19,
+ "n": 20,
"p25_sec": 900.0,
"p50_sec": 900.0,
- "p75_sec": 1050.0
+ "p75_sec": 1200.0
},
"h3|i2v|standard_10s|243.0|M1 Ultra|fast": {
"n": 11,
@@ -9629,7 +9815,7 @@
"p75_sec": 1200.0
},
"h3|i2v|standard_10s|243.0|M2 Ultra|fast": {
- "n": 6,
+ "n": 8,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -9653,7 +9839,7 @@
"p75_sec": 1200.0
},
"h3|i2v|standard_10s|243.0|M4 Max|fast": {
- "n": 144,
+ "n": 146,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -9677,10 +9863,10 @@
"p75_sec": 555.0
},
"h3|i2v|standard_10s|243.0|M5 Max|fast": {
- "n": 7,
+ "n": 21,
"p25_sec": 180.0,
- "p50_sec": 240.0,
- "p75_sec": 300.0
+ "p50_sec": 180.0,
+ "p75_sec": 180.0
},
"h3|i2v|standard_10s|243.0|M5 Pro|best": {
"n": 6,
@@ -9737,13 +9923,13 @@
"p75_sec": 1050.0
},
"h3|i2v|standard_15s|362.0|M5 Max|fast": {
- "n": 14,
+ "n": 27,
"p25_sec": 300.0,
- "p50_sec": 420.0,
+ "p50_sec": 300.0,
"p75_sec": 420.0
},
"h3|i2v|standard_15s|362.0|M5 Pro|best": {
- "n": 10,
+ "n": 12,
"p25_sec": 900.0,
"p50_sec": 900.0,
"p75_sec": 900.0
@@ -9779,10 +9965,10 @@
"p75_sec": 180.0
},
"h3|i2v|standard_3s|73.0|M5 Max|best": {
- "n": 20,
+ "n": 26,
"p25_sec": 90.0,
- "p50_sec": 120.0,
- "p75_sec": 180.0
+ "p50_sec": 90.0,
+ "p75_sec": 120.0
},
"h3|i2v|standard_3s|73.0|M5 Max|fast": {
"n": 7,
@@ -9791,7 +9977,7 @@
"p75_sec": 60.0
},
"h3|i2v|standard_3s|73.0|M5 Pro|best": {
- "n": 6,
+ "n": 7,
"p25_sec": 180.0,
"p50_sec": 180.0,
"p75_sec": 180.0
@@ -9809,10 +9995,10 @@
"p75_sec": 1200.0
},
"h3|i2v|standard_5s|124.0|M1 Max|fast": {
- "n": 19,
+ "n": 23,
"p25_sec": 420.0,
"p50_sec": 420.0,
- "p75_sec": 420.0
+ "p75_sec": 510.0
},
"h3|i2v|standard_5s|124.0|M1 Ultra|best": {
"n": 4,
@@ -9832,6 +10018,12 @@
"p50_sec": 600.0,
"p75_sec": 600.0
},
+ "h3|i2v|standard_5s|124.0|M2 Ultra|fast": {
+ "n": 3,
+ "p25_sec": 270.0,
+ "p50_sec": 300.0,
+ "p75_sec": 300.0
+ },
"h3|i2v|standard_5s|124.0|M3 Max|best": {
"n": 5,
"p25_sec": 600.0,
@@ -9863,7 +10055,7 @@
"p75_sec": 1050.0
},
"h3|i2v|standard_5s|124.0|M4 Max|fast": {
- "n": 257,
+ "n": 261,
"p25_sec": 240.0,
"p50_sec": 240.0,
"p75_sec": 240.0
@@ -9875,8 +10067,8 @@
"p75_sec": 600.0
},
"h3|i2v|standard_5s|124.0|M5 Max|best": {
- "n": 73,
- "p25_sec": 240.0,
+ "n": 78,
+ "p25_sec": 180.0,
"p50_sec": 240.0,
"p75_sec": 300.0
},
@@ -10031,15 +10223,15 @@
"p75_sec": 1200.0
},
"h3|t2v|draft_15s|362.0|M5 Max|best": {
- "n": 4,
+ "n": 5,
"p25_sec": 420.0,
- "p50_sec": 510.0,
+ "p50_sec": 420.0,
"p75_sec": 600.0
},
"h3|t2v|draft_15s|362.0|M5 Max|fast": {
- "n": 9,
+ "n": 10,
"p25_sec": 240.0,
- "p50_sec": 1200.0,
+ "p50_sec": 750.0,
"p75_sec": 1200.0
},
"h3|t2v|draft_15s|362.0|M5 Pro|fast": {
@@ -10115,16 +10307,16 @@
"p75_sec": 120.0
},
"h3|t2v|draft_3s|73.0|M3 Ultra|fast": {
- "n": 17,
+ "n": 21,
"p25_sec": 45.0,
"p50_sec": 45.0,
"p75_sec": 60.0
},
"h3|t2v|draft_3s|73.0|M4 Max|best": {
- "n": 15,
+ "n": 16,
"p25_sec": 120.0,
"p50_sec": 180.0,
- "p75_sec": 240.0
+ "p75_sec": 300.0
},
"h3|t2v|draft_3s|73.0|M4 Max|fast": {
"n": 23,
@@ -10253,7 +10445,7 @@
"p75_sec": 420.0
},
"h3|t2v|draft_5s|124.0|M5 Max|best": {
- "n": 135,
+ "n": 136,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 180.0
@@ -10343,10 +10535,10 @@
"p75_sec": 1500.0
},
"h3|t2v|high_10s|243.0|M4 Max|fast": {
- "n": 12,
+ "n": 17,
"p25_sec": 1200.0,
"p50_sec": 1200.0,
- "p75_sec": 1350.0
+ "p75_sec": 1200.0
},
"h3|t2v|high_15s|362.0|M1 Ultra|best": {
"n": 35,
@@ -10379,10 +10571,10 @@
"p75_sec": 2400.0
},
"h3|t2v|high_15s|362.0|M5 Max|fast": {
- "n": 4,
- "p25_sec": 825.0,
- "p50_sec": 1050.0,
- "p75_sec": 1500.0
+ "n": 6,
+ "p25_sec": 600.0,
+ "p50_sec": 750.0,
+ "p75_sec": 1125.0
},
"h3|t2v|high_15s|362.0|M5 Pro|best": {
"n": 7,
@@ -10475,13 +10667,13 @@
"p75_sec": 1800.0
},
"h3|t2v|high_5s|124.0|M4 Max|fast": {
- "n": 36,
+ "n": 38,
"p25_sec": 900.0,
"p50_sec": 900.0,
- "p75_sec": 1200.0
+ "p75_sec": 1125.0
},
"h3|t2v|high_5s|124.0|M5 Max|best": {
- "n": 40,
+ "n": 41,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -10540,6 +10732,12 @@
"p50_sec": 1800.0,
"p75_sec": 1800.0
},
+ "h3|t2v|native_3s|73.0|M4 Max|best": {
+ "n": 3,
+ "p25_sec": 1200.0,
+ "p50_sec": 1200.0,
+ "p75_sec": 1200.0
+ },
"h3|t2v|native_3s|73.0|M4 Max|fast": {
"n": 5,
"p25_sec": 600.0,
@@ -10595,8 +10793,8 @@
"p75_sec": 3600.0
},
"h3|t2v|standard_10s_dense|243.0|M5 Max|best": {
- "n": 7,
- "p25_sec": 750.0,
+ "n": 8,
+ "p25_sec": 825.0,
"p50_sec": 1200.0,
"p75_sec": 1200.0
},
@@ -10697,13 +10895,13 @@
"p75_sec": 1800.0
},
"h3|t2v|standard_15s|362.0|M5 Max|best": {
- "n": 8,
+ "n": 9,
"p25_sec": 600.0,
"p50_sec": 900.0,
"p75_sec": 900.0
},
"h3|t2v|standard_15s|362.0|M5 Max|fast": {
- "n": 22,
+ "n": 29,
"p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -10799,7 +10997,7 @@
"p75_sec": 1800.0
},
"h3|t2v|standard_5s|124.0|M1 Max|fast": {
- "n": 29,
+ "n": 30,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -10816,6 +11014,18 @@
"p50_sec": 420.0,
"p75_sec": 420.0
},
+ "h3|t2v|standard_5s|124.0|M2 Max|best": {
+ "n": 6,
+ "p25_sec": 900.0,
+ "p50_sec": 900.0,
+ "p75_sec": 1125.0
+ },
+ "h3|t2v|standard_5s|124.0|M2 Max|fast": {
+ "n": 5,
+ "p25_sec": 420.0,
+ "p50_sec": 420.0,
+ "p75_sec": 420.0
+ },
"h3|t2v|standard_5s|124.0|M3 Max|best": {
"n": 20,
"p25_sec": 1200.0,
@@ -10835,13 +11045,13 @@
"p75_sec": 465.0
},
"h3|t2v|standard_5s|124.0|M3 Ultra|fast": {
- "n": 21,
+ "n": 24,
"p25_sec": 120.0,
- "p50_sec": 300.0,
+ "p50_sec": 360.0,
"p75_sec": 600.0
},
"h3|t2v|standard_5s|124.0|M4 Max|best": {
- "n": 10,
+ "n": 15,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -10865,13 +11075,13 @@
"p75_sec": 600.0
},
"h3|t2v|standard_5s|124.0|M5 Max|best": {
- "n": 30,
+ "n": 33,
"p25_sec": 240.0,
"p50_sec": 240.0,
"p75_sec": 240.0
},
"h3|t2v|standard_5s|124.0|M5 Max|fast": {
- "n": 12,
+ "n": 13,
"p25_sec": 90.0,
"p50_sec": 90.0,
"p75_sec": 120.0
@@ -11003,15 +11213,15 @@
"p75_sec": 900.0
},
"ltx|a2v|balanced|217.0|M4 Pro|any": {
- "n": 9,
- "p25_sec": 600.0,
- "p50_sec": 600.0,
- "p75_sec": 600.0
+ "n": 38,
+ "p25_sec": 675.0,
+ "p50_sec": 900.0,
+ "p75_sec": 900.0
},
"ltx|a2v|balanced|241.0|M4 Pro|any": {
- "n": 6,
- "p25_sec": 600.0,
- "p50_sec": 750.0,
+ "n": 23,
+ "p25_sec": 900.0,
+ "p50_sec": 900.0,
"p75_sec": 900.0
},
"ltx|a2v|balanced|49.0|M4|any": {
@@ -11141,16 +11351,16 @@
"p75_sec": 240.0
},
"ltx|a2v|high|121.0|M4 Max|any": {
- "n": 14,
+ "n": 15,
"p25_sec": 420.0,
"p50_sec": 600.0,
"p75_sec": 900.0
},
"ltx|a2v|high|121.0|M4 Pro|any": {
- "n": 8,
+ "n": 9,
"p25_sec": 240.0,
- "p50_sec": 450.0,
- "p75_sec": 675.0
+ "p50_sec": 300.0,
+ "p75_sec": 600.0
},
"ltx|a2v|high|121.0|M5 Max|any": {
"n": 11,
@@ -11159,10 +11369,10 @@
"p75_sec": 270.0
},
"ltx|a2v|high|121.0|M5 Pro|any": {
- "n": 6,
- "p25_sec": 180.0,
- "p50_sec": 210.0,
- "p75_sec": 375.0
+ "n": 10,
+ "p25_sec": 195.0,
+ "p50_sec": 510.0,
+ "p75_sec": 600.0
},
"ltx|a2v|high|129.0|M5 Max|any": {
"n": 3,
@@ -11183,10 +11393,10 @@
"p75_sec": 300.0
},
"ltx|a2v|high|145.0|M5 Pro|any": {
- "n": 3,
+ "n": 6,
"p25_sec": 90.0,
- "p50_sec": 90.0,
- "p75_sec": 90.0
+ "p50_sec": 345.0,
+ "p75_sec": 600.0
},
"ltx|a2v|high|153.0|M5 Pro|any": {
"n": 4,
@@ -11237,10 +11447,10 @@
"p75_sec": 255.0
},
"ltx|a2v|high|169.0|M5 Pro|any": {
- "n": 9,
+ "n": 13,
"p25_sec": 240.0,
"p50_sec": 300.0,
- "p75_sec": 300.0
+ "p75_sec": 900.0
},
"ltx|a2v|high|185.0|M5 Max|any": {
"n": 4,
@@ -11273,22 +11483,22 @@
"p75_sec": 600.0
},
"ltx|a2v|high|241.0|M4 Max|any": {
- "n": 12,
+ "n": 13,
"p25_sec": 300.0,
- "p50_sec": 810.0,
+ "p50_sec": 420.0,
"p75_sec": 1200.0
},
"ltx|a2v|high|241.0|M4 Pro|any": {
- "n": 17,
- "p25_sec": 1800.0,
+ "n": 19,
+ "p25_sec": 1200.0,
"p50_sec": 1800.0,
"p75_sec": 1800.0
},
"ltx|a2v|high|241.0|M5 Max|any": {
- "n": 3,
- "p25_sec": 120.0,
- "p50_sec": 180.0,
- "p75_sec": 300.0
+ "n": 5,
+ "p25_sec": 180.0,
+ "p50_sec": 420.0,
+ "p75_sec": 600.0
},
"ltx|a2v|high|241.0|M5 Pro|any": {
"n": 5,
@@ -11392,6 +11602,18 @@
"p50_sec": 600.0,
"p75_sec": 900.0
},
+ "ltx|a2v|high|73.0|M4 Pro|any": {
+ "n": 3,
+ "p25_sec": 150.0,
+ "p50_sec": 180.0,
+ "p75_sec": 540.0
+ },
+ "ltx|a2v|high|73.0|M5 Max|any": {
+ "n": 3,
+ "p25_sec": 120.0,
+ "p50_sec": 180.0,
+ "p75_sec": 210.0
+ },
"ltx|a2v|high|89.0|M1 Max|any": {
"n": 3,
"p25_sec": 2100.0,
@@ -11537,9 +11759,9 @@
"p75_sec": 4050.0
},
"ltx|extend|balanced|121.0|M5 Max|any": {
- "n": 7,
- "p25_sec": 450.0,
- "p50_sec": 1200.0,
+ "n": 9,
+ "p25_sec": 420.0,
+ "p50_sec": 600.0,
"p75_sec": 1200.0
},
"ltx|extend|balanced|121.0|M5 Pro|any": {
@@ -11609,7 +11831,7 @@
"p75_sec": 60.0
},
"ltx|i2v|balanced|121.0|M1 Max|any": {
- "n": 326,
+ "n": 335,
"p25_sec": 240.0,
"p50_sec": 240.0,
"p75_sec": 300.0
@@ -11633,7 +11855,7 @@
"p75_sec": 1200.0
},
"ltx|i2v|balanced|121.0|M2 Max|any": {
- "n": 289,
+ "n": 301,
"p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 240.0
@@ -11645,21 +11867,21 @@
"p75_sec": 300.0
},
"ltx|i2v|balanced|121.0|M2 Ultra|any": {
- "n": 45,
+ "n": 47,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 120.0
},
"ltx|i2v|balanced|121.0|M2|any": {
- "n": 12,
+ "n": 13,
"p25_sec": 900.0,
"p50_sec": 900.0,
"p75_sec": 900.0
},
"ltx|i2v|balanced|121.0|M3 Max|any": {
- "n": 206,
+ "n": 431,
"p25_sec": 180.0,
- "p50_sec": 240.0,
+ "p50_sec": 180.0,
"p75_sec": 300.0
},
"ltx|i2v|balanced|121.0|M3 Pro|any": {
@@ -11681,19 +11903,19 @@
"p75_sec": 600.0
},
"ltx|i2v|balanced|121.0|M4 Max|any": {
- "n": 343,
+ "n": 398,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 120.0
},
"ltx|i2v|balanced|121.0|M4 Pro|any": {
- "n": 306,
+ "n": 310,
"p25_sec": 180.0,
"p50_sec": 300.0,
"p75_sec": 300.0
},
"ltx|i2v|balanced|121.0|M4|any": {
- "n": 146,
+ "n": 168,
"p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 600.0
@@ -11705,16 +11927,16 @@
"p75_sec": 90.0
},
"ltx|i2v|balanced|121.0|M5 Pro|any": {
- "n": 412,
+ "n": 416,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 120.0
},
"ltx|i2v|balanced|121.0|M5|any": {
- "n": 81,
+ "n": 84,
"p25_sec": 120.0,
- "p50_sec": 120.0,
- "p75_sec": 240.0
+ "p50_sec": 150.0,
+ "p75_sec": 300.0
},
"ltx|i2v|balanced|137.0|M5 Pro|any": {
"n": 3,
@@ -11729,13 +11951,13 @@
"p75_sec": 420.0
},
"ltx|i2v|balanced|145.0|M3 Max|any": {
- "n": 59,
+ "n": 131,
"p25_sec": 240.0,
- "p50_sec": 300.0,
+ "p50_sec": 240.0,
"p75_sec": 300.0
},
"ltx|i2v|balanced|145.0|M4 Pro|any": {
- "n": 92,
+ "n": 95,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 420.0
@@ -11747,7 +11969,7 @@
"p75_sec": 180.0
},
"ltx|i2v|balanced|169.0|M1 Max|any": {
- "n": 29,
+ "n": 30,
"p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -11759,10 +11981,10 @@
"p75_sec": 600.0
},
"ltx|i2v|balanced|169.0|M2 Max|any": {
- "n": 12,
+ "n": 13,
"p25_sec": 300.0,
"p50_sec": 300.0,
- "p75_sec": 330.0
+ "p75_sec": 300.0
},
"ltx|i2v|balanced|169.0|M2 Pro|any": {
"n": 4,
@@ -11783,7 +12005,7 @@
"p75_sec": 1200.0
},
"ltx|i2v|balanced|169.0|M3 Max|any": {
- "n": 47,
+ "n": 79,
"p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -11801,7 +12023,7 @@
"p75_sec": 120.0
},
"ltx|i2v|balanced|169.0|M4 Pro|any": {
- "n": 56,
+ "n": 57,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -11849,8 +12071,8 @@
"p75_sec": 300.0
},
"ltx|i2v|balanced|193.0|M3 Max|any": {
- "n": 40,
- "p25_sec": 420.0,
+ "n": 103,
+ "p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 420.0
},
@@ -11861,7 +12083,7 @@
"p75_sec": 120.0
},
"ltx|i2v|balanced|193.0|M4 Pro|any": {
- "n": 117,
+ "n": 123,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -11872,6 +12094,12 @@
"p50_sec": 120.0,
"p75_sec": 120.0
},
+ "ltx|i2v|balanced|217.0|M4 Pro|any": {
+ "n": 4,
+ "p25_sec": 600.0,
+ "p50_sec": 600.0,
+ "p75_sec": 600.0
+ },
"ltx|i2v|balanced|225.0|M5 Pro|any": {
"n": 3,
"p25_sec": 420.0,
@@ -11879,7 +12107,7 @@
"p75_sec": 420.0
},
"ltx|i2v|balanced|241.0|M1 Max|any": {
- "n": 119,
+ "n": 120,
"p25_sec": 300.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -11903,7 +12131,7 @@
"p75_sec": 1200.0
},
"ltx|i2v|balanced|241.0|M2 Max|any": {
- "n": 89,
+ "n": 97,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 600.0
@@ -11921,7 +12149,7 @@
"p75_sec": 300.0
},
"ltx|i2v|balanced|241.0|M2|any": {
- "n": 4,
+ "n": 9,
"p25_sec": 1800.0,
"p50_sec": 1800.0,
"p75_sec": 1800.0
@@ -11957,16 +12185,16 @@
"p75_sec": 420.0
},
"ltx|i2v|balanced|241.0|M4 Pro|any": {
- "n": 493,
+ "n": 530,
"p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 600.0
},
"ltx|i2v|balanced|241.0|M4|any": {
- "n": 133,
+ "n": 136,
"p25_sec": 600.0,
"p50_sec": 600.0,
- "p75_sec": 900.0
+ "p75_sec": 1200.0
},
"ltx|i2v|balanced|241.0|M5 Max|any": {
"n": 625,
@@ -11975,7 +12203,7 @@
"p75_sec": 240.0
},
"ltx|i2v|balanced|241.0|M5 Pro|any": {
- "n": 505,
+ "n": 509,
"p25_sec": 240.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -11999,11 +12227,17 @@
"p75_sec": 420.0
},
"ltx|i2v|balanced|289.0|M4 Pro|any": {
- "n": 3,
+ "n": 19,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
},
+ "ltx|i2v|balanced|337.0|M4 Pro|any": {
+ "n": 3,
+ "p25_sec": 420.0,
+ "p50_sec": 420.0,
+ "p75_sec": 510.0
+ },
"ltx|i2v|balanced|361.0|M1 Max|any": {
"n": 6,
"p25_sec": 1275.0,
@@ -12029,7 +12263,7 @@
"p75_sec": 420.0
},
"ltx|i2v|balanced|361.0|M4 Pro|any": {
- "n": 12,
+ "n": 14,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -12118,6 +12352,12 @@
"p50_sec": 180.0,
"p75_sec": 180.0
},
+ "ltx|i2v|balanced|65.0|M4 Pro|any": {
+ "n": 3,
+ "p25_sec": 180.0,
+ "p50_sec": 180.0,
+ "p75_sec": 180.0
+ },
"ltx|i2v|balanced|721.0|M2 Max|any": {
"n": 10,
"p25_sec": 1800.0,
@@ -12173,13 +12413,13 @@
"p75_sec": 750.0
},
"ltx|i2v|balanced|73.0|M4 Max|any": {
- "n": 112,
+ "n": 178,
"p25_sec": 90.0,
"p50_sec": 90.0,
"p75_sec": 90.0
},
"ltx|i2v|balanced|73.0|M4 Pro|any": {
- "n": 35,
+ "n": 38,
"p25_sec": 180.0,
"p50_sec": 180.0,
"p75_sec": 180.0
@@ -12287,7 +12527,7 @@
"p75_sec": 600.0
},
"ltx|i2v|high|121.0|M2 Max|any": {
- "n": 12,
+ "n": 13,
"p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -12407,10 +12647,10 @@
"p75_sec": 1200.0
},
"ltx|i2v|high|241.0|M4 Max|any": {
- "n": 54,
+ "n": 71,
"p25_sec": 600.0,
"p50_sec": 600.0,
- "p75_sec": 900.0
+ "p75_sec": 750.0
},
"ltx|i2v|high|241.0|M4 Pro|any": {
"n": 12,
@@ -12419,9 +12659,9 @@
"p75_sec": 1200.0
},
"ltx|i2v|high|241.0|M5 Max|any": {
- "n": 31,
+ "n": 36,
"p25_sec": 300.0,
- "p50_sec": 420.0,
+ "p50_sec": 300.0,
"p75_sec": 420.0
},
"ltx|i2v|high|241.0|M5 Pro|any": {
@@ -12491,8 +12731,8 @@
"p75_sec": 240.0
},
"ltx|i2v|high|73.0|M4 Pro|any": {
- "n": 3,
- "p25_sec": 360.0,
+ "n": 5,
+ "p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
},
@@ -12508,6 +12748,12 @@
"p50_sec": 120.0,
"p75_sec": 180.0
},
+ "ltx|i2v|high|97.0|M4 Pro|any": {
+ "n": 3,
+ "p25_sec": 510.0,
+ "p50_sec": 600.0,
+ "p75_sec": 600.0
+ },
"ltx|i2v|high|97.0|M5 Max|any": {
"n": 5,
"p25_sec": 90.0,
@@ -12527,9 +12773,9 @@
"p75_sec": 240.0
},
"ltx|i2v|quick|121.0|M1 Max|any": {
- "n": 41,
+ "n": 45,
"p25_sec": 180.0,
- "p50_sec": 240.0,
+ "p50_sec": 180.0,
"p75_sec": 240.0
},
"ltx|i2v|quick|121.0|M1 Pro|any": {
@@ -12581,7 +12827,7 @@
"p75_sec": 90.0
},
"ltx|i2v|quick|121.0|M4 Pro|any": {
- "n": 57,
+ "n": 58,
"p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 180.0
@@ -12605,9 +12851,9 @@
"p75_sec": 120.0
},
"ltx|i2v|quick|121.0|M5|any": {
- "n": 26,
+ "n": 28,
"p25_sec": 240.0,
- "p50_sec": 360.0,
+ "p50_sec": 300.0,
"p75_sec": 600.0
},
"ltx|i2v|quick|129.0|M2 Ultra|any": {
@@ -12647,10 +12893,10 @@
"p75_sec": 240.0
},
"ltx|i2v|quick|169.0|M4|any": {
- "n": 3,
- "p25_sec": 750.0,
- "p50_sec": 900.0,
- "p75_sec": 1050.0
+ "n": 4,
+ "p25_sec": 525.0,
+ "p50_sec": 750.0,
+ "p75_sec": 975.0
},
"ltx|i2v|quick|169.0|M5 Max|any": {
"n": 13,
@@ -12671,7 +12917,7 @@
"p75_sec": 240.0
},
"ltx|i2v|quick|241.0|M1 Max|any": {
- "n": 17,
+ "n": 20,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -12767,9 +13013,9 @@
"p75_sec": 60.0
},
"ltx|i2v|quick|481.0|M1 Max|any": {
- "n": 10,
+ "n": 13,
"p25_sec": 420.0,
- "p50_sec": 510.0,
+ "p50_sec": 420.0,
"p75_sec": 600.0
},
"ltx|i2v|quick|481.0|M1|any": {
@@ -12809,10 +13055,10 @@
"p75_sec": 420.0
},
"ltx|i2v|quick|481.0|M4|any": {
- "n": 8,
+ "n": 11,
"p25_sec": 600.0,
- "p50_sec": 750.0,
- "p75_sec": 1200.0
+ "p50_sec": 900.0,
+ "p75_sec": 1050.0
},
"ltx|i2v|quick|481.0|M5 Max|any": {
"n": 7,
@@ -12827,7 +13073,7 @@
"p75_sec": 120.0
},
"ltx|i2v|quick|481.0|M5|any": {
- "n": 25,
+ "n": 26,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 420.0
@@ -12905,13 +13151,13 @@
"p75_sec": 90.0
},
"ltx|i2v|quick|73.0|M4 Pro|any": {
- "n": 10,
+ "n": 14,
"p25_sec": 90.0,
- "p50_sec": 90.0,
- "p75_sec": 120.0
+ "p50_sec": 120.0,
+ "p75_sec": 180.0
},
"ltx|i2v|quick|73.0|M4|any": {
- "n": 68,
+ "n": 69,
"p25_sec": 240.0,
"p50_sec": 300.0,
"p75_sec": 600.0
@@ -12934,6 +13180,12 @@
"p50_sec": 420.0,
"p75_sec": 600.0
},
+ "ltx|i2v|quick|97.0|M4 Pro|any": {
+ "n": 3,
+ "p25_sec": 120.0,
+ "p50_sec": 120.0,
+ "p75_sec": 180.0
+ },
"ltx|i2v|quick|97.0|M4|any": {
"n": 11,
"p25_sec": 300.0,
@@ -12947,7 +13199,7 @@
"p75_sec": 15.0
},
"ltx|i2v|standard|121.0|M1 Max|any": {
- "n": 213,
+ "n": 222,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -12971,7 +13223,7 @@
"p75_sec": 2025.0
},
"ltx|i2v|standard|121.0|M2 Max|any": {
- "n": 161,
+ "n": 171,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -13001,7 +13253,7 @@
"p75_sec": 1500.0
},
"ltx|i2v|standard|121.0|M3 Ultra|any": {
- "n": 56,
+ "n": 62,
"p25_sec": 180.0,
"p50_sec": 420.0,
"p75_sec": 600.0
@@ -13013,13 +13265,13 @@
"p75_sec": 420.0
},
"ltx|i2v|standard|121.0|M4 Max|any": {
- "n": 139,
- "p25_sec": 180.0,
+ "n": 140,
+ "p25_sec": 165.0,
"p50_sec": 180.0,
"p75_sec": 240.0
},
"ltx|i2v|standard|121.0|M4 Pro|any": {
- "n": 195,
+ "n": 196,
"p25_sec": 180.0,
"p50_sec": 240.0,
"p75_sec": 300.0
@@ -13031,7 +13283,7 @@
"p75_sec": 420.0
},
"ltx|i2v|standard|121.0|M5 Max|any": {
- "n": 108,
+ "n": 112,
"p25_sec": 90.0,
"p50_sec": 120.0,
"p75_sec": 180.0
@@ -13079,7 +13331,7 @@
"p75_sec": 210.0
},
"ltx|i2v|standard|169.0|M1 Max|any": {
- "n": 119,
+ "n": 129,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 600.0
@@ -13097,7 +13349,7 @@
"p75_sec": 420.0
},
"ltx|i2v|standard|169.0|M2 Max|any": {
- "n": 47,
+ "n": 60,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -13127,7 +13379,7 @@
"p75_sec": 240.0
},
"ltx|i2v|standard|169.0|M4 Pro|any": {
- "n": 110,
+ "n": 114,
"p25_sec": 240.0,
"p50_sec": 300.0,
"p75_sec": 420.0
@@ -13211,7 +13463,7 @@
"p75_sec": 2400.0
},
"ltx|i2v|standard|241.0|M2 Max|any": {
- "n": 220,
+ "n": 224,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 900.0
@@ -13247,10 +13499,10 @@
"p75_sec": 600.0
},
"ltx|i2v|standard|241.0|M3 Ultra|any": {
- "n": 9,
+ "n": 10,
"p25_sec": 420.0,
"p50_sec": 420.0,
- "p75_sec": 420.0
+ "p75_sec": 555.0
},
"ltx|i2v|standard|241.0|M3|any": {
"n": 3,
@@ -13265,7 +13517,7 @@
"p75_sec": 420.0
},
"ltx|i2v|standard|241.0|M4 Pro|any": {
- "n": 86,
+ "n": 101,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 600.0
@@ -13277,7 +13529,7 @@
"p75_sec": 600.0
},
"ltx|i2v|standard|241.0|M5 Max|any": {
- "n": 82,
+ "n": 92,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -13582,6 +13834,12 @@
"p50_sec": 1200.0,
"p75_sec": 1200.0
},
+ "ltx|keyframe|balanced|241.0|M2 Ultra|any": {
+ "n": 3,
+ "p25_sec": 510.0,
+ "p50_sec": 600.0,
+ "p75_sec": 600.0
+ },
"ltx|keyframe|balanced|241.0|M3 Ultra|any": {
"n": 3,
"p25_sec": 600.0,
@@ -13756,12 +14014,24 @@
"p50_sec": 180.0,
"p75_sec": 180.0
},
+ "ltx|keyframe|high|73.0|M4 Pro|any": {
+ "n": 3,
+ "p25_sec": 420.0,
+ "p50_sec": 420.0,
+ "p75_sec": 420.0
+ },
"ltx|keyframe|high|97.0|M3 Ultra|any": {
"n": 12,
"p25_sec": 180.0,
"p50_sec": 240.0,
"p75_sec": 300.0
},
+ "ltx|keyframe|high|97.0|M4 Pro|any": {
+ "n": 6,
+ "p25_sec": 420.0,
+ "p50_sec": 420.0,
+ "p75_sec": 420.0
+ },
"ltx|keyframe|quick|121.0|M4 Max|any": {
"n": 8,
"p25_sec": 240.0,
@@ -13865,7 +14135,7 @@
"p75_sec": 90.0
},
"ltx|t2v|balanced|121.0|M1 Max|any": {
- "n": 250,
+ "n": 267,
"p25_sec": 180.0,
"p50_sec": 240.0,
"p75_sec": 300.0
@@ -13889,7 +14159,7 @@
"p75_sec": 900.0
},
"ltx|t2v|balanced|121.0|M2 Max|any": {
- "n": 134,
+ "n": 138,
"p25_sec": 180.0,
"p50_sec": 180.0,
"p75_sec": 180.0
@@ -13901,15 +14171,15 @@
"p75_sec": 240.0
},
"ltx|t2v|balanced|121.0|M2 Ultra|any": {
- "n": 29,
+ "n": 31,
"p25_sec": 60.0,
"p50_sec": 60.0,
"p75_sec": 120.0
},
"ltx|t2v|balanced|121.0|M2|any": {
- "n": 9,
- "p25_sec": 600.0,
- "p50_sec": 900.0,
+ "n": 11,
+ "p25_sec": 420.0,
+ "p50_sec": 600.0,
"p75_sec": 900.0
},
"ltx|t2v|balanced|121.0|M3 Max|any": {
@@ -13925,7 +14195,7 @@
"p75_sec": 600.0
},
"ltx|t2v|balanced|121.0|M3 Ultra|any": {
- "n": 97,
+ "n": 102,
"p25_sec": 90.0,
"p50_sec": 90.0,
"p75_sec": 90.0
@@ -13937,25 +14207,25 @@
"p75_sec": 1200.0
},
"ltx|t2v|balanced|121.0|M4 Max|any": {
- "n": 768,
+ "n": 770,
"p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 180.0
},
"ltx|t2v|balanced|121.0|M4 Pro|any": {
- "n": 343,
+ "n": 361,
"p25_sec": 180.0,
"p50_sec": 240.0,
"p75_sec": 300.0
},
"ltx|t2v|balanced|121.0|M4|any": {
- "n": 64,
+ "n": 66,
"p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 600.0
},
"ltx|t2v|balanced|121.0|M5 Max|any": {
- "n": 163,
+ "n": 167,
"p25_sec": 60.0,
"p50_sec": 60.0,
"p75_sec": 90.0
@@ -13967,16 +14237,16 @@
"p75_sec": 120.0
},
"ltx|t2v|balanced|121.0|M5|any": {
- "n": 63,
+ "n": 64,
"p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 300.0
},
"ltx|t2v|balanced|121.0|M6|any": {
- "n": 4,
- "p25_sec": 112.5,
+ "n": 5,
+ "p25_sec": 120.0,
"p50_sec": 120.0,
- "p75_sec": 240.0
+ "p75_sec": 120.0
},
"ltx|t2v|balanced|145.0|M1 Max|any": {
"n": 6,
@@ -14009,7 +14279,7 @@
"p75_sec": 90.0
},
"ltx|t2v|balanced|169.0|M1 Max|any": {
- "n": 27,
+ "n": 29,
"p25_sec": 240.0,
"p50_sec": 300.0,
"p75_sec": 420.0
@@ -14093,7 +14363,7 @@
"p75_sec": 420.0
},
"ltx|t2v|balanced|241.0|M1 Max|any": {
- "n": 44,
+ "n": 47,
"p25_sec": 240.0,
"p50_sec": 420.0,
"p75_sec": 600.0
@@ -14117,7 +14387,7 @@
"p75_sec": 4650.0
},
"ltx|t2v|balanced|241.0|M2 Max|any": {
- "n": 77,
+ "n": 87,
"p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 420.0
@@ -14147,7 +14417,7 @@
"p75_sec": 420.0
},
"ltx|t2v|balanced|241.0|M3 Ultra|any": {
- "n": 45,
+ "n": 46,
"p25_sec": 420.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -14159,31 +14429,31 @@
"p75_sec": 900.0
},
"ltx|t2v|balanced|241.0|M4 Max|any": {
- "n": 261,
+ "n": 262,
"p25_sec": 180.0,
"p50_sec": 180.0,
"p75_sec": 180.0
},
"ltx|t2v|balanced|241.0|M4 Pro|any": {
- "n": 176,
- "p25_sec": 555.0,
+ "n": 178,
+ "p25_sec": 465.0,
"p50_sec": 600.0,
"p75_sec": 600.0
},
"ltx|t2v|balanced|241.0|M4|any": {
- "n": 19,
+ "n": 21,
"p25_sec": 600.0,
"p50_sec": 900.0,
"p75_sec": 1200.0
},
"ltx|t2v|balanced|241.0|M5 Max|any": {
- "n": 49,
+ "n": 54,
"p25_sec": 120.0,
"p50_sec": 180.0,
- "p75_sec": 180.0
+ "p75_sec": 240.0
},
"ltx|t2v|balanced|241.0|M5 Pro|any": {
- "n": 29,
+ "n": 30,
"p25_sec": 240.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -14195,10 +14465,10 @@
"p75_sec": 600.0
},
"ltx|t2v|balanced|241.0|M6|any": {
- "n": 3,
+ "n": 4,
"p25_sec": 240.0,
"p50_sec": 240.0,
- "p75_sec": 570.0
+ "p75_sec": 405.0
},
"ltx|t2v|balanced|25.0|M1 Max|any": {
"n": 14,
@@ -14254,6 +14524,12 @@
"p50_sec": 900.0,
"p75_sec": 900.0
},
+ "ltx|t2v|balanced|49.0|M1 Max|any": {
+ "n": 3,
+ "p25_sec": 105.0,
+ "p50_sec": 120.0,
+ "p75_sec": 120.0
+ },
"ltx|t2v|balanced|49.0|M3 Ultra|any": {
"n": 25,
"p25_sec": 45.0,
@@ -14285,7 +14561,7 @@
"p75_sec": 30.0
},
"ltx|t2v|balanced|73.0|M1 Max|any": {
- "n": 68,
+ "n": 74,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 120.0
@@ -14297,7 +14573,7 @@
"p75_sec": 135.0
},
"ltx|t2v|balanced|73.0|M2 Max|any": {
- "n": 45,
+ "n": 46,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 120.0
@@ -14315,13 +14591,13 @@
"p75_sec": 60.0
},
"ltx|t2v|balanced|73.0|M4 Max|any": {
- "n": 165,
+ "n": 166,
"p25_sec": 90.0,
"p50_sec": 90.0,
"p75_sec": 90.0
},
"ltx|t2v|balanced|73.0|M4 Pro|any": {
- "n": 47,
+ "n": 48,
"p25_sec": 90.0,
"p50_sec": 180.0,
"p75_sec": 180.0
@@ -14333,7 +14609,7 @@
"p75_sec": 240.0
},
"ltx|t2v|balanced|73.0|M5 Max|any": {
- "n": 25,
+ "n": 29,
"p25_sec": 45.0,
"p50_sec": 45.0,
"p75_sec": 45.0
@@ -14357,10 +14633,10 @@
"p75_sec": 45.0
},
"ltx|t2v|balanced|97.0|M1 Max|any": {
- "n": 3,
+ "n": 6,
"p25_sec": 120.0,
"p50_sec": 120.0,
- "p75_sec": 120.0
+ "p75_sec": 165.0
},
"ltx|t2v|balanced|97.0|M3 Max|any": {
"n": 3,
@@ -14465,26 +14741,26 @@
"p75_sec": 195.0
},
"ltx|t2v|high|121.0|M3 Ultra|any": {
- "n": 8,
- "p25_sec": 120.0,
- "p50_sec": 180.0,
- "p75_sec": 330.0
+ "n": 14,
+ "p25_sec": 180.0,
+ "p50_sec": 240.0,
+ "p75_sec": 600.0
},
"ltx|t2v|high|121.0|M4 Max|any": {
- "n": 71,
+ "n": 85,
"p25_sec": 420.0,
"p50_sec": 600.0,
"p75_sec": 900.0
},
"ltx|t2v|high|121.0|M4 Pro|any": {
- "n": 10,
+ "n": 18,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
},
"ltx|t2v|high|121.0|M5 Max|any": {
- "n": 18,
- "p25_sec": 97.5,
+ "n": 19,
+ "p25_sec": 90.0,
"p50_sec": 120.0,
"p75_sec": 180.0
},
@@ -14531,9 +14807,9 @@
"p75_sec": 300.0
},
"ltx|t2v|high|169.0|M4 Pro|any": {
- "n": 8,
+ "n": 11,
"p25_sec": 600.0,
- "p50_sec": 750.0,
+ "p50_sec": 900.0,
"p75_sec": 900.0
},
"ltx|t2v|high|169.0|M5 Max|any": {
@@ -14543,7 +14819,7 @@
"p75_sec": 240.0
},
"ltx|t2v|high|241.0|M1 Max|any": {
- "n": 42,
+ "n": 43,
"p25_sec": 900.0,
"p50_sec": 900.0,
"p75_sec": 900.0
@@ -14573,9 +14849,9 @@
"p75_sec": 300.0
},
"ltx|t2v|high|241.0|M4 Max|any": {
- "n": 38,
+ "n": 49,
"p25_sec": 600.0,
- "p50_sec": 600.0,
+ "p50_sec": 900.0,
"p75_sec": 1200.0
},
"ltx|t2v|high|241.0|M4 Pro|any": {
@@ -14585,11 +14861,17 @@
"p75_sec": 1200.0
},
"ltx|t2v|high|241.0|M5 Max|any": {
- "n": 17,
- "p25_sec": 300.0,
+ "n": 18,
+ "p25_sec": 255.0,
"p50_sec": 300.0,
"p75_sec": 300.0
},
+ "ltx|t2v|high|241.0|M5 Pro|any": {
+ "n": 5,
+ "p25_sec": 420.0,
+ "p50_sec": 420.0,
+ "p75_sec": 420.0
+ },
"ltx|t2v|high|289.0|M2 Max|any": {
"n": 5,
"p25_sec": 900.0,
@@ -14621,7 +14903,7 @@
"p75_sec": 180.0
},
"ltx|t2v|high|65.0|M5 Max|any": {
- "n": 17,
+ "n": 18,
"p25_sec": 90.0,
"p50_sec": 120.0,
"p75_sec": 120.0
@@ -14668,6 +14950,12 @@
"p50_sec": 420.0,
"p75_sec": 420.0
},
+ "ltx|t2v|high|97.0|M3 Ultra|any": {
+ "n": 3,
+ "p25_sec": 180.0,
+ "p50_sec": 180.0,
+ "p75_sec": 690.0
+ },
"ltx|t2v|high|97.0|M5 Pro|any": {
"n": 6,
"p25_sec": 135.0,
@@ -14675,9 +14963,9 @@
"p75_sec": 180.0
},
"ltx|t2v|quick|121.0|M1 Max|any": {
- "n": 61,
+ "n": 73,
"p25_sec": 120.0,
- "p50_sec": 180.0,
+ "p50_sec": 120.0,
"p75_sec": 240.0
},
"ltx|t2v|quick|121.0|M1 Pro|any": {
@@ -14693,7 +14981,7 @@
"p75_sec": 90.0
},
"ltx|t2v|quick|121.0|M2 Max|any": {
- "n": 54,
+ "n": 58,
"p25_sec": 90.0,
"p50_sec": 90.0,
"p75_sec": 90.0
@@ -14741,13 +15029,13 @@
"p75_sec": 180.0
},
"ltx|t2v|quick|121.0|M4|any": {
- "n": 17,
+ "n": 21,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 420.0
},
"ltx|t2v|quick|121.0|M5 Max|any": {
- "n": 151,
+ "n": 165,
"p25_sec": 45.0,
"p50_sec": 60.0,
"p75_sec": 120.0
@@ -14759,13 +15047,13 @@
"p75_sec": 60.0
},
"ltx|t2v|quick|121.0|M5|any": {
- "n": 51,
- "p25_sec": 150.0,
+ "n": 54,
+ "p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 300.0
},
"ltx|t2v|quick|145.0|M4 Pro|any": {
- "n": 5,
+ "n": 8,
"p25_sec": 180.0,
"p50_sec": 180.0,
"p75_sec": 180.0
@@ -14831,7 +15119,7 @@
"p75_sec": 180.0
},
"ltx|t2v|quick|241.0|M1 Max|any": {
- "n": 32,
+ "n": 36,
"p25_sec": 240.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -14879,7 +15167,7 @@
"p75_sec": 300.0
},
"ltx|t2v|quick|241.0|M4|any": {
- "n": 46,
+ "n": 48,
"p25_sec": 420.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -14920,11 +15208,17 @@
"p50_sec": 30.0,
"p75_sec": 37.5
},
+ "ltx|t2v|quick|385.0|M5 Max|any": {
+ "n": 3,
+ "p25_sec": 150.0,
+ "p50_sec": 180.0,
+ "p75_sec": 210.0
+ },
"ltx|t2v|quick|481.0|M1 Max|any": {
- "n": 4,
- "p25_sec": 525.0,
- "p50_sec": 600.0,
- "p75_sec": 750.0
+ "n": 13,
+ "p25_sec": 300.0,
+ "p50_sec": 300.0,
+ "p75_sec": 600.0
},
"ltx|t2v|quick|481.0|M1 Pro|any": {
"n": 3,
@@ -15035,7 +15329,7 @@
"p75_sec": 30.0
},
"ltx|t2v|quick|73.0|M1 Max|any": {
- "n": 22,
+ "n": 30,
"p25_sec": 90.0,
"p50_sec": 120.0,
"p75_sec": 120.0
@@ -15095,7 +15389,7 @@
"p75_sec": 600.0
},
"ltx|t2v|quick|73.0|M5 Max|any": {
- "n": 18,
+ "n": 19,
"p25_sec": 30.0,
"p50_sec": 30.0,
"p75_sec": 45.0
@@ -15125,10 +15419,10 @@
"p75_sec": 90.0
},
"ltx|t2v|quick|97.0|M3 Ultra|any": {
- "n": 5,
- "p25_sec": 60.0,
+ "n": 6,
+ "p25_sec": 75.0,
"p50_sec": 120.0,
- "p75_sec": 120.0
+ "p75_sec": 165.0
},
"ltx|t2v|quick|97.0|M4 Max|any": {
"n": 6,
@@ -15148,6 +15442,12 @@
"p50_sec": 240.0,
"p75_sec": 240.0
},
+ "ltx|t2v|quick|97.0|M5 Max|any": {
+ "n": 3,
+ "p25_sec": 37.5,
+ "p50_sec": 45.0,
+ "p75_sec": 45.0
+ },
"ltx|t2v|quick|97.0|M5 Pro|any": {
"n": 9,
"p25_sec": 45.0,
@@ -15203,7 +15503,7 @@
"p75_sec": 300.0
},
"ltx|t2v|standard|121.0|M3 Ultra|any": {
- "n": 51,
+ "n": 64,
"p25_sec": 120.0,
"p50_sec": 120.0,
"p75_sec": 420.0
@@ -15227,13 +15527,13 @@
"p75_sec": 300.0
},
"ltx|t2v|standard|121.0|M4|any": {
- "n": 9,
+ "n": 10,
"p25_sec": 300.0,
"p50_sec": 300.0,
- "p75_sec": 420.0
+ "p75_sec": 390.0
},
"ltx|t2v|standard|121.0|M5 Max|any": {
- "n": 83,
+ "n": 85,
"p25_sec": 60.0,
"p50_sec": 120.0,
"p75_sec": 120.0
@@ -15245,10 +15545,10 @@
"p75_sec": 180.0
},
"ltx|t2v|standard|121.0|M5|any": {
- "n": 180,
+ "n": 182,
"p25_sec": 120.0,
"p50_sec": 180.0,
- "p75_sec": 420.0
+ "p75_sec": 390.0
},
"ltx|t2v|standard|145.0|M4 Max|any": {
"n": 3,
@@ -15329,7 +15629,7 @@
"p75_sec": 1800.0
},
"ltx|t2v|standard|241.0|M2 Max|any": {
- "n": 39,
+ "n": 40,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -15365,16 +15665,16 @@
"p75_sec": 600.0
},
"ltx|t2v|standard|241.0|M4|any": {
- "n": 27,
+ "n": 28,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 900.0
},
"ltx|t2v|standard|241.0|M5 Max|any": {
- "n": 26,
- "p25_sec": 67.5,
- "p50_sec": 240.0,
- "p75_sec": 390.0
+ "n": 32,
+ "p25_sec": 90.0,
+ "p50_sec": 300.0,
+ "p75_sec": 465.0
},
"ltx|t2v|standard|241.0|M5 Pro|any": {
"n": 29,
@@ -15383,7 +15683,7 @@
"p75_sec": 240.0
},
"ltx|t2v|standard|241.0|M5|any": {
- "n": 58,
+ "n": 59,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 420.0
@@ -15430,6 +15730,18 @@
"p50_sec": 45.0,
"p75_sec": 45.0
},
+ "ltx|t2v|standard|49.0|M5 Max|any": {
+ "n": 3,
+ "p25_sec": 15.0,
+ "p50_sec": 15.0,
+ "p75_sec": 22.5
+ },
+ "ltx|t2v|standard|57.0|M3 Ultra|any": {
+ "n": 34,
+ "p25_sec": 60.0,
+ "p50_sec": 150.0,
+ "p75_sec": 300.0
+ },
"ltx|t2v|standard|73.0|M1 Max|any": {
"n": 7,
"p25_sec": 120.0,
@@ -15545,14 +15857,14 @@
"p75_sec": 900.0
},
"h3|i2v|draft_3s|73.0|best": {
- "n": 106,
+ "n": 108,
"p25_sec": 120.0,
"p50_sec": 240.0,
"p75_sec": 420.0
},
"h3|i2v|draft_3s|73.0|fast": {
- "n": 71,
- "p25_sec": 105.0,
+ "n": 75,
+ "p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 180.0
},
@@ -15563,7 +15875,7 @@
"p75_sec": 600.0
},
"h3|i2v|draft_5s|124.0|fast": {
- "n": 118,
+ "n": 120,
"p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 300.0
@@ -15599,21 +15911,21 @@
"p75_sec": 5400.0
},
"h3|i2v|high_15s|362.0|fast": {
- "n": 607,
+ "n": 632,
"p25_sec": 1200.0,
"p50_sec": 1200.0,
"p75_sec": 1200.0
},
"h3|i2v|high_3s|73.0|best": {
- "n": 269,
+ "n": 272,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 420.0
},
"h3|i2v|high_3s|73.0|fast": {
- "n": 108,
+ "n": 163,
"p25_sec": 120.0,
- "p50_sec": 180.0,
+ "p50_sec": 120.0,
"p75_sec": 180.0
},
"h3|i2v|high_5s|124.0|best": {
@@ -15623,7 +15935,7 @@
"p75_sec": 1200.0
},
"h3|i2v|high_5s|124.0|fast": {
- "n": 507,
+ "n": 613,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 600.0
@@ -15659,9 +15971,9 @@
"p75_sec": 3600.0
},
"h3|i2v|native_3s|73.0|best": {
- "n": 9,
+ "n": 10,
"p25_sec": 1200.0,
- "p50_sec": 1500.0,
+ "p50_sec": 1800.0,
"p75_sec": 1800.0
},
"h3|i2v|native_3s|73.0|fast": {
@@ -15695,32 +16007,32 @@
"p75_sec": 1200.0
},
"h3|i2v|standard_10s|243.0|best": {
- "n": 149,
+ "n": 150,
"p25_sec": 1200.0,
"p50_sec": 1200.0,
"p75_sec": 1200.0
},
"h3|i2v|standard_10s|243.0|fast": {
- "n": 230,
+ "n": 249,
"p25_sec": 600.0,
"p50_sec": 600.0,
"p75_sec": 600.0
},
"h3|i2v|standard_15s|362.0|best": {
- "n": 83,
+ "n": 85,
"p25_sec": 900.0,
"p50_sec": 2400.0,
"p75_sec": 3600.0
},
"h3|i2v|standard_15s|362.0|fast": {
- "n": 77,
- "p25_sec": 600.0,
+ "n": 90,
+ "p25_sec": 420.0,
"p50_sec": 900.0,
- "p75_sec": 1800.0
+ "p75_sec": 1200.0
},
"h3|i2v|standard_3s|73.0|best": {
- "n": 49,
- "p25_sec": 120.0,
+ "n": 57,
+ "p25_sec": 90.0,
"p50_sec": 180.0,
"p75_sec": 420.0
},
@@ -15731,13 +16043,13 @@
"p75_sec": 300.0
},
"h3|i2v|standard_5s|124.0|best": {
- "n": 188,
- "p25_sec": 300.0,
- "p50_sec": 420.0,
+ "n": 193,
+ "p25_sec": 240.0,
+ "p50_sec": 300.0,
"p75_sec": 900.0
},
"h3|i2v|standard_5s|124.0|fast": {
- "n": 382,
+ "n": 391,
"p25_sec": 240.0,
"p50_sec": 240.0,
"p75_sec": 300.0
@@ -15779,31 +16091,31 @@
"p75_sec": 600.0
},
"h3|t2v|draft_15s|362.0|best": {
- "n": 20,
- "p25_sec": 750.0,
+ "n": 21,
+ "p25_sec": 600.0,
"p50_sec": 2400.0,
"p75_sec": 2400.0
},
"h3|t2v|draft_15s|362.0|fast": {
- "n": 54,
- "p25_sec": 420.0,
+ "n": 56,
+ "p25_sec": 390.0,
"p50_sec": 600.0,
"p75_sec": 1200.0
},
"h3|t2v|draft_3s|73.0|best": {
- "n": 745,
+ "n": 746,
"p25_sec": 60.0,
"p50_sec": 90.0,
"p75_sec": 90.0
},
"h3|t2v|draft_3s|73.0|fast": {
- "n": 185,
+ "n": 189,
"p25_sec": 60.0,
"p50_sec": 180.0,
"p75_sec": 240.0
},
"h3|t2v|draft_5s|124.0|best": {
- "n": 497,
+ "n": 498,
"p25_sec": 120.0,
"p50_sec": 300.0,
"p75_sec": 600.0
@@ -15833,10 +16145,10 @@
"p75_sec": 2400.0
},
"h3|t2v|high_10s|243.0|fast": {
- "n": 25,
+ "n": 30,
"p25_sec": 1200.0,
"p50_sec": 1200.0,
- "p75_sec": 1800.0
+ "p75_sec": 1650.0
},
"h3|t2v|high_15s|362.0|best": {
"n": 57,
@@ -15845,8 +16157,8 @@
"p75_sec": 5400.0
},
"h3|t2v|high_15s|362.0|fast": {
- "n": 25,
- "p25_sec": 1200.0,
+ "n": 27,
+ "p25_sec": 900.0,
"p50_sec": 2400.0,
"p75_sec": 2400.0
},
@@ -15863,13 +16175,13 @@
"p75_sec": 240.0
},
"h3|t2v|high_5s|124.0|best": {
- "n": 90,
+ "n": 92,
"p25_sec": 600.0,
"p50_sec": 900.0,
- "p75_sec": 1350.0
+ "p75_sec": 1650.0
},
"h3|t2v|high_5s|124.0|fast": {
- "n": 93,
+ "n": 95,
"p25_sec": 420.0,
"p50_sec": 600.0,
"p75_sec": 900.0
@@ -15905,7 +16217,7 @@
"p75_sec": 3600.0
},
"h3|t2v|native_3s|73.0|best": {
- "n": 12,
+ "n": 13,
"p25_sec": 1200.0,
"p50_sec": 1200.0,
"p75_sec": 1800.0
@@ -15929,7 +16241,7 @@
"p75_sec": 1800.0
},
"h3|t2v|standard_10s_dense|243.0|best": {
- "n": 60,
+ "n": 61,
"p25_sec": 3600.0,
"p50_sec": 3600.0,
"p75_sec": 3600.0
@@ -15953,13 +16265,13 @@
"p75_sec": 675.0
},
"h3|t2v|standard_15s|362.0|best": {
- "n": 40,
+ "n": 41,
"p25_sec": 900.0,
- "p50_sec": 1200.0,
+ "p50_sec": 1050.0,
"p75_sec": 3600.0
},
"h3|t2v|standard_15s|362.0|fast": {
- "n": 52,
+ "n": 61,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 900.0
@@ -15977,13 +16289,13 @@
"p75_sec": 240.0
},
"h3|t2v|standard_5s|124.0|best": {
- "n": 144,
+ "n": 158,
"p25_sec": 300.0,
"p50_sec": 600.0,
"p75_sec": 1200.0
},
"h3|t2v|standard_5s|124.0|fast": {
- "n": 133,
+ "n": 142,
"p25_sec": 180.0,
"p50_sec": 300.0,
"p75_sec": 600.0
@@ -16025,7 +16337,7 @@
"p75_sec": 210.0
},
"ltx|a2v|balanced|145.0|any": {
- "n": 24,
+ "n": 25,
"p25_sec": 240.0,
"p50_sec": 420.0,
"p75_sec": 600.0
@@ -16067,15 +16379,15 @@
"p75_sec": 900.0
},
"ltx|a2v|balanced|217.0|any": {
- "n": 10,
- "p25_sec": 600.0,
- "p50_sec": 600.0,
- "p75_sec": 825.0
+ "n": 39,
+ "p25_sec": 750.0,
+ "p50_sec": 900.0,
+ "p75_sec": 900.0
},
"ltx|a2v|balanced|241.0|any": {
- "n": 7,
- "p25_sec": 600.0,
- "p50_sec": 600.0,
+ "n": 24,
+ "p25_sec": 900.0,
+ "p50_sec": 900.0,
"p75_sec": 900.0
},
"ltx|a2v|balanced|41.0|any": {
@@ -16139,9 +16451,9 @@
"p75_sec": 300.0
},
"ltx|a2v|high|121.0|any": {
- "n": 54,
+ "n": 60,
"p25_sec": 240.0,
- "p50_sec": 300.0,
+ "p50_sec": 420.0,
"p75_sec": 600.0
},
"ltx|a2v|high|129.0|any": {
@@ -16157,10 +16469,10 @@
"p75_sec": 300.0
},
"ltx|a2v|high|145.0|any": {
- "n": 19,
+ "n": 22,
"p25_sec": 300.0,
"p50_sec": 300.0,
- "p75_sec": 300.0
+ "p75_sec": 555.0
},
"ltx|a2v|high|153.0|any": {
"n": 4,
@@ -16175,7 +16487,7 @@
"p75_sec": 1215.0
},
"ltx|a2v|high|169.0|any": {
- "n": 171,
+ "n": 175,
"p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 900.0
@@ -16193,13 +16505,13 @@
"p75_sec": 1200.0
},
"ltx|a2v|high|217.0|any": {
- "n": 26,
- "p25_sec": 420.0,
+ "n": 27,
+ "p25_sec": 465.0,
"p50_sec": 600.0,
- "p75_sec": 1200.0
+ "p75_sec": 1125.0
},
"ltx|a2v|high|241.0|any": {
- "n": 81,
+ "n": 88,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 1200.0
@@ -16252,6 +16564,12 @@
"p50_sec": 1800.0,
"p75_sec": 1800.0
},
+ "ltx|a2v|high|49.0|any": {
+ "n": 3,
+ "p25_sec": 45.0,
+ "p50_sec": 45.0,
+ "p75_sec": 622.5
+ },
"ltx|a2v|high|57.0|any": {
"n": 17,
"p25_sec": 45.0,
@@ -16277,16 +16595,16 @@
"p75_sec": 900.0
},
"ltx|a2v|high|721.0|any": {
- "n": 9,
+ "n": 11,
"p25_sec": 2400.0,
- "p50_sec": 3900.0,
+ "p50_sec": 2400.0,
"p75_sec": 5400.0
},
"ltx|a2v|high|73.0|any": {
- "n": 12,
- "p25_sec": 240.0,
- "p50_sec": 600.0,
- "p75_sec": 1050.0
+ "n": 16,
+ "p25_sec": 150.0,
+ "p50_sec": 240.0,
+ "p75_sec": 750.0
},
"ltx|a2v|high|81.0|any": {
"n": 7,
@@ -16301,10 +16619,10 @@
"p75_sec": 2250.0
},
"ltx|a2v|high|97.0|any": {
- "n": 12,
+ "n": 13,
"p25_sec": 300.0,
- "p50_sec": 510.0,
- "p75_sec": 825.0
+ "p50_sec": 600.0,
+ "p75_sec": 1050.0
},
"ltx|a2v|quick|241.0|any": {
"n": 8,
@@ -16391,10 +16709,10 @@
"p75_sec": 600.0
},
"ltx|extend|balanced|121.0|any": {
- "n": 40,
- "p25_sec": 900.0,
+ "n": 42,
+ "p25_sec": 675.0,
"p50_sec": 1200.0,
- "p75_sec": 1950.0
+ "p75_sec": 1800.0
},
"ltx|extend|balanced|241.0|any": {
"n": 12,
@@ -16439,7 +16757,7 @@
"p75_sec": 60.0
},
"ltx|i2v|balanced|121.0|any": {
- "n": 2832,
+ "n": 3170,
"p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 300.0
@@ -16451,9 +16769,9 @@
"p75_sec": 180.0
},
"ltx|i2v|balanced|145.0|any": {
- "n": 254,
+ "n": 329,
"p25_sec": 180.0,
- "p50_sec": 300.0,
+ "p50_sec": 270.0,
"p75_sec": 300.0
},
"ltx|i2v|balanced|161.0|any": {
@@ -16463,9 +16781,9 @@
"p75_sec": 420.0
},
"ltx|i2v|balanced|169.0|any": {
- "n": 624,
+ "n": 659,
"p25_sec": 120.0,
- "p50_sec": 240.0,
+ "p50_sec": 300.0,
"p75_sec": 420.0
},
"ltx|i2v|balanced|177.0|any": {
@@ -16481,11 +16799,17 @@
"p75_sec": 600.0
},
"ltx|i2v|balanced|193.0|any": {
- "n": 193,
- "p25_sec": 420.0,
+ "n": 262,
+ "p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 420.0
},
+ "ltx|i2v|balanced|217.0|any": {
+ "n": 5,
+ "p25_sec": 600.0,
+ "p50_sec": 600.0,
+ "p75_sec": 600.0
+ },
"ltx|i2v|balanced|225.0|any": {
"n": 3,
"p25_sec": 420.0,
@@ -16493,7 +16817,7 @@
"p75_sec": 420.0
},
"ltx|i2v|balanced|241.0|any": {
- "n": 2820,
+ "n": 2879,
"p25_sec": 240.0,
"p50_sec": 300.0,
"p75_sec": 420.0
@@ -16505,13 +16829,19 @@
"p75_sec": 56.2
},
"ltx|i2v|balanced|289.0|any": {
- "n": 26,
+ "n": 42,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 420.0
},
+ "ltx|i2v|balanced|337.0|any": {
+ "n": 3,
+ "p25_sec": 420.0,
+ "p50_sec": 420.0,
+ "p75_sec": 510.0
+ },
"ltx|i2v|balanced|361.0|any": {
- "n": 140,
+ "n": 142,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 420.0
@@ -16535,8 +16865,8 @@
"p75_sec": 120.0
},
"ltx|i2v|balanced|65.0|any": {
- "n": 6,
- "p25_sec": 67.5,
+ "n": 9,
+ "p25_sec": 180.0,
"p50_sec": 180.0,
"p75_sec": 180.0
},
@@ -16547,10 +16877,10 @@
"p75_sec": 1800.0
},
"ltx|i2v|balanced|73.0|any": {
- "n": 307,
+ "n": 377,
"p25_sec": 90.0,
"p50_sec": 90.0,
- "p75_sec": 180.0
+ "p75_sec": 120.0
},
"ltx|i2v|balanced|81.0|any": {
"n": 25,
@@ -16577,7 +16907,7 @@
"p75_sec": 600.0
},
"ltx|i2v|high_720p|241.0|any": {
- "n": 22,
+ "n": 24,
"p25_sec": 1200.0,
"p50_sec": 1200.0,
"p75_sec": 1200.0
@@ -16589,10 +16919,10 @@
"p75_sec": 180.0
},
"ltx|i2v|high|121.0|any": {
- "n": 436,
+ "n": 437,
"p25_sec": 180.0,
"p50_sec": 240.0,
- "p75_sec": 330.0
+ "p75_sec": 420.0
},
"ltx|i2v|high|145.0|any": {
"n": 77,
@@ -16613,9 +16943,9 @@
"p75_sec": 600.0
},
"ltx|i2v|high|241.0|any": {
- "n": 301,
+ "n": 323,
"p25_sec": 420.0,
- "p50_sec": 420.0,
+ "p50_sec": 600.0,
"p75_sec": 900.0
},
"ltx|i2v|high|289.0|any": {
@@ -16661,13 +16991,13 @@
"p75_sec": 120.0
},
"ltx|i2v|high|73.0|any": {
- "n": 119,
+ "n": 121,
"p25_sec": 120.0,
"p50_sec": 120.0,
- "p75_sec": 180.0
+ "p75_sec": 240.0
},
"ltx|i2v|high|97.0|any": {
- "n": 203,
+ "n": 206,
"p25_sec": 180.0,
"p50_sec": 180.0,
"p75_sec": 180.0
@@ -16679,13 +17009,13 @@
"p75_sec": 420.0
},
"ltx|i2v|quick|113.0|any": {
- "n": 6,
- "p25_sec": 135.0,
- "p50_sec": 210.0,
- "p75_sec": 285.0
+ "n": 7,
+ "p25_sec": 150.0,
+ "p50_sec": 180.0,
+ "p75_sec": 270.0
},
"ltx|i2v|quick|121.0|any": {
- "n": 490,
+ "n": 497,
"p25_sec": 90.0,
"p50_sec": 120.0,
"p75_sec": 240.0
@@ -16703,13 +17033,13 @@
"p75_sec": 180.0
},
"ltx|i2v|quick|169.0|any": {
- "n": 76,
- "p25_sec": 105.0,
+ "n": 77,
+ "p25_sec": 112.5,
"p50_sec": 180.0,
"p75_sec": 240.0
},
"ltx|i2v|quick|241.0|any": {
- "n": 279,
+ "n": 282,
"p25_sec": 180.0,
"p50_sec": 300.0,
"p75_sec": 420.0
@@ -16745,31 +17075,31 @@
"p75_sec": 60.0
},
"ltx|i2v|quick|481.0|any": {
- "n": 215,
+ "n": 222,
"p25_sec": 180.0,
"p50_sec": 300.0,
"p75_sec": 420.0
},
"ltx|i2v|quick|49.0|any": {
- "n": 25,
+ "n": 26,
"p25_sec": 90.0,
"p50_sec": 180.0,
"p75_sec": 180.0
},
"ltx|i2v|quick|73.0|any": {
- "n": 271,
+ "n": 276,
"p25_sec": 60.0,
"p50_sec": 120.0,
"p75_sec": 300.0
},
"ltx|i2v|quick|97.0|any": {
- "n": 40,
+ "n": 41,
"p25_sec": 15.0,
"p50_sec": 15.0,
"p75_sec": 300.0
},
"ltx|i2v|standard|121.0|any": {
- "n": 1369,
+ "n": 1400,
"p25_sec": 180.0,
"p50_sec": 240.0,
"p75_sec": 300.0
@@ -16787,7 +17117,7 @@
"p75_sec": 300.0
},
"ltx|i2v|standard|169.0|any": {
- "n": 788,
+ "n": 815,
"p25_sec": 180.0,
"p50_sec": 300.0,
"p75_sec": 420.0
@@ -16817,7 +17147,7 @@
"p75_sec": 690.0
},
"ltx|i2v|standard|241.0|any": {
- "n": 1682,
+ "n": 1712,
"p25_sec": 420.0,
"p50_sec": 420.0,
"p75_sec": 600.0
@@ -16931,7 +17261,7 @@
"p75_sec": 600.0
},
"ltx|keyframe|balanced|241.0|any": {
- "n": 79,
+ "n": 82,
"p25_sec": 900.0,
"p50_sec": 900.0,
"p75_sec": 1200.0
@@ -16961,7 +17291,7 @@
"p75_sec": 300.0
},
"ltx|keyframe|high|121.0|any": {
- "n": 71,
+ "n": 72,
"p25_sec": 300.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -17015,22 +17345,22 @@
"p75_sec": 600.0
},
"ltx|keyframe|high|49.0|any": {
- "n": 10,
- "p25_sec": 180.0,
- "p50_sec": 210.0,
- "p75_sec": 285.0
+ "n": 12,
+ "p25_sec": 195.0,
+ "p50_sec": 270.0,
+ "p75_sec": 300.0
},
"ltx|keyframe|high|73.0|any": {
- "n": 9,
+ "n": 12,
"p25_sec": 180.0,
- "p50_sec": 180.0,
- "p75_sec": 240.0
+ "p50_sec": 210.0,
+ "p75_sec": 420.0
},
"ltx|keyframe|high|97.0|any": {
- "n": 16,
- "p25_sec": 180.0,
- "p50_sec": 240.0,
- "p75_sec": 300.0
+ "n": 22,
+ "p25_sec": 240.0,
+ "p50_sec": 300.0,
+ "p75_sec": 420.0
},
"ltx|keyframe|quick|121.0|any": {
"n": 13,
@@ -17117,7 +17447,7 @@
"p75_sec": 90.0
},
"ltx|t2v|balanced|121.0|any": {
- "n": 2590,
+ "n": 2648,
"p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 240.0
@@ -17135,7 +17465,7 @@
"p75_sec": 90.0
},
"ltx|t2v|balanced|169.0|any": {
- "n": 211,
+ "n": 214,
"p25_sec": 120.0,
"p50_sec": 240.0,
"p75_sec": 300.0
@@ -17153,7 +17483,7 @@
"p75_sec": 420.0
},
"ltx|t2v|balanced|241.0|any": {
- "n": 979,
+ "n": 1005,
"p25_sec": 180.0,
"p50_sec": 300.0,
"p75_sec": 600.0
@@ -17195,7 +17525,7 @@
"p75_sec": 900.0
},
"ltx|t2v|balanced|49.0|any": {
- "n": 44,
+ "n": 45,
"p25_sec": 45.0,
"p50_sec": 60.0,
"p75_sec": 90.0
@@ -17207,7 +17537,7 @@
"p75_sec": 78.8
},
"ltx|t2v|balanced|73.0|any": {
- "n": 431,
+ "n": 444,
"p25_sec": 90.0,
"p50_sec": 90.0,
"p75_sec": 120.0
@@ -17219,7 +17549,7 @@
"p75_sec": 45.0
},
"ltx|t2v|balanced|97.0|any": {
- "n": 241,
+ "n": 244,
"p25_sec": 120.0,
"p50_sec": 180.0,
"p75_sec": 300.0
@@ -17267,8 +17597,8 @@
"p75_sec": 180.0
},
"ltx|t2v|high|121.0|any": {
- "n": 295,
- "p25_sec": 240.0,
+ "n": 324,
+ "p25_sec": 300.0,
"p50_sec": 420.0,
"p75_sec": 600.0
},
@@ -17279,16 +17609,16 @@
"p75_sec": 240.0
},
"ltx|t2v|high|169.0|any": {
- "n": 52,
+ "n": 55,
"p25_sec": 300.0,
"p50_sec": 300.0,
"p75_sec": 600.0
},
"ltx|t2v|high|241.0|any": {
- "n": 184,
+ "n": 201,
"p25_sec": 600.0,
"p50_sec": 900.0,
- "p75_sec": 1200.0
+ "p75_sec": 900.0
},
"ltx|t2v|high|289.0|any": {
"n": 5,
@@ -17327,8 +17657,8 @@
"p75_sec": 90.0
},
"ltx|t2v|high|65.0|any": {
- "n": 27,
- "p25_sec": 105.0,
+ "n": 28,
+ "p25_sec": 90.0,
"p50_sec": 120.0,
"p75_sec": 180.0
},
@@ -17339,21 +17669,21 @@
"p75_sec": 300.0
},
"ltx|t2v|high|97.0|any": {
- "n": 8,
+ "n": 12,
"p25_sec": 165.0,
"p50_sec": 180.0,
"p75_sec": 180.0
},
"ltx|t2v|quick|121.0|any": {
- "n": 884,
+ "n": 921,
"p25_sec": 60.0,
"p50_sec": 120.0,
"p75_sec": 180.0
},
"ltx|t2v|quick|145.0|any": {
- "n": 33,
+ "n": 36,
"p25_sec": 60.0,
- "p50_sec": 90.0,
+ "p50_sec": 180.0,
"p75_sec": 180.0
},
"ltx|t2v|quick|153.0|any": {
@@ -17381,7 +17711,7 @@
"p75_sec": 180.0
},
"ltx|t2v|quick|241.0|any": {
- "n": 373,
+ "n": 379,
"p25_sec": 120.0,
"p50_sec": 240.0,
"p75_sec": 420.0
@@ -17398,6 +17728,18 @@
"p50_sec": 105.0,
"p75_sec": 120.0
},
+ "ltx|t2v|quick|337.0|any": {
+ "n": 3,
+ "p25_sec": 150.0,
+ "p50_sec": 180.0,
+ "p75_sec": 180.0
+ },
+ "ltx|t2v|quick|385.0|any": {
+ "n": 3,
+ "p25_sec": 150.0,
+ "p50_sec": 180.0,
+ "p75_sec": 210.0
+ },
"ltx|t2v|quick|41.0|any": {
"n": 3,
"p25_sec": 7.5,
@@ -17405,7 +17747,7 @@
"p75_sec": 22.5
},
"ltx|t2v|quick|481.0|any": {
- "n": 122,
+ "n": 132,
"p25_sec": 240.0,
"p50_sec": 300.0,
"p75_sec": 300.0
@@ -17417,19 +17759,19 @@
"p75_sec": 82.5
},
"ltx|t2v|quick|73.0|any": {
- "n": 365,
+ "n": 374,
"p25_sec": 60.0,
"p50_sec": 90.0,
"p75_sec": 120.0
},
"ltx|t2v|quick|97.0|any": {
- "n": 49,
+ "n": 51,
"p25_sec": 60.0,
"p50_sec": 90.0,
"p75_sec": 120.0
},
"ltx|t2v|standard|121.0|any": {
- "n": 706,
+ "n": 726,
"p25_sec": 120.0,
"p50_sec": 240.0,
"p75_sec": 420.0
@@ -17441,7 +17783,7 @@
"p75_sec": 240.0
},
"ltx|t2v|standard|169.0|any": {
- "n": 161,
+ "n": 163,
"p25_sec": 180.0,
"p50_sec": 180.0,
"p75_sec": 300.0
@@ -17453,7 +17795,7 @@
"p75_sec": 600.0
},
"ltx|t2v|standard|241.0|any": {
- "n": 756,
+ "n": 765,
"p25_sec": 300.0,
"p50_sec": 600.0,
"p75_sec": 600.0
@@ -17477,7 +17819,7 @@
"p75_sec": 600.0
},
"ltx|t2v|standard|361.0|any": {
- "n": 296,
+ "n": 297,
"p25_sec": 240.0,
"p50_sec": 240.0,
"p75_sec": 240.0
@@ -17489,10 +17831,16 @@
"p75_sec": 420.0
},
"ltx|t2v|standard|49.0|any": {
- "n": 6,
- "p25_sec": 45.0,
+ "n": 8,
+ "p25_sec": 26.2,
"p50_sec": 45.0,
- "p75_sec": 78.8
+ "p75_sec": 56.2
+ },
+ "ltx|t2v|standard|57.0|any": {
+ "n": 34,
+ "p25_sec": 60.0,
+ "p50_sec": 150.0,
+ "p75_sec": 300.0
},
"ltx|t2v|standard|73.0|any": {
"n": 83,
@@ -17501,10 +17849,10 @@
"p75_sec": 180.0
},
"ltx|t2v|standard|97.0|any": {
- "n": 18,
- "p25_sec": 97.5,
+ "n": 19,
+ "p25_sec": 105.0,
"p50_sec": 120.0,
- "p75_sec": 165.0
+ "p75_sec": 210.0
}
},
"dims": [
@@ -17526,7 +17874,7 @@
"keyframe"
],
"schema": "fleet_timings/1",
- "total_events_counted": 97152,
+ "total_events_counted": 101654,
"wall_sec": "bucket_lower_edge",
"window_days": 75
}
diff --git a/docs/ANALYTICS.md b/docs/ANALYTICS.md
index 73a8cbc..db21202 100644
--- a/docs/ANALYTICS.md
+++ b/docs/ANALYTICS.md
@@ -375,7 +375,7 @@ Once per job the panel **declined on purpose**. Same fields as
| Field | Type | Example | Notes |
|---|---|---|---|
-| `refusal` | string | `"ingredients_generation"` | **A closed vocabulary** — `ingredients_generation`, `hardware_tier`, `h3_ram`, `h3_mode`, `h3_lora_slots`, `stale_engine` (v4.9+: a 2.5 render refused because the vendored engine predates the Gemma 4 tower — remedy is a second Update click). `image_ram` (v4.9.3+: the Image Studio memory guard — the engine holds more weights than this Mac can hold, or too little is free right now). `pack_missing` (v4.9.3+: High / Keyframes / Extend chosen on a Mac that has not downloaded the Q8 add-on — remedy is Settings → Models). Which guard said no. No free text, no fingerprint: the message is our own copy, so there is nothing to scrub and nothing unknown to count |
+| `refusal` | string | `"ingredients_generation"` | **A closed vocabulary** — `ingredients_generation`, `hardware_tier`, `h3_ram`, `h3_mode`, `h3_lora_slots`, `stale_engine` (v4.9+: a 2.5 render refused because the vendored engine predates the Gemma 4 tower — remedy is a second Update click). `image_ram` (v4.9.3+: the Image Studio memory guard — the engine holds more weights than this Mac can hold, or too little is free right now). `pack_missing` (v4.9.3+: High / Keyframes / Extend chosen on a Mac that has not downloaded the Q8 add-on — remedy is Settings → Models). `vocal_separator` (4.17.x+: Lip-sync with "Listen to the voice only" on an install whose vocal separation is missing — remedy is the form's own Install button). Which guard said no. No free text, no fingerprint: the message is our own copy, so there is nothing to scrub and nothing unknown to count |
#### The rule — a refusal is not a failure
diff --git a/docs/MUSIC_ENGINE.md b/docs/MUSIC_ENGINE.md
index b04cbf7..39aed62 100644
--- a/docs/MUSIC_ENGINE.md
+++ b/docs/MUSIC_ENGINE.md
@@ -870,9 +870,11 @@ Two fields, both optional: `audio_stem` names a stem you already have, and
**the original song is muxed back over the finished clip** — the video stream
is copied, not re-encoded — so nothing the audience hears changes. The
separation is cached by path + size + mtime, so a twelve-shot film separates
-once. demucs is an OPTIONAL extra (`scripts/pinokio/a2v_stems_deps.sh`, into
-the engine venv); without it the auto option degrades to the full mix with a
-note naming the installer, and never fails a queued job. `POST
+once. demucs is installed into the engine venv by install.js and by every
+Update (`scripts/pinokio/a2v_stems_deps.sh`, torch pinned to what is on disk)
+and run through `scripts/a2v_separate.py`; if it is missing the auto option is
+REFUSED at /queue/add with an install offer (the Lip-sync form's own Install
+button), never quietly rendered on the full mix (4.17.x). `POST
/music/video/plan` takes `vocal_stem` and rides it onto every singing shot.
**3. The prompt must not say that nothing moves.** LTX reads a stillness word
diff --git a/docs/RELEASE_CHECKLIST.md b/docs/RELEASE_CHECKLIST.md
index f68e645..6ab00da 100644
--- a/docs/RELEASE_CHECKLIST.md
+++ b/docs/RELEASE_CHECKLIST.md
@@ -298,17 +298,24 @@ git fetch origin
# 1. stage dev's tree, then remove what public main does not carry
git read-tree --empty
git read-tree <DEV-SHA>
-git rm --cached -q $(cat scripts/public_exclude.txt | grep -v '^#' | grep -v '^$')
- # scripts/public_exclude.txt is the ONE
- # list of what must never ship (docs/STATE.md
- # plus anything else added there) — it is
- # also what public_leak_check.py verifies
- # in step 3, so the two can't drift apart.
- # If a release needs a ONE-OFF removal on
- # top of that (a dev-only scratch test file
- # not meant to become permanently excluded),
- # `git rm --cached -q` it separately here —
- # diff first, never guess that list.
+# scripts/public_exclude.txt is the ONE list of what must never ship
+# (docs/STATE.md, the leak-check's own pattern list, plus anything else
+# added there) — it is also what public_leak_check.py verifies in step 3,
+# so the two can't drift apart. A while-read loop, not a command
+# substitution splatted into `git rm --cached`: under zsh, unquoted
+# command substitution does NOT word-split on the newline between paths
+# (bash does), so `git rm --cached -q $(cat ...)` silently hands the
+# WHOLE multi-line list to git as one bad pathspec and removes nothing —
+# bitten once already building v4.17.2's snapshot, caught only because
+# the leak-check then reported the paths still present.
+while IFS= read -r p; do
+ [ -z "$p" ] && continue
+ case "$p" in \#*) continue ;; esac
+ git rm --cached -q -- "$p"
+done < scripts/public_exclude.txt
+# If a release needs a ONE-OFF removal on top of that (a dev-only scratch
+# test file not meant to become permanently excluded), `git rm --cached -q`
+# it separately here — diff first, never guess that list.
TREE=$(git write-tree)
# 2. one snapshot commit, parented on public main
diff --git a/install.js b/install.js
index 7ad33b9..f42b5bf 100644
--- a/install.js
+++ b/install.js
@@ -593,6 +593,20 @@ module.exports = {
}
},
+ // ---- Vocal separation for Lip-sync (~15 MB + 80 MB weights) -----------
+ // "Listen to the voice only" is ON by default in the Lip-sync form, and
+ // until 4.17 nothing installed what it needs, so every render asked for
+ // the voice and got the full mix. demucs goes into the engine venv with
+ // torch pinned to the copy the image pack above just installed; the
+ // htdemucs weights land in mlx_models/demucs. BEST-EFFORT: a hiccup must
+ // not fail the video install — the Lip-sync form offers the same step.
+ {
+ method: "shell.run",
+ params: {
+ message: "bash scripts/pinokio/a2v_stems_deps.sh ./ltx-2-mlx || echo 'WARN: vocal separation did not install - video works; the Lip-sync form offers Install.'"
+ }
+ },
+
// ---- Colorize IC-LoRA (~0.3 GB, un-gated community weights) -----------
// Powers the Colorize restore mode (B&W clip → color). UN-GATED, so no
// HF token is needed — but BEST-EFFORT regardless: a network hiccup (or a
diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.py
index f382009..89e0054 100644
--- a/mlx_ltx_panel.py
+++ b/mlx_ltx_panel.py
@@ -432,6 +432,63 @@ HIDDEN_FILE = STATE_DIR / "panel_hidden.json"
STATS_DATA_FILE = STATE_DIR / "stats-data.jsonl"
STATS_HTML_FILE = ROOT / "panel_assets" / "stats.html"
STATS_FETCHER = ROOT / "scripts" / "fetch_repo_stats.py"
+
+# Dashboard v2 (2026-09-30): one range control (7d/30d/90d/all) drives every
+# panel on /stats. Server-side filtering of the JSONL archive lives here so
+# the payload the browser downloads matches what it asked for, and so a
+# range's own cache entry is invalidated (not served stale) the moment the
+# archive file changes underneath it — see _stats_data_for_range.
+STATS_RANGE_DAYS = {"7d": 7, "30d": 30, "90d": 90, "all": None}
+STATS_RANGE_DEFAULT = "30d"
+_STATS_DATA_RANGE_CACHE: dict[str, tuple[float, bytes]] = {}
+_STATS_DATA_RANGE_LOCK = threading.Lock()
+
+
+def _stats_data_for_range(range_key: str) -> bytes:
+ """JSONL bytes for one range, cached per (range, archive mtime).
+
+ Keying the cache on the file's own mtime — not a TTL — is what keeps
+ this correct after /stats/refresh: the fetcher rewrites STATS_DATA_FILE
+ in place, which bumps mtime, which makes every range's cache entry miss
+ on the very next read. No separate invalidation call needed.
+
+ A range narrower than "all" asks for 2x the window (e.g. 60 days of
+ rows for "30d") so the dashboard can compute "vs prior period" deltas
+ from one response instead of a second round trip."""
+ key = range_key if range_key in STATS_RANGE_DAYS else STATS_RANGE_DEFAULT
+ days = STATS_RANGE_DAYS[key]
+ try:
+ mtime = STATS_DATA_FILE.stat().st_mtime
+ except OSError:
+ return b""
+ with _STATS_DATA_RANGE_LOCK:
+ cached = _STATS_DATA_RANGE_CACHE.get(key)
+ if cached and cached[0] == mtime:
+ return cached[1]
+ try:
+ raw = STATS_DATA_FILE.read_bytes()
+ except FileNotFoundError:
+ return b""
+ if days is None:
+ body = raw
+ else:
+ cutoff = time.strftime("%Y-%m-%d",
+ time.gmtime(time.time() - days * 2 * 86400))
+ kept: list[bytes] = []
+ for line in raw.splitlines():
+ stripped = line.strip()
+ if not stripped:
+ continue
+ try:
+ row = json.loads(stripped)
+ except (json.JSONDecodeError, ValueError):
+ continue
+ if str(row.get("date") or "") >= cutoff:
+ kept.append(stripped)
+ body = (b"\n".join(kept) + b"\n") if kept else b""
+ with _STATS_DATA_RANGE_LOCK:
+ _STATS_DATA_RANGE_CACHE[key] = (mtime, body)
+ return body
HELPER_IDLE_TIMEOUT = int(os.environ.get("LTX_HELPER_IDLE_TIMEOUT", "1800"))
HELPER_LOW_MEMORY = os.environ.get("LTX_HELPER_LOW_MEMORY", "true")
# Low-RAM block streaming (v4.9.9): on Macs with 24 GB or less the helper
@@ -6563,6 +6620,63 @@ _INTEGRITY_LOCK = threading.Lock()
_INTEGRITY_CACHE: dict = {"ts": 0.0, "data": None}
+# ---- JSON sidecar verification (4.17.3, fleet) --------------------------------
+# The header scan above only ever looked at .safetensors. A fresh 4.17.1 install
+# in the fleet booted with weights_check "ok" and then failed five renders in a
+# row with messages that named nothing — "Expecting value: line 1 column 1
+# (char 0)" (an empty JSON file), "Received 1 parameters not in model" (the
+# library could not read embedded_config.json, silently fell back to default
+# transformer settings, and the checkpoint then refused to load into them),
+# "No usable tokenizer beside the text encoder", "Invalid json header length".
+# All four are a damaged or partially-downloaded SMALL file next to intact
+# weights, and none of them reached the integrity banner, so Repair was never
+# offered. Every JSON file a pack ships is now parsed here too and lands in the
+# same bad[] the banner, the boot warning and /models/repair already consume.
+# Parsing is cached by (size, mtime) so the 30 MB tokenizer.json is read once,
+# not on every /status refresh.
+_JSON_VERIFY_CACHE: dict = {}
+
+
+def _json_files_for_repo(repo_def: dict, base: Path) -> list[str]:
+ """The JSON files this repo owns in `base`: the ones `files` declares, plus
+ every top-level *.json when the repo downloads `*.json` (its own include
+ pattern — so a shared folder never attributes another pack's file to it)."""
+ names = [f for f in (repo_def.get("files") or []) if str(f).endswith(".json")]
+ if "*.json" in (repo_def.get("download_include") or []):
+ try:
+ names += sorted(p.name for p in Path(base).glob("*.json")
+ if p.is_file() and not p.name.startswith("._"))
+ except OSError:
+ pass
+ seen: set = set()
+ return [n for n in names if not (n in seen or seen.add(n))]
+
+
+def _verify_json_file(path: Path) -> tuple[bool, str]:
+ """(ok, reason) for one JSON file: present, non-empty, parseable."""
+ try:
+ st = path.stat()
+ except OSError:
+ return True, "absent" # presence is repo_status_list's job, not ours
+ key = str(path)
+ hit = _JSON_VERIFY_CACHE.get(key)
+ if hit and hit[0] == (st.st_size, st.st_mtime_ns):
+ return hit[1]
+ if st.st_size == 0:
+ res = (False, "damaged: the file is empty (interrupted download)")
+ else:
+ try:
+ with open(path, "rb") as fh:
+ json.loads(fh.read().decode("utf-8"))
+ res = (True, "ok")
+ except (UnicodeDecodeError, ValueError) as e:
+ res = (False, f"damaged: not valid JSON ({str(e)[:80]})")
+ except OSError as e:
+ res = (False, f"unreadable ({e})")
+ _JSON_VERIFY_CACHE[key] = ((st.st_size, st.st_mtime_ns), res)
+ return res
+
+
def _model_integrity(force: bool = False) -> dict:
"""Header-only integrity scan of installed model weights. Cached ~120 s so
the frequently-polled /status doesn't re-read headers every tick.
@@ -6595,6 +6709,17 @@ def _model_integrity(force: bool = False) -> dict:
if not ok:
result["ok"] = False
result["bad"].append({"repo": r["key"], "file": fname, "reason": reason})
+ # The small JSON files beside the weights (transformer config,
+ # tokenizer, split/quantize manifests) — see _verify_json_file.
+ flagged = {b["file"] for b in result["bad"] if b["repo"] == r["key"]}
+ for fname in _json_files_for_repo(defs.get(r["key"], {}), base):
+ if fname in flagged:
+ continue
+ ok, reason = _verify_json_file(base / fname)
+ result["checked"] += 1
+ if not ok:
+ result["ok"] = False
+ result["bad"].append({"repo": r["key"], "file": fname, "reason": reason})
# Placement audit — right content, wrong path. Folded into the same bad[] the
# banner, boot warning and Repair already consume. It is stat-only, so it is
# safe in the /status path, and unlike the header scan above it deliberately
@@ -8332,6 +8457,23 @@ def min_ram_gb_for(capability: str) -> int | None:
return min(floors) if floors else None
+def _ram_tier_for_gb(gb: float) -> str:
+ """Which of the four RAM tiers (base/standard/high/pro) `gb` falls in,
+ by the SAME thresholds `_detect_tier()` uses for this Mac's own boot RAM
+ — but callable for any RAM value, not just SYSTEM_RAM_GB. Used to keep
+ fleet-timings lookups (fleet_estimate_range, below) from silently
+ mixing a Mac's own class with a materially different one (4.17: a 64 GB
+ M4 Max was shown "~30-40 min" for LTX High*720p 10s because the only
+ fleet renders for that chip+tier were all on a 128 GB Mac — a `pro`-tier
+ sample handed to a `standard`-tier owner as "Macs like yours")."""
+ if gb <= 0:
+ return "standard" # safe default, matches _detect_tier's own
+ if gb < TIER_MIN_RAM_GB["standard"]: return "base"
+ if gb < TIER_MIN_RAM_GB["high"]: return "standard"
+ if gb < TIER_MIN_RAM_GB["pro"]: return "high"
+ return "pro"
+
+
def _detect_tier() -> str:
"""Pick a tier based on `hw.memsize`. Cached at module load — RAM is
fixed at boot. LTX_TIER_OVERRIDE env var lets advanced users force a
@@ -8339,13 +8481,7 @@ def _detect_tier() -> str:
override = os.environ.get("LTX_TIER_OVERRIDE", "").strip().lower()
if override in CAPABILITIES:
return override
- gb = SYSTEM_RAM_GB
- if gb <= 0:
- return "standard" # safe default
- if gb < TIER_MIN_RAM_GB["standard"]: return "base"
- if gb < TIER_MIN_RAM_GB["high"]: return "standard"
- if gb < TIER_MIN_RAM_GB["pro"]: return "high"
- return "pro"
+ return _ram_tier_for_gb(SYSTEM_RAM_GB)
SYSTEM_TIER = _detect_tier()
@@ -9463,6 +9599,88 @@ def _fleet_scale_ratio(engine: str, tier: str, target_frames: float,
return None
+def _iter_fleet_cell_entries(engine: str, mode: str, tier: str, *,
+ chip: str | None = None, speed: str = ""):
+ """Yield (frames, chip_family, ram_gb, cell) for every "cell"-level row
+ matching engine/mode/tier (and `chip`/`speed` when given) — the one
+ level of data/fleet_timings.json that still carries a real ram_gb per
+ row (scripts/fleet_timings_build.py's "chip" and "model" levels both
+ drop it in their own GROUP BY, on purpose, to precompute a coarser
+ pooled number — see their `_CHIP_COLS`/`_MODEL_COLS`). Reading "cell"
+ directly is what lets the RAM-tier-aware levels below exist without a
+ new PostHog pull."""
+ cell_cells = (FLEET_TIMINGS.get("levels") or {}).get("cell", {}).get("cells") or {}
+ prefix = f"{engine}|{mode}|{tier}|"
+ for k, v in cell_cells.items():
+ if not k.startswith(prefix):
+ continue
+ rest = k[len(prefix):].split("|")
+ if len(rest) != 4: # noqa: PLR2004
+ continue
+ frames_s, k_chip, ram_s, k_speed = rest
+ if chip is not None and k_chip != chip:
+ continue
+ if (k_speed or "any") != (speed or "any"):
+ continue
+ try:
+ yield float(frames_s), k_chip, float(ram_s), v
+ except ValueError:
+ continue
+
+
+def _combine_fleet_cells(cells: list[dict]) -> dict:
+ """Combine several real fleet cells into one synthetic cell — used when
+ more than one RAM value (or chip) falls in the same bucket this Mac should
+ be compared against.
+
+ POOLED, not averaged (4.17.3 review). Averaging each cell's quartiles is
+ not a quartile of the pooled renders: two equally sized cohorts at 1-1.5
+ and 10-15 min averaged to a "~5-7 min" range that contains neither. Each
+ cell is taken as its own three quartile points, each carrying a third of
+ its sample count, and the quartiles are read off that pooled, n-weighted
+ set — so a 90-sample cell still dominates three 3-sample ones, and two
+ far-apart cohorts give an honest wide range instead of a narrow wrong
+ one. Every value returned is one a real cell carried."""
+ pts: list[tuple[float, float]] = []
+ total_n = 0
+ for c in cells:
+ n = max(0, int(c.get("n") or 0))
+ total_n += n
+ for field in ("p25_sec", "p50_sec", "p75_sec"):
+ pts.append((float(c[field]), n / 3.0))
+ if total_n <= 0:
+ return cells[0]
+ pts.sort(key=lambda t: t[0])
+ weight = sum(w for _, w in pts)
+
+ def _q(q: float) -> float:
+ acc = 0.0
+ for v, w in pts:
+ acc += w
+ if acc >= q * weight - 1e-9:
+ return v
+ return pts[-1][0]
+ return {"p25_sec": _q(0.25), "p50_sec": _q(0.5), "p75_sec": _q(0.75),
+ "n": total_n}
+
+
+def _fleet_chip_adjust_ratio(engine: str, from_chip: str, to_chip: str) -> float:
+ """How much to rescale a render time measured on `from_chip` to what
+ `to_chip` would show, using the SAME per-chip speed table
+ `_hw_speed_factor` reads (HW_SPEED_FACTOR_LTX / _H3). 1.0 when the chips
+ match or either is outside the table (an unknown chip already defaults
+ to the M4 Max factor there, so this stays a no-op rather than guessing
+ at a correction it has no basis for)."""
+ if from_chip == to_chip:
+ return 1.0
+ table = HW_SPEED_FACTOR_H3 if engine == "h3" else HW_SPEED_FACTOR_LTX
+ f_from = float(table.get(from_chip, 1.0))
+ f_to = float(table.get(to_chip, 1.0))
+ if f_from <= 0:
+ return 1.0
+ return f_to / f_from
+
+
def fleet_estimate_range(engine: str, mode: str, tier: str, frames,
chip: str | None = None, ram: float | None = None,
speed: str = "") -> dict | None:
@@ -9471,10 +9689,31 @@ def fleet_estimate_range(engine: str, mode: str, tier: str, frames,
fleet table has nothing at any level, in which case the caller prices
from the cost model instead. Self-calibration is NOT applied here
(callers that want it multiply p25/p50/p75 themselves) so this function
- stays a pure table lookup, independently testable."""
+ stays a pure table lookup, independently testable.
+
+ RAM-TIER AWARE (4.17.1 fix). The bug: a 64 GB M4 Max's "High * 720p,
+ 10s" chip read "~30-40 min" (a real Mac's own render of that exact
+ setting took 17.4 min). Root cause — the precomputed "chip" level pools
+ EVERY RAM class of a chip together (scripts/fleet_timings_build.py's
+ `_CHIP_COLS` drops ram_gb from its GROUP BY on purpose, to get a
+ coarser fallback), and for LTX High*720p the fleet's only M4 Max
+ samples at 10s happened to all be 128 GB installs — 13 renders that all
+ landed in the 1800-2400s bucket got shown to a 64 GB owner as "based on
+ 13 renders on M4 Max Macs", i.e. "Macs like yours", when they were
+ 2x the RAM and (per the bucket) roughly 2x the time. Two new levels
+ (`chip_ram_tier` / `chip_ram_tier_scaled`) try the SAME chip within
+ this Mac's own RAM TIER first — reconstructed from the "cell" level,
+ the one place ram_gb still exists per-row. And the old RAM-blind
+ "chip" level is no longer trusted blindly: it is skipped when the
+ "cell" rows backing it are ALL a different RAM tier than this Mac's
+ own (proven contamination) — falling instead to `ram_tier` (any chip,
+ same RAM tier, chip-speed-adjusted via `_fleet_chip_adjust_ratio`) and
+ only then to the fully pooled "model" level, unchanged, as the last
+ real-data rung before the cost model."""
levels = FLEET_TIMINGS.get("levels") or {}
chip = chip if chip is not None else _hw_chip_family()
ram = ram if ram is not None else SYSTEM_RAM_GB
+ ram_tier = _ram_tier_for_gb(float(ram))
try:
frames_f = float(frames)
except (TypeError, ValueError):
@@ -9519,12 +9758,68 @@ def fleet_estimate_range(engine: str, mode: str, tier: str, frames,
"basis": f"based on {hit['n']} renders on Macs like yours, "
f"scaled from a different length"}
+ # chip_ram_tier / chip_ram_tier_scaled: same chip, a DIFFERENT RAM value
+ # but the SAME RAM TIER as this Mac (e.g. two 48 GB and one 56 GB cell
+ # both count as "standard" for a 64 GB owner) — reconstructed from the
+ # "cell" rows, which is the only level that still has ram_gb per row.
+ same_chip_tier = [(f, r, v) for f, c, r, v in
+ _iter_fleet_cell_entries(engine, mode, tier, chip=chip, speed=speed)
+ if _ram_tier_for_gb(r) == ram_tier]
+ exact = [v for f, r, v in same_chip_tier if f == frames_f]
+ if exact:
+ combined = _combine_fleet_cells(exact)
+ return {**_minutes(combined), "source": "chip_ram_tier",
+ "basis": f"based on {combined['n']} renders on {chip} Macs "
+ f"with similar memory"}
+ if same_chip_tier:
+ found_frames, _, hit = min(same_chip_tier, key=lambda t: abs(t[0] - frames_f))
+ ratio = _fleet_scale_ratio(engine, tier, frames_f, found_frames)
+ if ratio:
+ return {**_minutes(hit, scale=ratio), "source": "chip_ram_tier_scaled",
+ "basis": f"based on {hit['n']} renders on {chip} Macs "
+ f"with similar memory, scaled from a different length"}
+
+ # chip (RAM-blind, precomputed) — GATED. Trust it only when the "cell"
+ # rows actually backing this exact (chip, frames) number either don't
+ # exist to check (nothing to contradict it) or include this Mac's own
+ # RAM tier. When they exist and are EXCLUSIVELY a different tier, this
+ # is the contamination the docstring above describes — skip it rather
+ # than show a different-RAM Mac's time as "Macs like yours".
chip_cells = (levels.get("chip") or {}).get("cells") or {}
key = _fleet_key(engine, mode, tier, frames_f, chip=chip, speed=speed)
hit = chip_cells.get(key)
if hit:
- return {**_minutes(hit), "source": "chip",
- "basis": f"based on {hit['n']} renders on {chip} Macs"}
+ backing_tiers = {_ram_tier_for_gb(r) for f, _, r, _ in
+ _iter_fleet_cell_entries(engine, mode, tier, chip=chip, speed=speed)
+ if f == frames_f}
+ if not backing_tiers or ram_tier in backing_tiers:
+ return {**_minutes(hit), "source": "chip",
+ "basis": f"based on {hit['n']} renders on {chip} Macs"}
+
+ # ram_tier / ram_tier_scaled: ANY chip, but the SAME RAM tier — the
+ # fleet's best remaining honest signal for THIS Mac's memory class, chip-
+ # adjusted by the panel's own per-chip speed table so a slower stand-in
+ # chip doesn't overstate a faster Mac's time (or vice versa).
+ any_chip_tier = [(f, c, v) for f, c, r, v in
+ _iter_fleet_cell_entries(engine, mode, tier, speed=speed)
+ if _ram_tier_for_gb(r) == ram_tier]
+ exact2 = [(c, v) for f, c, v in any_chip_tier if f == frames_f]
+ if exact2:
+ adjusted = [{**v, "p25_sec": v["p25_sec"] * _fleet_chip_adjust_ratio(engine, c, chip),
+ "p50_sec": v["p50_sec"] * _fleet_chip_adjust_ratio(engine, c, chip),
+ "p75_sec": v["p75_sec"] * _fleet_chip_adjust_ratio(engine, c, chip)}
+ for c, v in exact2]
+ combined = _combine_fleet_cells(adjusted)
+ return {**_minutes(combined), "source": "ram_tier",
+ "basis": f"based on {combined['n']} renders on Macs with similar memory"}
+ if any_chip_tier:
+ found_frames, found_chip, hit = min(any_chip_tier, key=lambda t: abs(t[0] - frames_f))
+ ratio = _fleet_scale_ratio(engine, tier, frames_f, found_frames)
+ if ratio:
+ chip_ratio = _fleet_chip_adjust_ratio(engine, found_chip, chip)
+ return {**_minutes(hit, scale=ratio * chip_ratio), "source": "ram_tier_scaled",
+ "basis": f"based on {hit['n']} renders on Macs with similar "
+ f"memory, scaled from a different length"}
model_cells = (levels.get("model") or {}).get("cells") or {}
key = _fleet_key(engine, mode, tier, frames_f, speed=speed)
@@ -17135,6 +17430,9 @@ _ANALYTICS_REFUSAL_REASONS = (
# A quality/mode that needs the Q8 pack, chosen on a Mac that hasn't
# downloaded it — an install prompt, not a fault (review 2026-09-02).
("pack_missing", ("isn't downloaded on this mac yet",)),
+ # "Listen to the voice only" on an install whose vocal separator is
+ # missing — an install prompt, not a fault (lip-sync quality, 4.17.x).
+ ("vocal_separator", ("vocal separation is not installed",)),
)
_ANALYTICS_REFUSAL_SLUGS = tuple(s for s, _ in _ANALYTICS_REFUSAL_REASONS)
@@ -17546,33 +17844,50 @@ def _usage_rank(counter: dict, key_name: str, limit: int = 12) -> list[dict]:
return [{key_name: k, "count": v} for k, v in rows[:limit]]
-def _usage_local_report() -> dict:
+def _usage_local_report(range_key: str = STATS_RANGE_DEFAULT) -> dict:
"""Aggregate the local mirror into the dashboard's payload shape.
Deliberately the SAME shape the fleet path produces, so stats.html has
exactly one renderer and the only difference the user sees is the
- `source` label and the note above the tiles."""
+ `source` label and the note above the tiles.
+
+ Day buckets use UTC (time.gmtime), matching the fleet path's HogQL
+ `toDate(timestamp)` (ClickHouse dates are UTC by default) and the
+ GitHub-stats archive's UTC `date` field. This used to bucket by the
+ MACHINE's own local midnight — on Mr Bizarro's Mac that is UTC+2/+3, so
+ the same calendar day could show a different render count depending on
+ whether /stats/usage happened to be serving the local fallback or the
+ fleet view that day. A single-machine report has no meaningful "vs
+ prior period" delta at small counts (2 renders vs 3 reads as "+50%"),
+ so this path leaves deltas out rather than manufacture noise — the
+ fleet path is where deltas matter and where there's enough volume for
+ them to mean something."""
recs = _usage_log_read()
now = time.time()
- d7, d14 = now - 7 * 86400, now - 14 * 86400
+ days = STATS_RANGE_DAYS.get(range_key, STATS_RANGE_DAYS[STATS_RANGE_DEFAULT])
+ range_cutoff = (now - days * 86400) if days else 0.0
+ # Every windowed figure below (boots, engines/H3 share, error rate,
+ # versions/chips/RAM, pack flips) follows the selected range, same as
+ # the fleet path. Only renders_by_day keeps its fixed 30-day chart.
+ d30 = now - 30 * 86400
boots_by_day: dict[str, int] = {}
engines: dict[str, int] = {}
errors: dict[str, int] = {}
+ error_groups: dict[str, dict] = {}
versions: dict[str, int] = {}
chips: dict[str, int] = {}
rams: dict[str, int] = {}
flips: dict[tuple, int] = {}
refusals: dict[str, int] = {}
- renders_7d = ok_14d = fail_14d = 0
- h3_14d = tot_14d = 0
- refused_7d = 0
- active_7d = False
+ renders_in_range = ok_in_range = fail_in_range = 0
+ h3_in_range = tot_in_range = 0
+ refused_in_range = 0
+ active_in_range = False
total_renders = 0
renders_by_day: dict[str, int] = {}
first_boot_ts = None
- d30 = now - 30 * 86400
for rec in recs:
try:
@@ -17581,13 +17896,13 @@ def _usage_local_report() -> dict:
continue
ev = str(rec.get("event") or "")
props = rec.get("props") if isinstance(rec.get("props"), dict) else {}
- if ts >= d7:
- active_7d = True
+ if ts >= range_cutoff:
+ active_in_range = True
if ev == "app_boot":
if first_boot_ts is None or ts < first_boot_ts:
first_boot_ts = ts
- if ts >= d14:
- day = time.strftime("%Y-%m-%d", time.localtime(ts))
+ if ts >= range_cutoff:
+ day = time.strftime("%Y-%m-%d", time.gmtime(ts))
boots_by_day[day] = boots_by_day.get(day, 0) + 1
versions[str(props.get("version") or "unknown")] = \
versions.get(str(props.get("version") or "unknown"), 0) + 1
@@ -17599,23 +17914,32 @@ def _usage_local_report() -> dict:
if ev == "render_completed":
total_renders += 1
if ts >= d30:
- day = time.strftime("%Y-%m-%d", time.localtime(ts))
+ day = time.strftime("%Y-%m-%d", time.gmtime(ts))
renders_by_day[day] = renders_by_day.get(day, 0) + 1
- if ts >= d7:
- renders_7d += 1
- if ts >= d14:
- tot_14d += 1
+ if ts >= range_cutoff:
+ renders_in_range += 1
+ if ts >= range_cutoff:
+ tot_in_range += 1
eng = str(props.get("engine") or "unknown")
engines[eng] = engines.get(eng, 0) + 1
if eng == "h3":
- h3_14d += 1
+ h3_in_range += 1
if ev == "render_completed":
- ok_14d += 1
+ ok_in_range += 1
else:
- fail_14d += 1
- if ev == "render_failed" and ts >= d7:
+ fail_in_range += 1
+ if ev == "render_failed" and ts >= range_cutoff:
sig = str(props.get("error_signature") or "unknown error")
errors[sig] = errors.get(sig, 0) + 1
+ cls = str(props.get("error_class") or "other")
+ g = error_groups.setdefault(cls, {
+ "count": 0, "first_seen": ts, "last_seen": ts,
+ "sigs": {},
+ })
+ g["count"] += 1
+ g["first_seen"] = min(g["first_seen"], ts)
+ g["last_seen"] = max(g["last_seen"], ts)
+ g["sigs"][sig] = g["sigs"].get(sig, 0) + 1
elif ev == "render_refused":
# DELIBERATELY OUTSIDE every render number above. A refusal did
# not render, did not fail and cost no GPU time, so it belongs
@@ -17623,11 +17947,11 @@ def _usage_local_report() -> dict:
# rate — counting it in either is the bug this branch exists to
# prevent. It gets its own tile because "how often do we send
# someone into a wall" is a real question, just a different one.
- if ts >= d7:
- refused_7d += 1
+ if ts >= range_cutoff:
+ refused_in_range += 1
slug = str(props.get("refusal") or "unknown")
refusals[slug] = refusals.get(slug, 0) + 1
- elif ev == "pack_state_change" and ts >= d7:
+ elif ev == "pack_state_change" and ts >= range_cutoff:
k = (str(props.get("pack") or "?"),
bool(props.get("from")), bool(props.get("to")))
flips[k] = flips.get(k, 0) + 1
@@ -17637,25 +17961,47 @@ def _usage_local_report() -> dict:
h3_lost = sum(r["count"] for r in flip_rows
if r["pack"] == "h3" and r["from"] and not r["to"])
+ error_group_rows = []
+ for cls, g in error_groups.items():
+ top_sig = max(g["sigs"].items(), key=lambda kv: kv[1])[0] if g["sigs"] else "unknown error"
+ error_group_rows.append({
+ "error_class": cls,
+ "count": g["count"],
+ "installs": 1, # local mirror is always this one machine
+ # ISO 8601 with a Z suffix — same shape PostHog's timestamp
+ # column returns, so the dashboard's one JS date parser handles
+ # both sources identically.
+ "first_seen": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(g["first_seen"])),
+ "last_seen": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(g["last_seen"])),
+ "top_message": top_sig,
+ "signatures": len(g["sigs"]),
+ })
+ error_group_rows.sort(key=lambda r: (-r["installs"], -r["count"]))
+
return {
"ok": True,
"source": "local",
"generated_at": iso_now(),
"cached": False,
+ "range": range_key,
"note": ("this machine only - add a PostHog query key in Settings "
"for fleet data"),
"tiles": {
- "weekly_active_installs": 1 if active_7d else 0,
+ "weekly_active_installs": 1 if active_in_range else 0,
+ # The stats-v2 tile reads active_in_range (the fleet path's
+ # name); without it the local fallback showed "—" (4.17.3 review).
+ "active_in_range": 1 if active_in_range else 0,
"total_renders": total_renders,
"total_installs": 1 if first_boot_ts else 0,
- "renders_7d": renders_7d,
- "h3_share_pct": round(100.0 * h3_14d / tot_14d, 1) if tot_14d else None,
- "error_rate_pct": (round(100.0 * fail_14d / (ok_14d + fail_14d), 1)
- if (ok_14d + fail_14d) else None),
- "refusals_7d": refused_7d,
+ "renders_in_range": renders_in_range,
+ "h3_share_pct": round(100.0 * h3_in_range / tot_in_range, 1) if tot_in_range else None,
+ "error_rate_pct": (round(100.0 * fail_in_range / (ok_in_range + fail_in_range), 1)
+ if (ok_in_range + fail_in_range) else None),
+ "refusals_in_range": refused_in_range,
},
+ "deltas": {}, # single machine, small counts — see docstring
"growth": _usage_growth_block(
- [(time.strftime("%Y-%m-%d", time.localtime(first_boot_ts)), 1)] if first_boot_ts else [],
+ [(time.strftime("%Y-%m-%d", time.gmtime(first_boot_ts)), 1)] if first_boot_ts else [],
[(d, renders_by_day[d]) for d in sorted(renders_by_day)],
[]),
"boots_by_day": [{"date": d, "count": boots_by_day[d]}
@@ -17663,6 +18009,7 @@ def _usage_local_report() -> dict:
"engines": _usage_rank(engines, "engine", 8),
"top_errors": [{"signature": k, "count": v} for k, v in
sorted(errors.items(), key=lambda kv: (-kv[1], kv[0]))[:5]],
+ "error_groups": error_group_rows,
"top_refusals": [{"refusal": k, "count": v} for k, v in
sorted(refusals.items(),
key=lambda kv: (-kv[1], kv[0]))[:5]],
@@ -17674,97 +18021,182 @@ def _usage_local_report() -> dict:
}
-# HogQL fragments for the fleet view. Kept as a table (not inline strings)
-# so the whole surface the personal API key touches is auditable in one
-# place: eleven read-only aggregate SELECTs over `events`, nothing else.
-# `properties['x']` bracket form throughout — `properties.from` would
-# collide with the SQL keyword in the pack_state_change query.
-_USAGE_FLEET_QUERIES = {
- "wau": "SELECT count(DISTINCT distinct_id) FROM events "
- "WHERE event = 'app_boot' AND timestamp > now() - INTERVAL 7 DAY",
- "dau": "SELECT count(DISTINCT distinct_id) FROM events "
- "WHERE event = 'app_boot' AND timestamp > now() - INTERVAL 1 DAY",
- "boots_by_day":
- "SELECT toDate(timestamp) AS d, count() AS c FROM events "
- "WHERE event = 'app_boot' AND timestamp > now() - INTERVAL 14 DAY "
- "GROUP BY d ORDER BY d",
- "engines":
- "SELECT properties['engine'] AS e, count() AS c FROM events "
- "WHERE event IN ('render_completed', 'render_failed') "
- "AND timestamp > now() - INTERVAL 14 DAY GROUP BY e ORDER BY c DESC",
- "outcomes":
- "SELECT event, count() AS c FROM events "
- "WHERE event IN ('render_completed', 'render_failed') "
- "AND timestamp > now() - INTERVAL 14 DAY GROUP BY event",
- # By INSTALLS first, then by events. Ordered by events alone the tile was
- # owned by one 4.9.3 install with a broken model dir retrying 438 times in
- # a week (160 + 121 + 72 events of three signatures, one distinct_id each)
- # while the errors many people hit sat below the fold (2026-09-08).
- "top_errors":
- "SELECT properties['error_signature'] AS sig, count() AS c, "
- "count(DISTINCT distinct_id) AS people FROM events "
- "WHERE event = 'render_failed' AND timestamp > now() - INTERVAL 7 DAY "
- "GROUP BY sig ORDER BY people DESC, c DESC LIMIT 8",
- # Failure rate per version, so a release that fails more than the one before
- # it is visible the day it ships, and a storm from one install reads as one.
- "failures_by_version":
- "SELECT properties['version'] AS v, countIf(event = 'render_failed') AS failed, "
- "countIf(event = 'render_completed') AS ok, count(DISTINCT distinct_id) AS people "
- "FROM events "
- "WHERE event IN ('render_failed', 'render_completed') "
- "AND timestamp > now() - INTERVAL 7 DAY GROUP BY v ORDER BY failed DESC LIMIT 12",
- # Refusals are a SEPARATE event, which is why none of the queries above
- # needed an `error_class != 'refused'` clause bolted on. That was the
- # deciding argument for a new event name over a new class: an exclusion
- # has to be remembered by every query anyone writes later, here and in
- # PostHog; a separate event is right by default and cannot be forgotten.
- "refusals":
- "SELECT properties['refusal'] AS r, count() AS c, "
- "count(DISTINCT distinct_id) AS people FROM events "
- "WHERE event = 'render_refused' AND timestamp > now() - INTERVAL 7 DAY "
- "GROUP BY r ORDER BY c DESC LIMIT 8",
- "versions":
- "SELECT properties['version'] AS v, count(DISTINCT distinct_id) AS c "
- "FROM events WHERE event = 'app_boot' "
- "AND timestamp > now() - INTERVAL 14 DAY GROUP BY v ORDER BY c DESC LIMIT 12",
- "chips":
- "SELECT properties['chip_family'] AS chip, count(DISTINCT distinct_id) AS c "
- "FROM events WHERE event = 'app_boot' "
- "AND timestamp > now() - INTERVAL 14 DAY GROUP BY chip ORDER BY c DESC LIMIT 12",
- "ram":
- "SELECT properties['ram_gb'] AS ram, count(DISTINCT distinct_id) AS c "
- "FROM events WHERE event = 'app_boot' "
- "AND timestamp > now() - INTERVAL 14 DAY GROUP BY ram ORDER BY c DESC LIMIT 12",
- "pack_flips":
- "SELECT properties['pack'] AS pack, properties['from'] AS was, "
- "properties['to'] AS now_, count() AS c FROM events "
- "WHERE event = 'pack_state_change' AND timestamp > now() - INTERVAL 7 DAY "
- "GROUP BY pack, was, now_ ORDER BY c DESC",
- # ---- Growth (2026-09-06). All-time, no window: the numbers the owner
- # asks for first ("how many renders have we done") and the curves that
- # say whether the app is growing. An install is a distinct_id, and it is
- # NEW on the day of its first boot — app_installed fires once per
- # install but only since it existed, so first-boot is the honest date.
- "total_renders":
- "SELECT count() FROM events WHERE event = 'render_completed'",
- "total_installs":
- "SELECT count(DISTINCT distinct_id) FROM events WHERE event = 'app_boot'",
- "installs_by_day":
- "SELECT d, count() AS c FROM (SELECT distinct_id, toDate(min(timestamp)) AS d "
- "FROM events WHERE event = 'app_boot' GROUP BY distinct_id) "
- "GROUP BY d ORDER BY d",
- "renders_by_day":
- "SELECT toDate(timestamp) AS d, count() AS c FROM events "
- "WHERE event = 'render_completed' AND timestamp > now() - INTERVAL 30 DAY "
- "GROUP BY d ORDER BY d",
- # Complete weeks only: the running week would read as a collapse
- # ("552 → 106") on a Sunday morning.
- "active_by_week":
- "SELECT toStartOfWeek(timestamp) AS w, count(DISTINCT distinct_id) AS c "
- "FROM events WHERE event = 'app_boot' AND timestamp > now() - INTERVAL 12 WEEK "
- "AND toStartOfWeek(timestamp) < toStartOfWeek(now()) "
- "GROUP BY w ORDER BY w",
-}
+# HogQL fragments for the fleet view. Built by a function, not a static
+# dict, because the range control (stats-v2, 2026-09-30) means the "recent
+# activity" queries below no longer scope to a hardcoded 7/14/30-day window
+# — they scope to whichever range the dashboard has selected. And every one
+# carries the owner-exclusion rule: `_analytics_is_test_rig`'s SYS-41 note
+# documented "a fleet query excludes these rows with WHERE NOT test_rig"
+# while not one of these queries actually did — an agent review worktree or
+# a release-gate run with PHOSPHENE_TEST_RIG=1 was silently counted as a
+# real user. Every query is built through _fleet_where[_raw] so a new one
+# can't repeat either omission.
+_TEST_RIG_EXCLUDE = "ifNull(properties['test_rig'], 'false') != 'true'"
+
+
+def _fleet_window_sql(range_key: str, *, prior: bool = False) -> str:
+ """The events-table window fragment for one dashboard range — empty
+ for 'all' (omit the clause: no window, no meaningful "prior" either).
+ `prior=True` asks for the equal-length window immediately before the
+ current one, for "vs prior period" deltas."""
+ days = STATS_RANGE_DAYS.get(range_key, STATS_RANGE_DAYS[STATS_RANGE_DEFAULT])
+ if not days:
+ return ""
+ if prior:
+ return (f"timestamp > now() - INTERVAL {int(days) * 2} DAY "
+ f"AND timestamp <= now() - INTERVAL {int(days)} DAY")
+ return f"timestamp > now() - INTERVAL {int(days)} DAY"
+
+
+def _fleet_where_raw(event_clause: str, window_sql: str = "") -> str:
+ """WHERE body from a literal window fragment (or none) plus the
+ owner-exclusion rule. For the handful of queries whose window is a
+ fixed concept (wau's 7 days, dau's 1 day) rather than the dashboard's
+ selected range."""
+ parts = [event_clause]
+ if window_sql:
+ parts.append(window_sql)
+ parts.append(_TEST_RIG_EXCLUDE)
+ return " AND ".join(parts)
+
+
+def _fleet_where(event_clause: str, range_key: str, *, prior: bool = False) -> str:
+ """WHERE body scoped to the dashboard's selected range, plus the
+ owner-exclusion rule. The one entry point every range-aware fleet
+ query goes through."""
+ return _fleet_where_raw(event_clause, _fleet_window_sql(range_key, prior=prior))
+
+
+def _fleet_queries(range_key: str) -> dict[str, str]:
+ """HogQL fragments for the fleet view, rebuilt per dashboard range.
+
+ `*_prior` entries mirror a range-scoped query over the immediately
+ preceding equal-length window, for "vs prior period" deltas; absent
+ (empty window) when range_key is 'all'. `error_groups` groups
+ render_failed by the closed error_class taxonomy — count, distinct
+ installs affected, first/last seen, and the most frequent message in
+ that class — for the collapsible Errors section."""
+ ev_render = "event IN ('render_completed', 'render_failed')"
+ return {
+ "wau": "SELECT count(DISTINCT distinct_id) FROM events WHERE "
+ + _fleet_where_raw("event = 'app_boot'",
+ "timestamp > now() - INTERVAL 7 DAY"),
+ "dau": "SELECT count(DISTINCT distinct_id) FROM events WHERE "
+ + _fleet_where_raw("event = 'app_boot'",
+ "timestamp > now() - INTERVAL 1 DAY"),
+ "active_in_range": "SELECT count(DISTINCT distinct_id) FROM events WHERE "
+ + _fleet_where("event = 'app_boot'", range_key),
+ "active_in_range_prior": "SELECT count(DISTINCT distinct_id) FROM events WHERE "
+ + _fleet_where("event = 'app_boot'", range_key, prior=True),
+ "boots_by_day":
+ "SELECT toDate(timestamp) AS d, count() AS c FROM events WHERE "
+ + _fleet_where("event = 'app_boot'", range_key)
+ + " GROUP BY d ORDER BY d",
+ "engines":
+ "SELECT properties['engine'] AS e, count() AS c FROM events WHERE "
+ + _fleet_where(ev_render, range_key) + " GROUP BY e ORDER BY c DESC",
+ "outcomes":
+ "SELECT event, count() AS c FROM events WHERE "
+ + _fleet_where(ev_render, range_key) + " GROUP BY event",
+ "outcomes_prior":
+ "SELECT event, count() AS c FROM events WHERE "
+ + _fleet_where(ev_render, range_key, prior=True) + " GROUP BY event",
+ # By INSTALLS first, then by events. Ordered by events alone the tile
+ # was owned by one 4.9.3 install with a broken model dir retrying 438
+ # times in a week (160 + 121 + 72 events of three signatures, one
+ # distinct_id each) while the errors many people hit sat below the
+ # fold (2026-09-08).
+ "top_errors":
+ "SELECT properties['error_signature'] AS sig, count() AS c, "
+ "count(DISTINCT distinct_id) AS people FROM events WHERE "
+ + _fleet_where("event = 'render_failed'", range_key)
+ + " GROUP BY sig ORDER BY people DESC, c DESC LIMIT 8",
+ # Grouped by the closed error_class taxonomy (19 values — see
+ # docs/ANALYTICS.md) instead of by free-text signature: a class is
+ # what the Errors section's redesign groups by, so the LIMIT only
+ # needs to exceed the taxonomy size. sig_cnt is a per-(class,sig)
+ # window count so argMax can pick the most-frequent message inside
+ # each class without a second query.
+ "error_groups":
+ "SELECT class, count() AS total, count(DISTINCT distinct_id) AS installs, "
+ "min(timestamp) AS first_seen, max(timestamp) AS last_seen, "
+ "argMax(sig, sig_cnt) AS top_message FROM ("
+ "SELECT properties['error_class'] AS class, "
+ "properties['error_signature'] AS sig, distinct_id, timestamp, "
+ "count() OVER (PARTITION BY properties['error_class'], "
+ "properties['error_signature']) AS sig_cnt FROM events WHERE "
+ + _fleet_where("event = 'render_failed'", range_key)
+ + ") GROUP BY class ORDER BY installs DESC, total DESC LIMIT 25",
+ # Failure rate per version, so a release that fails more than the one
+ # before it is visible the day it ships, and a storm from one install
+ # reads as one.
+ "failures_by_version":
+ "SELECT properties['version'] AS v, countIf(event = 'render_failed') AS failed, "
+ "countIf(event = 'render_completed') AS ok, count(DISTINCT distinct_id) AS people "
+ "FROM events WHERE "
+ + _fleet_where("event IN ('render_failed', 'render_completed')", range_key)
+ + " GROUP BY v ORDER BY failed DESC LIMIT 12",
+ # Refusals are a SEPARATE event, which is why none of the queries
+ # above needed an `error_class != 'refused'` clause bolted on. That
+ # was the deciding argument for a new event name over a new class: an
+ # exclusion has to be remembered by every query anyone writes later,
+ # here and in PostHog; a separate event is right by default and
+ # cannot be forgotten.
+ "refusals":
+ "SELECT properties['refusal'] AS r, count() AS c, "
+ "count(DISTINCT distinct_id) AS people FROM events WHERE "
+ + _fleet_where("event = 'render_refused'", range_key)
+ + " GROUP BY r ORDER BY c DESC LIMIT 8",
+ "versions":
+ "SELECT properties['version'] AS v, count(DISTINCT distinct_id) AS c "
+ "FROM events WHERE " + _fleet_where("event = 'app_boot'", range_key)
+ + " GROUP BY v ORDER BY c DESC LIMIT 12",
+ "chips":
+ "SELECT properties['chip_family'] AS chip, count(DISTINCT distinct_id) AS c "
+ "FROM events WHERE " + _fleet_where("event = 'app_boot'", range_key)
+ + " GROUP BY chip ORDER BY c DESC LIMIT 12",
+ "ram":
+ "SELECT properties['ram_gb'] AS ram, count(DISTINCT distinct_id) AS c "
+ "FROM events WHERE " + _fleet_where("event = 'app_boot'", range_key)
+ + " GROUP BY ram ORDER BY c DESC LIMIT 12",
+ "pack_flips":
+ "SELECT properties['pack'] AS pack, properties['from'] AS was, "
+ "properties['to'] AS now_, count() AS c FROM events WHERE "
+ + _fleet_where("event = 'pack_state_change'", range_key)
+ + " GROUP BY pack, was, now_ ORDER BY c DESC",
+ # ---- Growth (2026-09-06). All-time, no window: the numbers the
+ # owner asks for first ("how many renders have we done") and the
+ # curves that say whether the app is growing — deliberately NOT tied
+ # to the dashboard's range control. An install is a distinct_id, and
+ # it is NEW on the day of its first boot — app_installed fires once
+ # per install but only since it existed, so first-boot is the honest
+ # date.
+ "total_renders":
+ "SELECT count() FROM events WHERE "
+ + _fleet_where_raw("event = 'render_completed'"),
+ "total_installs":
+ "SELECT count(DISTINCT distinct_id) FROM events WHERE "
+ + _fleet_where_raw("event = 'app_boot'"),
+ "installs_by_day":
+ "SELECT d, count() AS c FROM (SELECT distinct_id, toDate(min(timestamp)) AS d "
+ "FROM events WHERE " + _fleet_where_raw("event = 'app_boot'")
+ + " GROUP BY distinct_id) GROUP BY d ORDER BY d",
+ "renders_by_day":
+ "SELECT toDate(timestamp) AS d, count() AS c FROM events WHERE "
+ + _fleet_where("event = 'render_completed'", range_key)
+ + " GROUP BY d ORDER BY d",
+ # Complete weeks only: the running week would read as a collapse
+ # ("552 → 106") on a Sunday morning. Fixed 12-week context window,
+ # independent of the dashboard's range control on purpose — this is
+ # an evergreen "is the app growing" curve, not a range-scoped tile.
+ "active_by_week":
+ "SELECT toStartOfWeek(timestamp) AS w, count(DISTINCT distinct_id) AS c "
+ "FROM events WHERE "
+ + _fleet_where_raw("event = 'app_boot'",
+ "timestamp > now() - INTERVAL 12 WEEK "
+ "AND toStartOfWeek(timestamp) < toStartOfWeek(now())")
+ + " GROUP BY w ORDER BY w",
+ }
def _usage_growth_block(installs_by_day: list, renders_by_day: list,
@@ -17807,7 +18239,21 @@ def _usage_fleet_query_one(hogql: str, key: str) -> list:
return rows if isinstance(rows, list) else []
-def _usage_fleet_report() -> dict | None:
+def _pct_delta(cur, prev) -> float | None:
+ """Percent change of cur vs prev, or None when it wouldn't mean
+ anything (missing data, or no prior-period baseline to compare to)."""
+ if cur is None or prev is None:
+ return None
+ try:
+ cur, prev = float(cur), float(prev)
+ except (TypeError, ValueError):
+ return None
+ if prev == 0:
+ return None
+ return round(100.0 * (cur - prev) / prev, 1)
+
+
+def _usage_fleet_report(range_key: str = STATS_RANGE_DEFAULT) -> dict | None:
"""Build the fleet payload, or None when no query key is configured.
Every sub-query is independent: one failing (rate limit, schema drift,
@@ -17817,15 +18263,16 @@ def _usage_fleet_report() -> dict | None:
key = _analytics_query_key()
if not key:
return None
+ queries = _fleet_queries(range_key)
res: dict[str, list] = {}
failures = 0
- for name, hogql in _USAGE_FLEET_QUERIES.items():
+ for name, hogql in queries.items():
try:
res[name] = _usage_fleet_query_one(hogql, key)
except Exception:
res[name] = []
failures += 1
- if failures == len(_USAGE_FLEET_QUERIES):
+ if failures == len(queries):
return None
def _scalar(name):
@@ -17835,8 +18282,11 @@ def _usage_fleet_report() -> dict | None:
except (IndexError, TypeError):
return None
- outcomes = {str(r[0]): int(r[1]) for r in (res.get("outcomes") or [])
+ def _outcomes(name):
+ rows = {str(r[0]): int(r[1]) for r in (res.get(name) or [])
if isinstance(r, (list, tuple)) and len(r) >= 2}
+ return rows.get("render_completed", 0), rows.get("render_failed", 0)
+
# `people` rides along because a refusal's whole question is "how many
# DIFFERENT people did we send into this wall" — 65 events from 16
# people is a product bug; 65 from one person is a bookmark.
@@ -17844,8 +18294,8 @@ def _usage_fleet_report() -> dict | None:
"people": int(r[2]) if len(r) >= 3 else 0}
for r in (res.get("refusals") or [])
if isinstance(r, (list, tuple)) and len(r) >= 2]
- ok_n = outcomes.get("render_completed", 0)
- fail_n = outcomes.get("render_failed", 0)
+ ok_n, fail_n = _outcomes("outcomes")
+ ok_prior, fail_prior = _outcomes("outcomes_prior")
engines = [{"engine": str(r[0] or "unknown"), "count": int(r[1])}
for r in (res.get("engines") or [])
if isinstance(r, (list, tuple)) and len(r) >= 2]
@@ -17865,11 +18315,32 @@ def _usage_fleet_report() -> dict | None:
h3_lost = sum(r["count"] for r in flip_rows
if r["pack"] == "h3" and r["from"] and not r["to"])
+ active_n = _scalar("active_in_range")
+ active_prior_n = _scalar("active_in_range_prior")
+ error_rate_n = (round(100.0 * fail_n / (ok_n + fail_n), 1)
+ if (ok_n + fail_n) else None)
+ error_rate_prior = (round(100.0 * fail_prior / (ok_prior + fail_prior), 1)
+ if (ok_prior + fail_prior) else None)
+
+ error_groups = []
+ for r in (res.get("error_groups") or []):
+ if not (isinstance(r, (list, tuple)) and len(r) >= 6):
+ continue
+ error_groups.append({
+ "error_class": str(r[0] or "other"),
+ "count": int(r[1] or 0),
+ "installs": int(r[2] or 0),
+ "first_seen": str(r[3] or ""),
+ "last_seen": str(r[4] or ""),
+ "top_message": str(r[5] or "unknown error"),
+ })
+
return {
"ok": True,
"source": "fleet",
"generated_at": iso_now(),
"cached": False,
+ "range": range_key,
"note": "",
"partial": failures > 0,
"tiles": {
@@ -17877,13 +18348,31 @@ def _usage_fleet_report() -> dict | None:
"daily_active_installs": _scalar("dau"),
"total_renders": _scalar("total_renders"),
"total_installs": _scalar("total_installs"),
- "renders_7d": ok_n + fail_n,
+ "active_in_range": active_n,
+ "renders_in_range": ok_n + fail_n,
"h3_share_pct": round(100.0 * h3 / tot, 1) if tot else None,
- "error_rate_pct": (round(100.0 * fail_n / (ok_n + fail_n), 1)
- if (ok_n + fail_n) else None),
- # Not in renders_7d and not in error_rate_pct — see the local
- # aggregator's render_refused branch for why.
- "refusals_7d": sum(r["count"] for r in refusals),
+ "error_rate_pct": error_rate_n,
+ # Not in renders_in_range and not in error_rate_pct — see the
+ # local aggregator's render_refused branch for why.
+ "refusals_in_range": sum(r["count"] for r in refusals),
+ },
+ # None (not zeroed) for range_key == "all". _fleet_window_sql
+ # returns an EMPTY clause for both the current and prior "all"
+ # queries (there is no window to bound them by), which means
+ # ok_prior/fail_prior/active_prior_n above are the SAME all-time
+ # totals as the current ones — _pct_delta(x, x) computes a real
+ # 0.0, not "no baseline". Gate on range_key explicitly rather than
+ # trust the arithmetic: "all time" has no prior period, full stop.
+ "deltas": {} if range_key == "all" else {
+ "renders_in_range_pct": _pct_delta(ok_n + fail_n, ok_prior + fail_prior),
+ "active_in_range_pct": _pct_delta(active_n, active_prior_n),
+ "error_rate_pp": (round(error_rate_n - error_rate_prior, 1)
+ if error_rate_n is not None and error_rate_prior is not None
+ else None),
+ # Raw failure-count trend for the Errors section header — a
+ # separate question from the RATE above (fewer installs total
+ # can raise the rate while the raw count falls).
+ "errors_count_pct": _pct_delta(fail_n, fail_prior),
},
"growth": _usage_growth_block(
[(r[0], r[1]) for r in (res.get("installs_by_day") or [])
@@ -17900,6 +18389,7 @@ def _usage_fleet_report() -> dict | None:
"people": int(r[2]) if len(r) > 2 and r[2] is not None else None}
for r in (res.get("top_errors") or [])
if isinstance(r, (list, tuple)) and len(r) >= 2],
+ "error_groups": error_groups,
"failures_by_version": [{"version": str(r[0] or "unknown"), "failed": int(r[1] or 0),
"ok": int(r[2] or 0), "people": int(r[3] or 0),
"count": int(r[1] or 0),
@@ -17932,12 +18422,15 @@ def _usage_attach_local(report: dict) -> dict:
"how much have I used it", and neither can be mistaken for the other.
"""
try:
- local = _usage_local_report()
+ # Fixed 7-day window regardless of the dashboard's selected range —
+ # this block is an evergreen "how much have I used it" reference
+ # (same idea as the fleet tiles' wau), not the range-scoped view.
+ local = _usage_local_report("7d")
except Exception:
return report
report["machine"] = {
"total_renders": (local.get("tiles") or {}).get("total_renders"),
- "renders_7d": (local.get("tiles") or {}).get("renders_7d"),
+ "renders_7d": (local.get("tiles") or {}).get("renders_in_range"),
"error_rate_pct": (local.get("tiles") or {}).get("error_rate_pct"),
"first_day": (((local.get("growth") or {}).get("installs_by_day") or [{}])[0]
or {}).get("date"),
@@ -17945,29 +18438,38 @@ def _usage_attach_local(report: dict) -> dict:
return report
-def _usage_report(force: bool = False) -> dict:
+def _usage_report(force: bool = False, range_key: str = STATS_RANGE_DEFAULT) -> dict:
"""What GET /stats/usage returns. Fleet when a query key is configured
and the 6 h cache is stale; otherwise the cache; otherwise local.
Either way the payload carries `machine` (this Mac) AND says whether the
fleet half is available — `fleet_blocked` is "no_key" or "query_failed",
so the dashboard can show the fleet tile as unknown with a remedy instead
- of quietly substituting a local number under a fleet label."""
+ of quietly substituting a local number under a fleet label.
+
+ Cached PER RANGE (stats-v2, 2026-09-30): USAGE_FLEET_CACHE on disk holds
+ one entry per range key, each with its own `_fetched_at`, so switching
+ the dashboard's range control doesn't serve 7-day numbers under a
+ 30-day label or force a fresh PostHog round trip on every click — only
+ the FIRST time a given range goes stale within the 6 h TTL."""
+ range_key = range_key if range_key in STATS_RANGE_DAYS else STATS_RANGE_DEFAULT
with _USAGE_FLEET_LOCK:
if _analytics_query_key():
if not force:
try:
- cached = json.loads(USAGE_FLEET_CACHE.read_text(encoding="utf-8"))
- if (time.time() - float(cached.get("_fetched_at") or 0)
+ all_cached = json.loads(USAGE_FLEET_CACHE.read_text(encoding="utf-8"))
+ cached = all_cached.get(range_key) if isinstance(all_cached, dict) else None
+ if (cached and time.time() - float(cached.get("_fetched_at") or 0)
< USAGE_FLEET_TTL_SEC):
+ cached = dict(cached)
cached["cached"] = True
cached["fleet_blocked"] = ""
return _usage_attach_local(cached)
- except (OSError, ValueError, json.JSONDecodeError):
+ except (OSError, ValueError, json.JSONDecodeError, AttributeError):
pass
fleet = None
try:
- fleet = _usage_fleet_report()
+ fleet = _usage_fleet_report(range_key)
except Exception:
fleet = None
if fleet:
@@ -17975,17 +18477,24 @@ def _usage_report(force: bool = False) -> dict:
fleet["fleet_blocked"] = ""
try:
_ensure_state_dir()
+ try:
+ all_cached = json.loads(USAGE_FLEET_CACHE.read_text(encoding="utf-8"))
+ if not isinstance(all_cached, dict):
+ all_cached = {}
+ except (OSError, ValueError, json.JSONDecodeError):
+ all_cached = {}
+ all_cached[range_key] = fleet
atomic_write_text(USAGE_FLEET_CACHE,
- json.dumps(fleet, indent=2))
+ json.dumps(all_cached, indent=2))
except Exception:
pass
return _usage_attach_local(fleet)
- local = _usage_local_report()
+ local = _usage_local_report(range_key)
local["fleet_blocked"] = "query_failed"
local["warning"] = ("PostHog query failed - showing this machine "
"only. Check the personal API key in Settings.")
return _usage_attach_local(local)
- local = _usage_local_report()
+ local = _usage_local_report(range_key)
local["fleet_blocked"] = "no_key"
return _usage_attach_local(local)
@@ -20208,6 +20717,30 @@ class WarmHelper:
)
return self._dispatch_run_event(ev)
+ # 4.17.3 (fleet): "helper pipe closed without an event; returncode=None"
+ # — 23 failed renders over 30 days on 15 installs, three of them on
+ # 4.17.2 right after a GPU-watchdog crash. The helper's stdout reaches
+ # EOF the instant the kernel tears the process down, a moment BEFORE
+ # the exit status can be reaped, so a bare poll() lost that race and
+ # returned None: the user got a message naming nothing, and the Now
+ # card offered no remedy, for what was really a SIGABRT (watchdog) or
+ # SIGKILL (out of memory) that the branch below knows how to explain.
+ # Wait briefly for the real exit status instead of sampling it once.
+ REAP_WAIT_SEC = 5.0
+
+ def _reap_returncode(self, proc) -> int | None:
+ if proc is None:
+ return None
+ rc = proc.poll()
+ if rc is not None:
+ return rc
+ try:
+ return proc.wait(timeout=self.REAP_WAIT_SEC)
+ except subprocess.TimeoutExpired:
+ return None
+ except Exception: # noqa: BLE001
+ return proc.poll()
+
def _dispatch_run_event(self, ev: dict | None) -> dict:
if ev is None:
# Pipe closed without an event. peanut review correction: don't
@@ -20216,7 +20749,7 @@ class WarmHelper:
# native-level abort. Inspect proc.returncode to actually name
# the signal so users have a real datapoint to share.
proc = self.proc
- rc = proc.poll() if proc else None
+ rc = self._reap_returncode(proc)
if rc is not None and rc < 0:
sig_num = -rc
try:
@@ -21776,11 +22309,8 @@ def sb_lipsync_retake_plan(shots: list, scores: dict, attempts: dict,
used = int(attempts.get(n) or 0)
if used >= limit:
continue
- try:
- base = int(s.get("seed"))
- except (TypeError, ValueError):
- base = 0
- out.append((n, base + 211 * (used + 1)))
+ base = max(0, normalize_seed(s.get("seed")))
+ out.append((n, normalize_seed(base + 211 * (used + 1))))
return out
@@ -22429,6 +22959,60 @@ def take_estimate_minutes(engine: str, quality: str, seconds) -> float | None:
TAKE_LIGHT_DRIFT_RETAKES = 1
+# 4.17.3 (fleet): MLX's mx.random.seed() takes an unsigned 64-bit int and
+# nothing else — a negative number (other than our own -1 = random) or one of
+# 2**64 and up dies inside the engine with "seed(): incompatible function
+# arguments. The following argument types are supported: ...", which names
+# nothing the user typed. The Seed box is free text, so a 20-digit seed pasted
+# from another tool, or "-5", reached it untouched (22 failed renders across
+# 4.6.0 -> 4.17.2, every one retried with the same seed). Text that isn't a
+# number at all ("abc") died one step earlier with "invalid literal for
+# int()". Every seed now passes through here at the panel boundary, and the
+# helper re-applies the same rule (_coerce_seed) for jobs saved before this.
+#
+# The ceiling is 2**63, not 2**64, on purpose: windows, extends, retakes and
+# image batches add small offsets (seed + k, + 101, + 211 * attempt) and
+# must never be pushed over the engine's limit by our own arithmetic.
+SEED_LIMIT = 2 ** 63
+
+
+def normalize_seed(raw: object) -> int:
+ """-1 (random) or a seed in [0, SEED_LIMIT) that every engine accepts.
+
+ Empty, -1, "random" or text that is not a whole number -> -1 (random,
+ the panel's own default). An out-of-range number maps DETERMINISTICALLY
+ (|n| mod SEED_LIMIT), so a pinned seed stays repeatable — the same typed
+ value always renders the same clip, and the sidecar's seed_used records
+ the number that was actually used."""
+ if raw is None or isinstance(raw, bool):
+ return -1
+ if isinstance(raw, float):
+ if raw != raw or raw in (float("inf"), float("-inf")) or not raw.is_integer():
+ return -1
+ n = int(raw)
+ elif isinstance(raw, int):
+ n = raw
+ else:
+ s = str(raw).strip().replace("_", "").replace(",", "").replace(" ", "")
+ if s.lower() in ("", "-1", "random", "none", "null"):
+ return -1
+ try:
+ n = int(s)
+ except ValueError:
+ try:
+ import decimal as _dec
+ d = _dec.Decimal(s)
+ except (ArithmeticError, ValueError):
+ return -1
+ if not d.is_finite() or d != d.to_integral_value():
+ return -1
+ n = int(d)
+ if n == -1:
+ return -1
+ n = abs(n)
+ return n % SEED_LIMIT if n >= SEED_LIMIT else n
+
+
def _take_retry_seed(original: object, offset: int) -> str:
"""The seed a take retry (light-drift or lip-sync) should submit.
@@ -22440,13 +23024,10 @@ def _take_retry_seed(original: object, offset: int) -> str:
valid int), so the deterministic branch ran unconditionally and every
random take's retakes landed on the exact same seed, every time, on
every install (VA-16)."""
- raw = str(original if original is not None else "-1").strip()
- if raw in ("", "-1"):
- return "-1"
- try:
- return str(int(raw) + int(offset))
- except (TypeError, ValueError):
+ base = normalize_seed(original)
+ if base < 0:
return "-1"
+ return str(normalize_seed(base + int(offset)))
def take_estimate_minutes_worst(engine: str, quality: str, seconds) -> float | None:
@@ -28772,38 +29353,83 @@ def a2v_length_refusal(frames: int, cap: int) -> str:
#
# `audio_stem` names a stem the caller already has (the music-video route
# passes one for the whole film). `audio_stem_auto` asks the panel to make one
-# with demucs, and is allowed to fail: a missing optional tool becomes a NOTE,
-# never a refused render.
+# with the VOCAL SEPARATOR (demucs, run through scripts/a2v_separate.py in the
+# engine venv). It is part of every install and every Update
+# (scripts/pinokio/a2v_stems_deps.sh); the panel can also install it itself.
+#
+# NEVER A SILENT FALLBACK. Until 4.17 a missing or broken separator turned
+# into one line in the job log and a render conditioned on the FULL MIX -
+# which is the render "Listen to the voice only" exists to prevent, and which
+# on a real ballad barely opened the mouth for twelve seconds. Nothing
+# installed the separator (the script was run-it-yourself), and the one a user
+# could install died at the very end: demucs 4.0.1's CLI saves through
+# torchaudio, which since 2.9 needs torchcodec. So every user asking for the
+# voice got the mix, told only in a log line. Now: missing = the queue says
+# so and offers the install; failed = the job fails with the cause. A user
+# who wants the mix unticks the box.
A2V_STEM_DIR = "a2v_stems"
A2V_STEM_TIMEOUT_S = 900
+A2V_SEPARATOR_MODEL = "htdemucs"
+# The torch.hub checkpoint htdemucs loads (demucs/remote/files.txt). Kept
+# here so the panel can say "ready" without importing torch.
+A2V_SEPARATOR_WEIGHTS = "955717e8-8726e21a.th"
+A2V_SEPARATOR_RUNNER = ROOT / "scripts" / "a2v_separate.py"
+A2V_SEPARATOR_INSTALLER = "scripts/pinokio/a2v_stems_deps.sh"
A2V_STEM_MISSING_NOTE = (
- "Voice-only is on but demucs is not installed, so this clip was "
- "conditioned on the full mix instead. Run scripts/pinokio/"
- "a2v_stems_deps.sh once (from a Terminal, inside this install's "
- "engine venv) to add vocal separation, then try again."
-)
-
-
-def _resolve_demucs() -> Path | None:
- """The demucs executable this panel may use, or None.
+ "Vocal separation is not installed, so \u201cListen to the voice only\u201d "
+ "cannot run. Install it from the Lip-sync form (about 90 MB, once), or "
+ "untick \u201cListen to the voice only\u201d to render against the full mix.")
+
+
+def a2v_separator_torch_home() -> Path:
+ """Where the separator's weights live: with the rest of Phosphene's
+ weights, not in a per-user torch cache a clean-up can empty."""
+ return MODELS_DIR / "demucs"
+
+
+def _a2v_separator_site_packages() -> list[Path]:
+ venv = HELPER_PYTHON.parent.parent
+ return sorted(venv.glob("lib/python3*/site-packages"))
+
+
+def a2v_separator_status() -> dict:
+ """Is "Listen to the voice only" able to run on this install?
+
+ File checks only - no torch import, so /status can afford it. `ready`
+ needs the demucs package AND torch in the engine venv; the weights are
+ fetched by the installer, and fetched on first use if they are not."""
+ sites = _a2v_separator_site_packages()
+ package = any((s / "demucs" / "apply.py").is_file() for s in sites)
+ torch = any((s / "torch" / "__init__.py").is_file() for s in sites)
+ weights = (a2v_separator_torch_home() / "hub" / "checkpoints"
+ / A2V_SEPARATOR_WEIGHTS).is_file()
+ ready = package and torch and A2V_SEPARATOR_RUNNER.is_file()
+ with A2V_SEPARATOR_INSTALL_LOCK:
+ install = {k: v for k, v in A2V_SEPARATOR_INSTALL.items() if k != "log"}
+ install["log"] = list(A2V_SEPARATOR_INSTALL.get("log") or [])[-6:]
+ return {"ready": ready, "package": package, "torch": torch,
+ "weights": weights, "model": A2V_SEPARATOR_MODEL,
+ "install": install}
+
+
+def _a2v_separator_command() -> list[str] | None:
+ """The command prefix that separates a song, or None when this install
+ cannot. Only what OUR installer provides counts: the engine venv's own
+ interpreter running our own runner. Some other project's demucs on this
+ Mac is not a dependency of Phosphene."""
+ if not a2v_separator_status()["ready"]:
+ return None
+ return [str(HELPER_PYTHON), str(A2V_SEPARATOR_RUNNER),
+ "--ffmpeg", str(FFMPEG), "--model", A2V_SEPARATOR_MODEL]
- ONLY TOOLS AN INSTALL SCRIPT CAN PROVIDE. The engine venv's own bin comes
- first - that is where `scripts/pinokio/a2v_stems_deps.sh` puts it - then
- the ordinary resolver (env override, PATH, Pinokio's tool folders,
- Homebrew). Some other project's virtualenv on this Mac is not a dependency
- of Phosphene and must never become one by accident, which is why nothing
- here reaches outside those.
- `_resolve_tool` returns a LAST-RESORT path that need not exist, so the
- result is checked before it is believed: a separator that is not there has
- to read as "not installed" at plan time, never as a command that dies
- twenty minutes into a render.
- """
- beside = HELPER_PYTHON.parent / "demucs"
- if beside.is_file():
- return beside
- cand = _resolve_tool("demucs", "PHOSPHENE_DEMUCS")
- return cand if cand.is_file() else None
+def _a2v_separator_env() -> dict:
+ env = {k: v for k, v in os.environ.items()
+ if k not in ("PYTORCH_ENABLE_MPS_FALLBACK", "PYTORCH_MPS_FAST_MATH",
+ "PYTHONPATH", "PYTHONHOME")}
+ env["TORCH_HOME"] = str(a2v_separator_torch_home())
+ env["PYTHONUNBUFFERED"] = "1"
+ return env
def _a2v_stem_cache_path(audio_src: str) -> Path:
@@ -28820,22 +29446,18 @@ def _a2v_stem_cache_path(audio_src: str) -> Path:
return STATE_DIR / A2V_STEM_DIR / digest / "vocals.wav"
-def _a2v_separate_vocals(audio_src: str, demucs: Path) -> Path:
- """Separate the vocal out of `audio_src` with demucs. Cached; raises on
- failure so the caller can turn it into a note.
-
- TRACKED, because Stop has to reach it. Separation is minutes of CPU at the
- front of a render, and a bare `subprocess.run` is invisible to
- `stop_current_job`: pressing Stop killed the helper and left demucs
- grinding on, with the queue held by a job the user had already cancelled,
- until it finished or the 900 s timeout fired (Codex review, 2026-09-22).
- `run_tracked_subprocess` registers the child's process group under the key
- Stop already kills, refuses to start after Stop, and raises `JobCancelled`
- when Stop ended it — which is NOT a separation failure and must not be
- turned into one. It also states the text-mode trio itself, including
- `errors="replace"`: a strict UTF-8 decode of another program's output
- would end the render with a codec error no user could act on, and demucs
- prints a progress bar (the fleet has 42 of those from ffmpeg alone).
+def _a2v_separate_vocals(audio_src: str, separator: list[str]) -> Path:
+ """Separate the vocal out of `audio_src`. Cached; raises on failure.
+
+ TRACKED, because Stop has to reach it. Separation is up to a minute of CPU
+ at the front of a render, and a bare `subprocess.run` is invisible to
+ `stop_current_job`: pressing Stop killed the helper and left the separator
+ grinding on, with the queue held by a job the user had already cancelled
+ (Codex review, 2026-09-22). `run_tracked_subprocess` registers the child's
+ process group under the key Stop already kills, refuses to start after
+ Stop, and raises `JobCancelled` when Stop ended it - which is NOT a
+ separation failure. It also states the text-mode trio itself, including
+ `errors="replace"`.
"""
cached = _a2v_stem_cache_path(audio_src)
if cached.is_file() and cached.stat().st_size > 0:
@@ -28843,55 +29465,175 @@ def _a2v_separate_vocals(audio_src: str, demucs: Path) -> Path:
work = cached.parent / "work"
work.mkdir(parents=True, exist_ok=True)
try:
+ out = work / "vocals.wav"
proc = run_tracked_subprocess(
- [str(demucs), "--two-stems=vocals", "-o", str(work), str(audio_src)],
+ [*separator, "--in", str(audio_src), "--out", str(out)],
pgid_key="mux_pgid", label="the vocal separation",
- job=_thread_job(), timeout=A2V_STEM_TIMEOUT_S)
+ job=_thread_job(), timeout=A2V_STEM_TIMEOUT_S,
+ env=_a2v_separator_env())
if proc.returncode != 0:
- tail = (proc.stderr or proc.stdout or "").strip().splitlines()[-1:]
- raise RuntimeError(f"demucs failed: {tail[0] if tail else 'no output'}")
- found = sorted(work.rglob("vocals.*"))
- if not found:
- raise RuntimeError("demucs wrote no vocals stem")
+ lines = (proc.stderr or proc.stdout or "").strip().splitlines()
+ reason = next((l for l in reversed(lines) if l.strip()
+ and not l.startswith((" ", "Traceback"))), "no output")
+ raise RuntimeError(reason[:300])
+ if not out.is_file() or out.stat().st_size <= 44:
+ raise RuntimeError("the separator wrote no vocal")
cached.parent.mkdir(parents=True, exist_ok=True)
- shutil.move(str(found[0]), str(cached))
+ shutil.move(str(out), str(cached))
finally:
- # Including on Stop: a killed separation leaves half a model's output
- # behind, and the next attempt must not find it.
+ # Including on Stop: a killed separation leaves half a file behind,
+ # and the next attempt must not find it.
shutil.rmtree(work, ignore_errors=True)
return cached
+def a2v_wants_stem(params: dict) -> bool:
+ return str(params.get("audio_stem_auto") or "").strip().lower() \
+ in ("1", "true", "on", "yes")
+
+
+def a2v_stem_refusal(params: dict) -> str | None:
+ """Queue-time check: the message when this a2v job asks for the voice
+ alone and this install cannot separate one. None = fine to queue."""
+ if str(params.get("mode") or "") != "a2v":
+ return None
+ if str(params.get("audio_stem") or "").strip() or not a2v_wants_stem(params):
+ return None
+ return None if _a2v_separator_command() else A2V_STEM_MISSING_NOTE
+
+
def a2v_conditioning_audio(params: dict, audio_src: str) -> tuple[str, str]:
"""(the waveform the model listens to, a note for the user).
- The note is empty when there is nothing to say. An explicit `audio_stem`
- that is not a file RAISES - it is a typo in something the caller wrote,
- and silently rendering the full mix would hide it. `audio_stem_auto` never
- raises: the optional tool is optional.
- """
+ An explicit `audio_stem` that is not a file RAISES - it is a typo in
+ something the caller wrote. `audio_stem_auto` with no separator, or a
+ separation that fails, RAISES too: the user asked for the voice, and a
+ render of the full mix is the thing they were avoiding (see above).
+ The note is only ever informational."""
stem = str(params.get("audio_stem") or "").strip()
if stem:
if not Path(stem).is_file():
raise RuntimeError(f"vocal stem not found: {stem}")
return stem, ""
- want_auto = str(params.get("audio_stem_auto") or "").strip().lower() \
- in ("1", "true", "on", "yes")
- if not want_auto:
+ if not a2v_wants_stem(params):
return audio_src, ""
- demucs = _resolve_demucs()
- if demucs is None:
- return audio_src, A2V_STEM_MISSING_NOTE
+ separator = _a2v_separator_command()
+ if separator is None:
+ raise RenderRefused("vocal_separator", A2V_STEM_MISSING_NOTE)
try:
- return str(_a2v_separate_vocals(audio_src, demucs)), ""
+ return (str(_a2v_separate_vocals(audio_src, separator)),
+ "the model listens to the separated vocal")
except JobCancelled:
- # The user stopped the job. That is not a tool that failed, and
- # degrading to the full mix here would start a twenty-minute render
- # of a clip nobody asked for any more.
raise
except Exception as exc: # noqa: BLE001
- return audio_src, (f"Could not separate the vocal ({exc}), so this "
- f"clip was conditioned on the full mix.")
+ raise RuntimeError(
+ f"Could not separate the vocal ({exc}). Nothing was rendered. "
+ f"Try again, reinstall vocal separation from the Lip-sync form, "
+ f"or untick \u201cListen to the voice only\u201d to render "
+ f"against the full mix.") from exc
+
+
+# --- In-panel install of the vocal separator --------------------------------
+# The same script install.js and every Update run, started from the Lip-sync
+# form - where the user notices it is missing - instead of from a sidebar.
+A2V_SEPARATOR_INSTALL_LOCK = threading.Lock()
+A2V_SEPARATOR_INSTALL: dict = {"state": "idle", "active": False}
+
+
+def a2v_separator_install_start() -> tuple[int, dict]:
+ with A2V_SEPARATOR_INSTALL_LOCK:
+ if A2V_SEPARATOR_INSTALL.get("active"):
+ return 409, {"error": "Vocal separation is already installing.",
+ "install": True}
+ if a2v_separator_status()["ready"] and a2v_separator_status()["weights"]:
+ return 200, {"ok": True, "nothing_to_do": True}
+ with A2V_SEPARATOR_INSTALL_LOCK:
+ A2V_SEPARATOR_INSTALL.clear()
+ A2V_SEPARATOR_INSTALL.update({
+ "state": "running", "active": True, "started_ts": time.time(),
+ "finished_ts": None, "error": None,
+ "log": collections.deque(maxlen=60)})
+ threading.Thread(target=_a2v_separator_install_thread, daemon=True,
+ name="a2v-separator-install").start()
+ push("[a2v] installing vocal separation (the same step Install and Update run)")
+ return 202, {"ok": True, "started": True}
+
+
+def _a2v_separator_install_thread() -> None:
+ env = _music_install_env() # Pinokio's uv on PATH, venv deactivated
+ env["PHOSPHENE_SEPARATOR_HOME"] = str(a2v_separator_torch_home())
+ cmd = ["bash", A2V_SEPARATOR_INSTALLER, str(HELPER_PYTHON.parent.parent.parent)]
+ tail: list[str] = []
+ error = None
+ try:
+ proc = subprocess.Popen(cmd, cwd=str(ROOT), env=env,
+ stdin=subprocess.DEVNULL, stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT, text=True, bufsize=1,
+ errors="replace", start_new_session=True)
+ for raw in proc.stdout:
+ for line in raw.replace("\r", "\n").splitlines():
+ line = line.rstrip()
+ if not line:
+ continue
+ tail = (tail + [line])[-8:]
+ with A2V_SEPARATOR_INSTALL_LOCK:
+ A2V_SEPARATOR_INSTALL["log"].append(line[:300])
+ rc = proc.wait(timeout=1800)
+ if rc != 0:
+ reason = next((l for l in reversed(tail)
+ if not l.startswith(("+", "Traceback"))), "")
+ error = f"the install stopped (exit {rc})" + (f": {reason}" if reason else "")
+ except Exception as exc: # noqa: BLE001
+ error = f"the install could not run: {exc}"
+ st = a2v_separator_status()
+ if error is None and not st["ready"]:
+ error = "the install finished but the separator is still not importable"
+ with A2V_SEPARATOR_INSTALL_LOCK:
+ A2V_SEPARATOR_INSTALL.update(active=False, finished_ts=time.time(),
+ state="failed" if error else "done",
+ error=error)
+ push("[a2v] vocal separation " + (f"install failed: {error}" if error
+ else "installed - Listen to the voice only is ready"))
+
+
+# --- A2V CHARACTER LORA: KEEP THE FACE, FREE THE MOUTH -----------------------
+# A character LoRA at full strength through both a2v stages mutes the singer.
+# Measured on the 4.17 power ballad (same still, seed, vocal stem, prompt and
+# audio slice; only the LoRA changed - PM hub lipsync_quality.txt): with
+# bizarrotrn_v2 at 1.0 the mouth opened about half as wide on sung frames
+# (voiced aperture 0.082 vs 0.158 without it) and did not follow the voice
+# (zero-lag correlation 0.07 vs 0.47). The owner's verdict on the LoRA take:
+# "the lip sync doesn't work". Without the LoRA it belts - and the face
+# drifts off the character.
+#
+# The Q8 lane is two stages: stage 1 decides the MOTION (jaw, head, timing
+# against the audio), stage 2 refines the DETAIL at full resolution, which is
+# where a likeness lives. So on that lane the LoRA sits out stage 1 and comes
+# back for stage 2 (mlx_warm_helper._a2v_lora_stage_schedule): the singing of
+# the no-LoRA render, with the face pulled back toward the character
+# (A2V_LORA_STAGES_DEFAULT). The Q4 distilled lane has no such seam, so there
+# the LoRA applies as asked and the form says so.
+#
+# `a2v_lora_stages` on the job overrides: "full" (the old behaviour), or an
+# explicit "s1,s2" pair of multipliers (0..2).
+A2V_LORA_STAGES_DEFAULT = (0.0, 1.0)
+
+
+def a2v_lora_stage_scales(p: dict, *, q8: bool = True) -> tuple[float, float] | None:
+ """(stage-1, stage-2) multipliers for the LoRAs on an a2v render, or None
+ for "as asked, in both stages"."""
+ raw = str(p.get("a2v_lora_stages") or "").strip().lower()
+ if not q8 or raw == "full":
+ return None
+ if not raw:
+ return A2V_LORA_STAGES_DEFAULT
+ try:
+ s1, s2 = (float(x) for x in raw.split(","))
+ except ValueError:
+ return A2V_LORA_STAGES_DEFAULT
+ if not all(0.0 <= v <= 2.0 for v in (s1, s2)):
+ return A2V_LORA_STAGES_DEFAULT
+ return None if (s1, s2) == (1.0, 1.0) else (s1, s2)
def a2v_mux_original_audio(video: Path, audio_src: str, *,
@@ -29212,10 +29954,7 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,
n = max(1, min(8, int(f("n", "1") or 1)))
except (TypeError, ValueError):
n = 4
- try:
- seed = int(f("seed", "-1") or -1)
- except (TypeError, ValueError):
- seed = -1
+ seed = normalize_seed(f("seed", "-1"))
engine_override = (f("engine_override", "auto") or "auto").lower()
# HiDream is hidden from the dropdown (v3.0.3) but a saved pick or a
# Load Params of an old sidecar still names it; on the ~all installs
@@ -29773,7 +30512,7 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,
"height": max(32, int(f("height", str(default_h)) or default_h)),
"frames": max(1, int(f("frames", _frames_default) or _frames_default)),
"steps": max(1, int(f("steps", "8") or 8)),
- "seed": f("seed", "-1") or "-1",
+ "seed": str(normalize_seed(f("seed", "-1"))),
# Empty unless LTX_DEFAULT_IMAGE names a file that exists — see
# default_reference_image() for why this used to be a phantom.
"image": f("image", default_reference_image()),
@@ -29791,6 +30530,9 @@ def make_job(form: dict[str, list[str]] | dict[str, str], *,
# the make_job allowlist trap this file warns about throughout.
"audio_stem": f("audio_stem", ""),
"audio_stem_auto": f("audio_stem_auto", ""),
+ # A2V character-LoRA stage policy (see a2v_lora_stage_scales()).
+ # SAME allowlist trap: leave it out and the choice no-ops.
+ "a2v_lora_stages": f("a2v_lora_stages", ""),
# A2V multi-anchor images (fd2356d, mlx_warm_helper._a2v_anchor_images):
# JSON list of {path, frame_idx, strength}. The manual UI only ever
# sends frame_idx 0 (the "Continue the song" flow — see
@@ -30599,10 +31341,7 @@ def run_image_job_inner(job: dict) -> None:
n = max(1, min(8, int(p.get("n") or 1)))
except (TypeError, ValueError):
n = 4
- try:
- seed = int(p.get("seed", -1))
- except (TypeError, ValueError):
- seed = -1
+ seed = normalize_seed(p.get("seed", -1))
base_seed = seed if seed >= 0 else None
# Validate refs against UPLOADS / OUTPUT — same path-traversal guard
@@ -32631,10 +33370,7 @@ def run_h3_job_inner(job: dict) -> None:
# Seed: the panel keeps "-1" = random. H3's runner has no random mode, so
# resolve it here and record what we used (matches the LTX seed_used
# contract the ⓘ modal + Load Params already read).
- try:
- seed = int(str(p.get("seed", "-1") or "-1").strip())
- except (TypeError, ValueError):
- seed = -1
+ seed = normalize_seed(p.get("seed", "-1"))
if seed < 0:
seed = random.randint(0, 2**31 - 1)
p["seed_used"] = seed
@@ -33648,11 +34384,8 @@ def _run_windows_chain(job: dict, p: dict, plan: dict, first: Path,
*enc, "-movflags", "+faststart", str(tail)], f"Windows: tail {k - 1}")
ctx_frames = end - start + 1
out = work / f"{raw_out.stem}_w{k}{raw_out.suffix}"
- seed = p.get("seed_used") if p.get("seed_used") is not None else p.get("seed")
- try:
- seed = int(seed)
- except (TypeError, ValueError):
- seed = -1
+ seed = normalize_seed(p.get("seed_used") if p.get("seed_used") is not None
+ else p.get("seed"))
spec = {
"action": "extend",
"id": job["id"],
@@ -35937,6 +36670,14 @@ def run_job_inner(job: dict) -> None:
# same selection silently vanished when this Mac (or a missing High
# add-on) put the render on the Q4 distilled lane (LTX-03).
a2v_params["loras"] = a2v_loras
+ # Keep the face, free the mouth: the LoRA sits out the motion stage
+ # on the Q8 lane (see A2V_LORA_STAGES_DEFAULT).
+ _stage_scales = (a2v_lora_stage_scales(p, q8=uses_q8)
+ if a2v_loras else None)
+ if _stage_scales:
+ a2v_params["lora_stage_scales"] = list(_stage_scales)
+ push(f"[a2v] LoRAs x{_stage_scales[0]:g} while the performance is "
+ f"shaped, x{_stage_scales[1]:g} for the face detail")
# Multi-anchor images (fd2356d, mlx_warm_helper._a2v_anchor_images).
# The product surface is "Continue the song" (frame_idx 0 only — see
# continue_song_anchor()); a general multi-anchor list stays reachable
@@ -36057,6 +36798,9 @@ def run_job_inner(job: dict) -> None:
# record of which lane default a clip was rendered at.
"audio_conditioning_scale_used":
a2v_params["audio_conditioning_scale"],
+ # (stage-1, stage-2) LoRA multipliers the helper ran, or None =
+ # the LoRAs as asked in both stages (or no LoRAs at all).
+ "lora_stage_scales_used": a2v_params.get("lora_stage_scales"),
"started": job.get("started_at"),
"elapsed_sec": round(time.time() - job["started_ts"], 2)
if job.get("started_ts") else None,
@@ -40647,10 +41391,7 @@ class Handler(BaseHTTPRequestHandler):
"error": f"character {cid!r} is not "
f"installed"}, 400)
return
- try:
- seed = int(f("seed", "-1") or -1)
- except ValueError:
- seed = -1
+ seed = normalize_seed(f("seed", "-1"))
shots = [s for s in (board.get("shots") or [])
if isinstance(s, dict)]
n = max([int(s.get("n") or 0) for s in shots] or [0]) + 1
diff --git a/mlx_warm_helper.py b/mlx_warm_helper.py
index e5466e4..6292e3e 100644
--- a/mlx_warm_helper.py
+++ b/mlx_warm_helper.py
@@ -337,6 +337,131 @@ def _install_a2v_modality_patch() -> bool:
return True
+# =============================================================================
+# A2V CHARACTER LORA PER STAGE — keep the face without muting the mouth
+# =============================================================================
+#
+# A character (face) LoRA damps audio-driven mouth motion on a2v. Measured on
+# the 4.17 power ballad (bizarrotrn_v2, same still/seed/stem/prompt, only the
+# LoRA strength changed — review-2026-09-29-ux/lipsync_quality.txt): at 1.0
+# the mouth opens about half as wide and moves about a third as much as with
+# no LoRA; the owner's verdict on the LoRA take was "the lip sync doesn't
+# work". Without the LoRA the singer belts, but the face drifts off-model.
+#
+# The two-stage Q8 pipeline splits the work in a way that lets us have both:
+# stage 1 (dev + CFG, half resolution, 20 steps) decides the MOTION — jaw,
+# head, timing against the audio; stage 2 (3 refine steps at full resolution,
+# distilled LoRA fused) decides the fine detail, which is where a likeness
+# lives. Scaling the character adapters per stage leaves stage 1 free to sing
+# and lets stage 2 put the face back.
+#
+# Works because the native loader attaches character LoRAs UNFUSED
+# (ltx_core_mlx.loader.runtime_loras): every adapter is a module with a
+# float `lora_scale` read at call time, so rescaling is a Python assignment —
+# no weight reload, no re-quantization. The distilled LoRA is fused into the
+# base weight under the adapters at the stage transition and is untouched.
+# The scales are restored when the render ends, because the pipeline (and its
+# adapters) is cached for the next job.
+
+
+def _a2v_lora_stage_scales(raw) -> tuple[float, float] | None:
+ """`lora_stage_scales` off the job spec -> (stage1, stage2) multipliers,
+ or None for "leave the LoRAs alone". Anything malformed is None: a bad
+ value must never become a LoRA silently switched off."""
+ if raw is None or raw == "":
+ return None
+ try:
+ s1, s2 = (float(x) for x in raw)
+ except (TypeError, ValueError):
+ return None
+ if not all(0.0 <= s <= 2.0 for s in (s1, s2)):
+ return None
+ if s1 == 1.0 and s2 == 1.0:
+ return None
+ return s1, s2
+
+
+def _runtime_lora_adapters(dit) -> list:
+ """Every unfused character-LoRA adapter in a built DiT (empty when the
+ engine fused the LoRA into the weights, which this schedule cannot
+ rescale — the caller logs that instead of pretending)."""
+ try:
+ from ltx_core_mlx.loader.runtime_loras import ( # noqa: PLC0415
+ LoRALinear, LoRAQuantizedLinear,
+ )
+ except Exception: # noqa: BLE001
+ return []
+ if dit is None:
+ return []
+ return [m for _, m in dit.named_modules()
+ if isinstance(m, (LoRALinear, LoRAQuantizedLinear))]
+
+
+@contextmanager
+def _a2v_lora_stage_schedule(pipe, scales):
+ """Scale the character LoRA adapters by scales[0] for stage 1 and
+ scales[1] for stage 2 of an A2VidPipelineTwoStage render, then restore.
+
+ Hooks the two seams the vendored pipeline calls in order on every render:
+ `_denoise_stage1` (the DiT is loaded, adapters attached, motion not yet
+ sampled) and `_fuse_distilled_lora` (stage 1 done, stage 2 about to
+ start). Instance attributes, so the class — and the modality patch that
+ lives on it — is untouched, and deleting them restores it exactly."""
+ if not scales:
+ yield
+ return
+ import weakref # noqa: PLC0415
+ s1, s2 = scales
+ # WEAK references (4.17.3 review): each adapter wraps its base linear
+ # layer, so a strong reference here held the whole DiT alive until the
+ # render returned — past the point where the low-memory path drops the
+ # DiT before the VAE decode. On a 48-64 GB Mac that is ~20 GB of Q8
+ # weights still resident during decode. An adapter the pipeline has
+ # freed simply has nothing left to restore.
+ saved: dict[int, tuple] = {}
+
+ def _apply(mult: float, stage: str) -> None:
+ mods = _runtime_lora_adapters(getattr(pipe, "dit", None))
+ for m in mods:
+ ent = saved.get(id(m))
+ if ent is None or ent[0]() is not m:
+ ent = saved[id(m)] = (weakref.ref(m), float(m.lora_scale))
+ m.lora_scale = ent[1] * mult
+ n_mods = len(mods)
+ del mods
+ emit({"event": "log",
+ "line": (f"[a2v] character LoRA x{mult:.2f} for {stage} "
+ f"({n_mods} adapters)") if n_mods else
+ (f"[a2v] character LoRA per-stage schedule skipped for "
+ f"{stage}: the LoRA is fused, not attached at runtime")})
+
+ orig_s1 = pipe._denoise_stage1
+ orig_fuse = pipe._fuse_distilled_lora
+
+ def _stage1(*a, **k):
+ _apply(s1, "stage 1 (motion)")
+ return orig_s1(*a, **k)
+
+ def _fuse(dit, *a, **k):
+ _apply(s2, "stage 2 (detail)")
+ return orig_fuse(dit, *a, **k)
+
+ pipe._denoise_stage1 = _stage1
+ pipe._fuse_distilled_lora = _fuse
+ try:
+ yield
+ finally:
+ for name in ("_denoise_stage1", "_fuse_distilled_lora"):
+ try:
+ delattr(pipe, name)
+ except AttributeError:
+ pass
+ for ref, base in saved.values():
+ m = ref()
+ if m is not None:
+ m.lora_scale = base
+
+
def _apply_vae_streaming_decision(num_frames: int) -> None:
"""Set/unset os.environ['LTX_VAE_STREAMING'] for the upcoming decode.
No-op if the user pinned a value at helper start time. Threshold reads
@@ -406,6 +531,48 @@ _real_stdout = sys.stdout
_emit_lock = threading.Lock()
+# 4.17.3 (fleet): mx.random.seed() accepts an unsigned 64-bit int and nothing
+# else. A negative seed other than -1, or one of 2**64 and up, failed the
+# render inside the engine with "seed(): incompatible function arguments" —
+# and text that is not a number died on int() first. The panel now
+# normalizes every seed at make_job (normalize_seed); this is the same rule
+# on the helper's side, for jobs saved by an older panel and for direct API
+# callers. Kept in step with mlx_ltx_panel.normalize_seed — a test pins
+# that the two agree. -1 = random; anything out of range maps
+# deterministically to |n| mod 2**63 so a pinned seed stays repeatable.
+_SEED_LIMIT = 2 ** 63
+
+
+def _coerce_seed(raw) -> int:
+ if raw is None or isinstance(raw, bool):
+ return -1
+ if isinstance(raw, float):
+ if raw != raw or raw in (float("inf"), float("-inf")) or not raw.is_integer():
+ return -1
+ n = int(raw)
+ elif isinstance(raw, int):
+ n = raw
+ else:
+ s = str(raw).strip().replace("_", "").replace(",", "").replace(" ", "")
+ if s.lower() in ("", "-1", "random", "none", "null"):
+ return -1
+ try:
+ n = int(s)
+ except ValueError:
+ try:
+ import decimal as _dec
+ d = _dec.Decimal(s)
+ except (ArithmeticError, ValueError):
+ return -1
+ if not d.is_finite() or d != d.to_integral_value():
+ return -1
+ n = int(d)
+ if n == -1:
+ return -1
+ n = abs(n)
+ return n % _SEED_LIMIT if n >= _SEED_LIMIT else n
+
+
def emit(event: dict) -> None:
try:
with _emit_lock:
@@ -3240,8 +3407,8 @@ for line in sys.__stdin__:
emit({"event": "error", "id": job_id, "error": f"unsupported mode: {mode}"})
continue
needs_image = mode != "t2v"
- seed = int(p.get("seed", -1))
- if seed == -1:
+ seed = _coerce_seed(p.get("seed", -1))
+ if seed < 0:
seed = random.randint(0, 2**31 - 1)
_is_busy = True
@@ -3506,8 +3673,8 @@ for line in sys.__stdin__:
if action == "extend":
job_id = msg.get("id", "?")
p = msg.get("params", {}) or {}
- seed = int(p.get("seed", -1))
- if seed == -1:
+ seed = _coerce_seed(p.get("seed", -1))
+ if seed < 0:
seed = random.randint(0, 2**31 - 1)
_is_busy = True
try:
@@ -3627,8 +3794,8 @@ for line in sys.__stdin__:
# — never a helper crash.
job_id = msg.get("id", "?")
p = msg.get("params", {}) or {}
- seed = int(p.get("seed", -1))
- if seed == -1:
+ seed = _coerce_seed(p.get("seed", -1))
+ if seed < 0:
seed = random.randint(0, 2**31 - 1)
_is_busy = True
try:
@@ -3741,8 +3908,8 @@ for line in sys.__stdin__:
job_id = msg.get("id", "?")
p = msg.get("params", {}) or {}
model_dir = p.get("model_dir") or MODEL_ID # fallback if user forgot
- seed = int(p.get("seed", -1))
- if seed == -1:
+ seed = _coerce_seed(p.get("seed", -1))
+ if seed < 0:
seed = random.randint(0, 2**31 - 1)
_is_busy = True
try:
@@ -3935,8 +4102,8 @@ for line in sys.__stdin__:
job_id = msg.get("id", "?")
p = msg.get("params", {}) or {}
model_dir = p.get("model_dir") or MODEL_ID
- seed = int(p.get("seed", -1))
- if seed == -1:
+ seed = _coerce_seed(p.get("seed", -1))
+ if seed < 0:
seed = random.randint(0, 2**31 - 1)
_is_busy = True
try:
@@ -4055,8 +4222,8 @@ for line in sys.__stdin__:
job_id = msg.get("id", "?")
p = msg.get("params", {}) or {}
model_dir = p.get("model_dir") or MODEL_ID
- seed = int(p.get("seed", -1))
- if seed == -1:
+ seed = _coerce_seed(p.get("seed", -1))
+ if seed < 0:
seed = random.randint(0, 2**31 - 1)
_is_busy = True
try:
@@ -4176,7 +4343,10 @@ for line in sys.__stdin__:
emit({"event": "log", "line": "Avoid terms active via native CFG negative prompt."})
_thread_live_preview(p, kwargs) # VA-27
kwargs = _filter_unsupported_kwargs(pipe.generate_and_save, kwargs)
- out_path = pipe.generate_and_save(**kwargs)
+ _stage_scales = (_a2v_lora_stage_scales(p.get("lora_stage_scales"))
+ if loras else None)
+ with _a2v_lora_stage_schedule(pipe, _stage_scales):
+ out_path = pipe.generate_and_save(**kwargs)
elapsed = round(time.time() - t0, 2)
_last_activity = time.time()
emit({
@@ -4199,8 +4369,8 @@ for line in sys.__stdin__:
job_id = msg.get("id", "?")
p = msg.get("params", {}) or {}
model_dir = p.get("model_dir") or MODEL_ID
- seed = int(p.get("seed", -1))
- if seed == -1:
+ seed = _coerce_seed(p.get("seed", -1))
+ if seed < 0:
seed = random.randint(0, 2**31 - 1)
_is_busy = True
try:
@@ -4304,8 +4474,8 @@ for line in sys.__stdin__:
job_id = msg.get("id", "?")
p = msg.get("params", {}) or {}
model_dir = p.get("model_dir") or MODEL_ID
- seed = int(p.get("seed", -1))
- if seed == -1:
+ seed = _coerce_seed(p.get("seed", -1))
+ if seed < 0:
seed = random.randint(0, 2**31 - 1)
_is_busy = True
try:
@@ -4417,8 +4587,8 @@ for line in sys.__stdin__:
job_id = msg.get("id", "?")
p = msg.get("params", {}) or {}
model_dir = p.get("model_dir") or MODEL_ID
- seed = int(p.get("seed", -1))
- if seed == -1:
+ seed = _coerce_seed(p.get("seed", -1))
+ if seed < 0:
seed = random.randint(0, 2**31 - 1)
_is_busy = True
try:
@@ -4608,7 +4778,9 @@ for line in sys.__stdin__:
language = (p.get("language") or "").strip()
section = (p.get("section") or "").strip().strip("[]")
lines_in = (p.get("lines") or "").strip()
- seed = int(p.get("seed", 10))
+ seed = _coerce_seed(p.get("seed", 10))
+ if seed < 0:
+ seed = 10
# A section rewrite can stand on the lines alone ("make this better"),
# so the concept is only mandatory when there is nothing else to go on.
if not concept and not (section and lines_in):
@@ -4712,7 +4884,9 @@ for line in sys.__stdin__:
description = (p.get("description") or "").strip()
instrumental = bool(p.get("instrumental"))
seconds = int(p.get("seconds") or 150)
- seed = int(p.get("seed", 10))
+ seed = _coerce_seed(p.get("seed", 10))
+ if seed < 0:
+ seed = 10
if not description:
emit({"event": "error", "id": job_id, "error": "empty description"})
continue
@@ -4820,7 +4994,9 @@ for line in sys.__stdin__:
mode = (p.get("mode") or "t2v").lower()
if mode not in ("t2v", "i2v"):
mode = "t2v"
- seed = int(p.get("seed", 10))
+ seed = _coerce_seed(p.get("seed", 10))
+ if seed < 0:
+ seed = 10
preserve_tokens = p.get("preserve_tokens") or []
if not isinstance(preserve_tokens, list):
preserve_tokens = []
diff --git a/panel/routes_models.py b/panel/routes_models.py
index fa3450e..25fdc58 100644
--- a/panel/routes_models.py
+++ b/panel/routes_models.py
@@ -288,6 +288,24 @@ def post_music_install(h, path, qs, ctype) -> None:
h._json(payload, code); return
+@get("/a2v/separator")
+def get_a2v_separator(h, parsed) -> None:
+ # "Listen to the voice only": can this install separate a vocal, and is
+ # an install running? File checks only - cheap enough to poll.
+ h._json(P.a2v_separator_status()); return
+
+
+@post("/a2v/separator/install")
+def post_a2v_separator_install(h, path, qs, ctype) -> None:
+ # The Lip-sync form's "Install vocal separation" button. Runs the same
+ # scripts/pinokio/a2v_stems_deps.sh that install.js and Update run.
+ _rb = h._read_form_body()
+ if _rb is None:
+ return
+ code, payload = P.a2v_separator_install_start()
+ h._json(payload, code); return
+
+
@post("/music/cover/install")
def post_music_cover_install(h, path, qs, ctype) -> None:
# The opt-in ~2.8 GB that lets YuE2 read a score off a real recording.
diff --git a/panel/routes_queue.py b/panel/routes_queue.py
index c9ddd3d..fc720f8 100644
--- a/panel/routes_queue.py
+++ b/panel/routes_queue.py
@@ -742,6 +742,11 @@ def post_run(h, path, qs, ctype) -> None:
refusal = P.extend_face_fix_refusal(job["params"])
if refusal:
h._json({"error": refusal, "code": "pack_missing"}, 400); return
+ # "Listen to the voice only" on an install that cannot separate a voice:
+ # refused NOW with an install offer, never rendered on the full mix.
+ refusal = P.a2v_stem_refusal(job["params"])
+ if refusal:
+ h._json({"error": refusal, "code": "vocal_separator_missing"}, 400); return
with P.QUEUE_COND:
P.STATE["queue"].append(job)
P.QUEUE_COND.notify_all()
diff --git a/panel/routes_stats.py b/panel/routes_stats.py
index aa861fd..98ced62 100644
--- a/panel/routes_stats.py
+++ b/panel/routes_stats.py
@@ -40,8 +40,15 @@ def stats_page(h, parsed) -> None:
@get("/stats/data")
def stats_data(h, parsed) -> None:
+ # `range` (7d/30d/90d/all, default 30d) trims the archive server-side —
+ # see P._stats_data_for_range for the cache-per-range shape. Unknown/
+ # missing values fall back to the default rather than erroring, so an
+ # old cached page hitting this route with no ?range= still works.
+ qs = parse_qs(parsed.query)
+ range_key = (qs.get("range", [P.STATS_RANGE_DEFAULT])[0] or
+ P.STATS_RANGE_DEFAULT)
try:
- body = P.STATS_DATA_FILE.read_bytes()
+ body = P._stats_data_for_range(range_key)
except FileNotFoundError:
# No snapshot yet — return an empty but valid JSONL so the
# dashboard's "no data yet" path renders cleanly.
@@ -64,7 +71,10 @@ def stats_data(h, parsed) -> None:
def stats_usage(h, parsed) -> None:
try:
qs = parse_qs(parsed.query)
- report = P._usage_report(force=qs.get("force", ["0"])[0] == "1")
+ range_key = (qs.get("range", [P.STATS_RANGE_DEFAULT])[0] or
+ P.STATS_RANGE_DEFAULT)
+ report = P._usage_report(force=qs.get("force", ["0"])[0] == "1",
+ range_key=range_key)
except Exception as exc:
report = {"ok": False, "source": "local",
"error": str(exc)[:200]}
diff --git a/panel_assets/stats.html b/panel_assets/stats.html
index 73a8c7c..4a567f5 100644
--- a/panel_assets/stats.html
+++ b/panel_assets/stats.html
@@ -219,6 +219,11 @@
font-size: 11px; font-weight: 600; text-transform: uppercase;
letter-spacing: 0.10em; color: var(--muted);
margin: 0;
+ /* Flex children default to a min-width equal to their content's
+ intrinsic (unwrapped) width, which is what let a long .h2-sub
+ string push past the viewport edge on narrow screens instead of
+ wrapping — this is the fix, not a width on the child. */
+ min-width: 0;
}
h2 .h2-sub {
margin-left: 8px;
@@ -237,7 +242,7 @@
Period chips (and any other chip groups).
============================================================ */
.chips {
- display: inline-flex; gap: 2px;
+ display: inline-flex; flex-wrap: wrap; gap: 2px;
background: var(--bg-2);
border: 1px solid var(--border);
border-radius: var(--r-pill);
@@ -259,6 +264,30 @@
color: var(--accent-bright);
}
+ /* ============================================================
+ Global range bar — ONE control (7d/30d/90d/all) that every
+ panel on the page reads. Sits right under the header so it
+ reads as governing everything below it.
+ ============================================================ */
+ .range-bar {
+ display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
+ margin: 0 0 18px; padding: 10px 14px;
+ background: var(--bg-2); border: 1px solid var(--border);
+ border-radius: var(--r-md);
+ }
+ .range-bar-label {
+ font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em;
+ color: var(--muted); font-weight: 600;
+ }
+ .range-bar .chip { font-size: 12px; padding: 5px 14px; }
+ .range-bar-hint {
+ font-size: 11.5px; color: var(--faint); margin-left: auto;
+ }
+ @media (max-width: 600px) {
+ .range-bar { padding: 8px 10px; gap: 8px; }
+ .range-bar-hint { margin-left: 0; flex-basis: 100%; }
+ }
+
/* ============================================================
"Right now" KPI strip.
============================================================ */
@@ -486,12 +515,24 @@
.two-col {
display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
+ /* The actual grid items are the two plain <div> wrappers (each holds
+ an <h3> + .table-wrap) — min-width:0 on .table-wrap alone didn't
+ reach them, so a wide table still forced the GRID ITEM wide, which
+ forced the page into horizontal scroll on a phone. */
+ .two-col > div { min-width: 0; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.table-wrap {
background: var(--bg-2);
border: 1px solid var(--border);
border-radius: var(--r-md);
- overflow: hidden;
+ overflow-x: auto; overflow-y: hidden;
+ /* Grid items default to a min-width equal to their content's
+ intrinsic width — the same trap as flex children (see h2 above).
+ A table with several columns refused to shrink below that width
+ and pushed the whole PAGE into horizontal scroll on a phone.
+ overflow-x:auto is the fallback for content that still doesn't
+ fit even at min-width:0. */
+ min-width: 0;
}
table {
width: 100%; border-collapse: collapse; font-size: 12.5px;
@@ -669,11 +710,13 @@
background: color-mix(in srgb, var(--lc, var(--border)) 12%, transparent);
white-space: nowrap;
}
- .board-more {
+ .board-more, .list-more {
margin-top: 8px;
- color: var(--faint); font-size: 10.5px; font-style: italic;
+ color: var(--faint); font-size: 10.5px;
font-family: var(--ph-font-mono);
+ display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
+ .list-toggle { font-size: 11.5px; }
.board-empty {
display: flex; align-items: center; gap: 8px;
padding: 18px 14px;
@@ -732,8 +775,14 @@
.dist-col { min-width: 0; }
.dist-col > h3 { display: flex; align-items: center; gap: 8px; }
.dist-list {
- list-style: none; margin: 8px 0 0; padding: 0;
+ list-style: none; margin: 8px 0 0; padding: 0 4px 0 0;
display: flex; flex-direction: column; gap: 6px;
+ /* Capped + scrollable — "Failures by version" and friends can carry
+ up to 12 rows (one closed error/version/chip taxonomy each), and
+ without a cap the tallest column stretched the whole dist-grid
+ row, leaving huge empty space under every shorter column next
+ to it. */
+ max-height: 300px; overflow-y: auto;
}
.dist-row {
position: relative; overflow: hidden;
@@ -744,6 +793,14 @@
border: 1px solid var(--border);
border-radius: var(--r-sm);
font-size: 12px;
+ /* .dist-list (the flex column these rows sit in) got a max-height +
+ scroll further down. A flex item with overflow:hidden loses its
+ normal min-height:auto protection (CSS Flexbox spec, 4.5) — so
+ without this, the flex algorithm shrank each row to fit the
+ constrained container instead of letting the container scroll,
+ and a two-line stacked row (mobile .is-err) got clipped to about
+ one line, silently hiding whichever half didn't fit. */
+ flex-shrink: 0;
}
/* Proportional fill behind each row — same "bar in a table cell"
idea the Traffic sources tables use, so the eye reads them alike. */
@@ -757,9 +814,24 @@
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
color: var(--text);
}
+ .dist-row.is-err {
+ /* The base 1fr/auto split starves the name column whenever the
+ value is a long sentence ("failed · 6.1% of 1,109 · 65
+ installs") — "auto" claims whatever it wants first, so a short
+ name like "4.12.2" got squeezed into a sliver and word-break
+ wrapped it one character per line. Give the name a guaranteed
+ max-content column instead and let the (already-wrappable)
+ value take the rest. */
+ grid-template-columns: minmax(60px, max-content) 1fr;
+ }
.dist-row.is-err .name {
font-family: var(--ph-font-mono); font-size: 11px; color: var(--muted);
white-space: normal; word-break: break-word;
+ /* The base .dist-row .name rule sets overflow:hidden for its
+ single-line ellipsis truncation — irrelevant once wrapping is
+ turned back on above, and left in place it collapsed this
+ element to 0 height in the flex-column mobile layout below. */
+ overflow: visible; text-overflow: clip;
}
.dist-row.is-err .fill { background: rgba(248, 81, 73, 0.14); }
.dist-row .n small.sub { font-size: 11px; font-weight: 400; color: var(--faint); margin-left: 4px; }
@@ -768,6 +840,90 @@
font-weight: 700; color: var(--muted); font-size: 11px;
}
+ /* Small "?" tooltip marker — plain-words explanation of a metric,
+ on hover/focus. Not a link, not a button; just a title attr host. */
+ .info-dot {
+ display: inline-flex; align-items: center; justify-content: center;
+ width: 14px; height: 14px; border-radius: 50%;
+ background: var(--bg-3, rgba(140,160,220,0.10));
+ border: 1px solid var(--border);
+ color: var(--faint); font-size: 10px; font-weight: 600;
+ cursor: help; user-select: none;
+ }
+ .info-dot:hover { color: var(--accent-bright); border-color: var(--accent-dim); }
+
+ /* ============================================================
+ Errors — collapsible card. Collapsed by default; the header
+ alone carries total count + trend so there's signal without
+ opening it.
+ ============================================================ */
+ .errors-card {
+ margin-top: 16px;
+ background: var(--bg-2);
+ border: 1px solid var(--border);
+ border-radius: var(--r-md);
+ overflow: hidden;
+ }
+ .errors-header {
+ width: 100%; display: flex; align-items: center; gap: 10px;
+ background: transparent; border: 0; cursor: pointer;
+ padding: 13px 16px; text-align: left; color: var(--text);
+ font: inherit;
+ }
+ .errors-header:hover { background: rgba(140, 160, 220, 0.04); }
+ .errors-header .chev {
+ color: var(--faint); font-size: 11px;
+ transition: transform var(--t-fast);
+ }
+ .errors-header[aria-expanded="true"] .chev { transform: rotate(90deg); }
+ .errors-title { font-size: 14px; font-weight: 650; }
+ .errors-trend {
+ font-family: var(--ph-font-mono); font-size: 11.5px; font-weight: 600;
+ }
+ .errors-trend.up { color: var(--danger); }
+ .errors-trend.down { color: var(--success); }
+ .errors-trend.flat { color: var(--faint); }
+ .errors-header-hint {
+ margin-left: auto; font-size: 11px; color: var(--faint);
+ }
+ .errors-body { padding: 4px 16px 16px; }
+ .errors-empty { padding: 10px 2px; color: var(--faint); font-size: 12.5px; }
+ .errors-groups {
+ display: flex; flex-direction: column; gap: 8px; margin-top: 6px;
+ }
+ .error-group {
+ background: var(--bg); border: 1px solid var(--border);
+ border-radius: var(--r-sm); padding: 10px 12px;
+ }
+ .error-group-head {
+ display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
+ }
+ .error-group-class {
+ font-family: var(--ph-font-mono); font-size: 12.5px; font-weight: 700;
+ color: var(--text);
+ }
+ .error-group-stat {
+ font-size: 11px; color: var(--muted);
+ font-variant-numeric: tabular-nums;
+ }
+ .error-group-stat strong { color: var(--text); font-weight: 700; }
+ .error-group-meta {
+ margin-left: auto; font-size: 10.5px; color: var(--faint);
+ font-family: var(--ph-font-mono);
+ }
+ .error-group-msg {
+ margin-top: 6px; font-family: var(--ph-font-mono); font-size: 11.5px;
+ color: var(--muted); cursor: pointer;
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
+ }
+ .error-group-msg:hover { color: var(--text); }
+ .error-group-msg.is-expanded {
+ white-space: normal; word-break: break-word;
+ }
+ .errors-showall {
+ margin-top: 10px; width: 100%;
+ }
+
/* ============================================================
Skeleton loading state.
============================================================ */
@@ -859,6 +1015,16 @@
.kpi .value { font-size: 22px; }
.kpi.is-hero .value { font-size: 28px; }
.row-bar { width: 60px; }
+ /* "Failures by version" / any other is-err row carries a long
+ descriptive value ("failed · 6.1% of 1,109 · 65 installs") that
+ has nowhere to shrink to next to a name in a 1fr/auto grid at
+ this width — the two columns fought for space and the name
+ wrapped into an unreadably narrow sliver. Stack instead — flex
+ column rather than fighting the grid's implicit row sizing. */
+ .dist-row.is-err {
+ display: flex; flex-direction: column; align-items: stretch; gap: 3px;
+ }
+ .dist-row.is-err .n { text-align: left; }
}
</style>
</head>
@@ -903,6 +1069,25 @@
<div class="hero-underline" aria-hidden="true"></div>
</header>
+ <!-- ============================================================
+ GLOBAL RANGE — the one time-window control for the whole
+ dashboard. Replaces the separate "Over time" (7/30/90/365/all)
+ and "Clones date range" (30/90/365/all) chip groups — every
+ chart and the Usage section now read this single value.
+ Persisted per-browser (localStorage, wrapped in try/catch —
+ private browsing can throw), default 30 days.
+ ============================================================ -->
+ <div class="range-bar" role="group" aria-label="Dashboard time range">
+ <span class="range-bar-label">Range</span>
+ <div class="chips" id="global-range-chips">
+ <button class="chip" type="button" data-range="7" aria-pressed="false">7 days</button>
+ <button class="chip" type="button" data-range="30" aria-pressed="true">30 days</button>
+ <button class="chip" type="button" data-range="90" aria-pressed="false">90 days (3 months)</button>
+ <button class="chip" type="button" data-range="all" aria-pressed="false">All time</button>
+ </div>
+ <span class="range-bar-hint" id="range-bar-hint"></span>
+ </div>
+
<!-- Mount point for error state. Hidden unless fetch fails. -->
<div id="error-mount" hidden></div>
@@ -943,38 +1128,62 @@
"my H3 vanished" bug class; red when it has happened at all. -->
<div class="usage-alert is-clear" id="usage-packflip">
<span class="n">0</span>
- <span>optional-pack regressions in the last 7 days.</span>
+ <span>optional-pack regressions in the selected range.</span>
</div>
<div class="dist-grid">
- <div class="dist-col">
- <h3>Top errors <span class="count-pill" id="usage-errors-count">0</span></h3>
- <ul class="dist-list" id="usage-errors"></ul>
- </div>
<div class="dist-col">
<!-- Refusals, kept next to errors and never inside them: these are
renders the panel declined on purpose, so they are not part of
the error rate. A tall bar here is a UI bug (we offered a
control that can never work), not an engine bug. -->
- <h3>Refused <span class="count-pill" id="usage-refusals-count">0</span></h3>
+ <h3>Refused <span class="count-pill" id="usage-refusals-count">0</span>
+ <span class="info-dot" title="Renders the panel declined before starting — not a crash, not counted in the error rate. A big number here means the UI is offering something this machine can't actually do.">?</span></h3>
<ul class="dist-list" id="usage-refusals"></ul>
</div>
<div class="dist-col">
- <h3>Failures by version <span class="hint">last 7 days · failed renders, share of that version's renders, installs that hit one</span></h3>
+ <h3>Failures by version <span class="info-dot" title="Failed renders as a share of that version's total renders, in the selected range. A version failing MORE than the one before it is the signal to look for.">?</span></h3>
<ul class="dist-list" id="usage-failures-by-version"></ul>
</div>
<div class="dist-col">
- <h3>Versions</h3>
+ <h3>Versions <span class="info-dot" title="Which release each install is running, by distinct installs seen in the selected range.">?</span></h3>
<ul class="dist-list" id="usage-versions"></ul>
</div>
<div class="dist-col">
- <h3>Chip</h3>
+ <h3>Chip <span class="info-dot" title="Apple Silicon family (M1–M5, Pro/Max/Ultra) across installs seen in the selected range.">?</span></h3>
<ul class="dist-list" id="usage-chips"></ul>
</div>
<div class="dist-col">
- <h3>Memory</h3>
+ <h3>Memory <span class="info-dot" title="Unified RAM tier across installs seen in the selected range — the single biggest driver of which engines/quality tiers an install can run.">?</span></h3>
<ul class="dist-list" id="usage-ram"></ul>
</div>
</div>
+
+ <!-- ==========================================================
+ ERRORS — collapsible, collapsed by default (owner: "the
+ error section is really not well designed... it should be
+ collapsible, it's too big"). Header alone carries the total
+ count + a trend arrow vs. the prior equal-length period, so
+ there's signal without expanding. Expanded: grouped by the
+ closed error_class taxonomy (not raw free-text messages),
+ sorted by distinct installs affected, top 5 with "show all".
+ ========================================================== -->
+ <section class="errors-card" id="errors-card">
+ <button class="errors-header" id="errors-toggle" type="button"
+ aria-expanded="false" aria-controls="errors-body">
+ <span class="chev" aria-hidden="true">▸</span>
+ <span class="errors-title">Errors</span>
+ <span class="count-pill" id="errors-total-count">0</span>
+ <span class="errors-trend" id="errors-trend"></span>
+ <span class="errors-header-hint">click to expand</span>
+ </button>
+ <div class="errors-body" id="errors-body" hidden>
+ <div class="errors-empty" id="errors-empty" hidden>no render failures in this range.</div>
+ <div class="errors-groups" id="errors-groups"></div>
+ <button class="btn ghost errors-showall" id="errors-showall" type="button" hidden>
+ show all error classes
+ </button>
+ </div>
+ </section>
</section>
<!-- ============================================================
@@ -1056,14 +1265,8 @@
============================================================ -->
<section class="card" id="sec-clones-history">
<div class="section-head">
- <h2>Clones <span class="h2-sub">accumulated history — grows as the panel keeps fetching</span></h2>
- <div class="chips" role="group" aria-label="Clones date range">
- <button class="chip clones-chip-period" type="button" data-clones-period="30" aria-pressed="false">30d</button>
- <button class="chip clones-chip-period" type="button" data-clones-period="90" aria-pressed="false">90d</button>
- <button class="chip clones-chip-period" type="button" data-clones-period="365" aria-pressed="false">1y</button>
- <button class="chip clones-chip-period" type="button" data-clones-period="all" aria-pressed="true">all</button>
- </div>
- <div class="chips" role="group" aria-label="Clones bucketing" style="margin-left:8px">
+ <h2>Clones <span class="h2-sub">accumulated history — follows the range above</span></h2>
+ <div class="chips" role="group" aria-label="Clones bucketing">
<button class="chip clones-chip-bucket" type="button" data-clones-bucket="daily" aria-pressed="false">daily</button>
<button class="chip clones-chip-bucket" type="button" data-clones-bucket="weekly" aria-pressed="true">weekly</button>
<button class="chip clones-chip-bucket" type="button" data-clones-bucket="monthly" aria-pressed="false">monthly</button>
@@ -1176,6 +1379,14 @@
border-radius: 3px;
font-size: 11px;
}
+ /* Fixed 4 equal columns had no floor — each needs ~90px minimum
+ before the numbers/labels themselves start clipping, so at
+ phone width the strip pushed the whole PAGE into horizontal
+ scroll (found via a headless 390px-viewport pass). 2 columns
+ keeps every value readable down to ~340px content width. */
+ @media (max-width: 480px) {
+ .clones-kpi-strip { grid-template-columns: repeat(2, 1fr); }
+ }
</style>
<!-- ============================================================
@@ -1183,14 +1394,7 @@
============================================================ -->
<section class="card" id="sec-over-time">
<div class="section-head">
- <h2>Over time <span class="h2-sub">history from the local archive</span></h2>
- <div class="chips" role="group" aria-label="Date range">
- <button class="chip" type="button" data-period="7" aria-pressed="false">7d</button>
- <button class="chip" type="button" data-period="30" aria-pressed="true">30d</button>
- <button class="chip" type="button" data-period="90" aria-pressed="false">90d</button>
- <button class="chip" type="button" data-period="365" aria-pressed="false">1y</button>
- <button class="chip" type="button" data-period="all" aria-pressed="false">all</button>
- </div>
+ <h2>Over time <span class="h2-sub">history from the local archive — follows the range above</span></h2>
</div>
<div class="chart-row">
@@ -1301,7 +1505,7 @@
============================================================ -->
<section class="card" id="sec-releases" hidden>
<div class="section-head">
- <h2>Releases <span class="h2-sub">download volume per tag</span></h2>
+ <h2>Releases <span class="h2-sub" id="releases-note">download volume per tag</span></h2>
</div>
<div class="table-wrap">
<table id="releases-table">
@@ -1314,6 +1518,7 @@
<tbody></tbody>
</table>
</div>
+ <div class="list-more" id="releases-more" hidden></div>
</section>
<footer>
@@ -1338,7 +1543,18 @@
// new install with one row of data.
// =====================================================================
- const LS_PERIOD = 'phosphene.stats.period';
+ // Safe localStorage — private browsing (and some locked-down browser
+ // profiles) throw on getItem/setItem rather than just failing quietly,
+ // which used to be able to take the chip-init code down with it. Every
+ // read/write in this file goes through these two now.
+ function lsGet(key) {
+ try { return localStorage.getItem(key); } catch (_) { return null; }
+ }
+ function lsSet(key, value) {
+ try { localStorage.setItem(key, value); } catch (_) { /* ignore */ }
+ }
+
+ const LS_RANGE = 'phosphene.stats.range';
const REPO_URL = 'https://github.com/mrbizarro/phosphene';
const JSONL_URL = '/stats/data';
// Refresh endpoint is "coming soon" on the panel side — POST best-effort
@@ -1368,16 +1584,20 @@
};
let allRows = [];
- let currentPeriod = '30';
- // Independent state for the dedicated clones-history chart — does NOT
- // share with currentPeriod so flipping the clones range doesn't
- // re-render every other chart in the "Over time" section.
- const clonesAllTime = { period: 'all', bucket: 'weekly' };
- const LS_CLONES_PERIOD = 'phosphene-stats-clones-period';
+ // Global range: '7' | '30' | '90' | 'all' — client-side day-count form
+ // (matches sliceByPeriod/sliceTimelineByPeriod). Drives every chart AND
+ // the server fetch (?range=7d/30d/90d/all). ONE control now, replacing
+ // the old independent currentPeriod + clonesAllTime.period pair.
+ let globalRange = '30';
+ const clonesAllTime = { bucket: 'weekly' };
const LS_CLONES_BUCKET = 'phosphene-stats-clones-bucket';
const charts = {}; // id -> Chart instance
const sparkCharts = {}; // id -> mini Chart
+ /** '7'/'30'/'90'/'all' (client slicing form) -> '7d'/'30d'/'90d'/'all'
+ * (the server's ?range= form). */
+ function serverRange(r) { return r === 'all' ? 'all' : `${r}d`; }
+
// ===================================================================
// Helpers
// ===================================================================
@@ -1443,8 +1663,10 @@
});
}
- /** Two-part delta string (yday + week-over-week). */
- function deltaHtml(today, yesterday, weekAgo) {
+ /** Delta string: d/d + w/w, plus "vs N days ago" when the selected
+ * range is longer than a week (7d and 'all' are covered by w/w and by
+ * having no meaningful prior period, respectively — see renderKpiStrip). */
+ function deltaHtml(today, yesterday, weekAgo, rangeAgo, rangeLabel) {
const out = [];
if (today != null && yesterday != null) {
out.push(deltaPart(today - yesterday, 'd/d'));
@@ -1452,6 +1674,9 @@
if (today != null && weekAgo != null && weekAgo !== yesterday) {
out.push(deltaPart(today - weekAgo, 'w/w'));
}
+ if (today != null && rangeAgo != null && rangeLabel) {
+ out.push(deltaPart(today - rangeAgo, `${rangeLabel} ago`));
+ }
if (!out.length) return '';
return `<div class="deltas">${out.join('')}</div>`;
}
@@ -1597,6 +1822,15 @@
const wkIdx = rows.length - 8;
const week = wkIdx >= 0 ? rows[wkIdx] : null;
+ // "vs N days ago" — only for ranges longer than a week (7d duplicates
+ // w/w; 'all' has no meaningful prior point to compare a single day
+ // to), and only when the archive actually reaches back that far.
+ const rangeDays = (globalRange !== 'all' && globalRange !== '7')
+ ? parseInt(globalRange, 10) : null;
+ const rangeIdx = rangeDays ? rows.length - 1 - rangeDays : -1;
+ const rangeRow = rangeIdx >= 0 ? rows[rangeIdx] : null;
+ const rangeLabel = rangeRow && rangeDays ? `${rangeDays}d` : null;
+
// 30-day sparkline series (best-effort — uses raw rows).
const sparkRows = rows.slice(-30);
const sparkOf = pick => sparkRows.map(pick);
@@ -1610,34 +1844,48 @@
const cards = [
{
key: 'stars', label: 'Stars',
+ title: 'Total GitHub stars on the repo right now.',
value: last.stars, yday: prev.stars, wk: week?.stars,
+ rangeAgo: rangeRow?.stars,
spark: sparkOf(r => r.stars), color: C.accent,
},
{
key: 'forks', label: 'Forks',
+ title: 'Copies of the repo other GitHub accounts have made.',
value: last.forks, yday: prev.forks, wk: week?.forks,
+ rangeAgo: rangeRow?.forks,
spark: sparkOf(r => r.forks), color: C.purple,
},
{
key: 'clones', label: 'Clones · today', hero: true,
+ title: 'git clones of the repo today (GitHub Traffic API). The '
+ + 'closest signal we have to "how many people installed today" '
+ + '— it also counts CI, re-clones after a failed install, etc.',
value: last.clones?.count,
yday: prev.clones?.count, wk: week?.clones?.count,
+ rangeAgo: rangeRow?.clones?.count,
spark: clonesS.map(p => p.count), color: C.pink,
sparkGradient: true,
},
{
key: 'views', label: 'Views · today',
+ title: 'Page views on the repo today (GitHub Traffic API).',
value: last.views?.count,
yday: prev.views?.count, wk: week?.views?.count,
+ rangeAgo: rangeRow?.views?.count,
spark: viewsS.map(p => p.count), color: C.amber,
},
{
key: 'work', label: 'Open issues + PRs',
+ title: 'Everything currently open on the repo — bug reports, '
+ + 'feature requests, and pull requests waiting on review.',
value: (last.open_issues ?? 0) + (last.open_prs ?? 0),
yday: (prev.open_issues ?? 0) + (prev.open_prs ?? 0),
wk: (week?.open_issues ?? null) != null
? (week.open_issues + (week.open_prs ?? 0))
: null,
+ rangeAgo: (rangeRow?.open_issues ?? null) != null
+ ? (rangeRow.open_issues + (rangeRow.open_prs ?? 0)) : null,
sub: `${last.open_issues ?? 0} issues · ${last.open_prs ?? 0} prs`,
spark: sparkOf(r => (r.open_issues ?? 0) + (r.open_prs ?? 0)),
color: C.red,
@@ -1665,9 +1913,10 @@
: '';
const subHtml = c.sub
? `<div class="deltas"><span class="delta" style="color:var(--muted)">${escapeHtml(c.sub)}</span></div>`
- : deltaHtml(c.value, c.yday, c.wk);
+ : deltaHtml(c.value, c.yday, c.wk, c.rangeAgo, rangeLabel);
+ const titleAttr = c.title ? ` title="${escapeAttr(c.title)}"` : '';
return `
- <div class="kpi${hero}${sparkOk ? ' has-spark' : ''}" data-key="${c.key}" tabindex="0">
+ <div class="kpi${hero}${sparkOk ? ' has-spark' : ''}" data-key="${c.key}" tabindex="0"${titleAttr}>
<div class="label">${escapeHtml(c.label)}</div>
${valHtml}
${subHtml}
@@ -2052,8 +2301,9 @@
}
// ===================================================================
- // CHART — Clones · all-time history (dedicated line chart).
- // Independent state (clonesAllTime.period / .bucket). Bucketing keeps
+ // CHART — Clones · history (dedicated line chart).
+ // Period comes from the global range control; only bucketing
+ // (clonesAllTime.bucket) is this chart's own state. Bucketing keeps
// long ranges readable (weekly default; monthly for multi-year).
// ===================================================================
@@ -2105,7 +2355,7 @@
return;
}
let dailySeries = clonesSeriesAllTime(rows);
- dailySeries = sliceTimelineByPeriod(dailySeries, clonesAllTime.period);
+ dailySeries = sliceTimelineByPeriod(dailySeries, globalRange);
if (!dailySeries.length) {
chartEmpty(id, 'no clones data in this range');
return;
@@ -2516,8 +2766,10 @@
$('#attn-issues-count').textContent = fmt(issuesTotal);
$('#attn-prs-count').textContent = fmt(prsTotal);
- // Cap what we actually paint per column so a big backlog stays glanceable.
- const SHOWN = 12;
+ // 8 visible by default; the rest are rendered but hidden behind an
+ // in-page "show all" (same pattern as Errors and Releases) — a long
+ // backlog used to push every section below it off the screen.
+ const SHOWN = 8;
const paint = (list, listSel, moreSel, total, noun) => {
const body = $(listSel);
@@ -2530,15 +2782,21 @@
if (more) more.hidden = true;
return;
}
- body.innerHTML = list.slice(0, SHOWN).map(openItemRow).join('');
- const hiddenCount = Math.max(0, total - Math.min(list.length, SHOWN));
+ body.innerHTML = list.map((it, i) =>
+ openItemRow(it).replace(/^\s*<li/, i >= SHOWN ? '<li hidden' : '<li')).join('');
+ const unfetched = Math.max(0, total - list.length);
const capped = !!last.open_items_truncated;
- if (more && (hiddenCount > 0 || capped)) {
+ const ghNote = (unfetched > 0 || capped)
+ ? ` <a href="${REPO_URL}/issues" target="_blank" rel="noopener">${unfetched > 0 ? `+${fmt(unfetched)} more` : 'more'} on GitHub ↗</a>` : '';
+ if (!more) return;
+ if (list.length > SHOWN) {
+ more.hidden = false;
+ more.innerHTML = `<button class="btn ghost list-toggle" type="button">show all ${fmt(list.length)} ${noun}</button>${ghNote}`;
+ wireListToggle(more.querySelector('.list-toggle'), body, 'li', SHOWN, list.length, noun);
+ } else if (ghNote) {
more.hidden = false;
- more.textContent = capped
- ? `+ more (list capped at fetch time) — see all on GitHub ↗`
- : `+ ${hiddenCount} more ${noun} — see all on GitHub ↗`;
- } else if (more) {
+ more.innerHTML = ghNote.trim();
+ } else {
more.hidden = true;
}
};
@@ -2582,12 +2840,25 @@
}).join('');
}
+ const RANGE_TEXT = { '7': '7d', '30': '30d', '90': '90d', 'all': 'all time' };
+
+ /** "+12%" / "−4%" pill, or '' when there's nothing to compare to
+ * (matches _pct_delta on the server: None means no baseline, not 0). */
+ function pctDeltaHtml(pct) {
+ if (pct == null || !Number.isFinite(pct)) return '';
+ if (pct === 0) return ` <span class="trend flat">±0%</span>`;
+ const cls = pct > 0 ? 'up' : 'down';
+ const sign = pct > 0 ? '+' : '';
+ return ` <span class="trend ${cls}">${sign}${pct}%</span>`;
+ }
+
function renderUsage(u) {
const sec = $('#sec-usage');
if (!sec) return;
sec.hidden = false;
const isFleet = u.source === 'fleet';
+ const rangeTxt = RANGE_TEXT[globalRange] || globalRange;
const note = $('#usage-note');
const srcEl = $('#usage-src');
const noteText = $('#usage-note-text');
@@ -2610,6 +2881,7 @@
// Headline tiles. Null values render as "—" rather than 0 so
// "we have no data" never masquerades as "the number is zero".
const t = u.tiles || {};
+ const d = u.deltas || {};
// "All time" is since the first install that ever pinged — the fleet
// has a first day and the tile says which, so the number is not read
// as "since the app existed".
@@ -2632,34 +2904,46 @@
: 'completed · all installs · ' + since);
const tiles = [
{ label: 'Total renders · fleet', value: isFleet ? fmt(t.total_renders) : '—',
- sub: fleetSub, hero: true, warn: !isFleet },
+ sub: fleetSub, hero: true, warn: !isFleet,
+ title: 'Every render ever completed across every install that has ever reported in, all time — the fleet total, not this machine.' },
{ label: 'Total renders · this Mac',
value: fmt(isFleet ? m.total_renders : t.total_renders),
sub: 'completed' + (m.first_day || (!isFleet && firstDay)
- ? ' · since ' + (m.first_day || firstDay) : '') },
+ ? ' · since ' + (m.first_day || firstDay) : ''),
+ title: 'Renders completed on THIS Mac only, all time.' },
{ label: isFleet ? 'Total installs' : 'Installs',
value: isFleet ? fmt(t.total_installs) : '—',
- sub: isFleet ? 'ever booted · ' + since : fleetSub },
- { label: isFleet ? 'Weekly active installs' : 'Active this week',
- value: fmt(t.weekly_active_installs),
- sub: isFleet ? 'unique installs · 7d' : 'this machine · 7d' },
- { label: 'Renders', value: fmt(t.renders_7d),
- sub: 'completed + failed · 14d · ' + (isFleet ? 'all installs' : 'this machine') },
- { label: 'H3 share', value: fmtPct(t.h3_share_pct), sub: 'of renders · 14d' },
- { label: 'Error rate', value: fmtPct(t.error_rate_pct), sub: 'failed renders · 14d' },
- { label: 'Refused', value: fmt(t.refusals_7d), sub: 'declined on purpose · 7d' },
+ sub: isFleet ? 'ever booted · ' + since : fleetSub,
+ title: 'Distinct machines that have ever booted the panel with analytics on, all time.' },
+ { label: isFleet ? 'Active installs' : 'Active this range',
+ value: fmt(t.active_in_range) + pctDeltaHtml(d.active_in_range_pct),
+ sub: (isFleet ? 'unique installs' : 'this machine') + ' · ' + rangeTxt,
+ title: `Distinct installs that booted the panel in the selected range (${rangeTxt}), vs the same-length period before it.` },
+ { label: 'Renders', value: fmt(t.renders_in_range) + pctDeltaHtml(d.renders_in_range_pct),
+ sub: 'completed + failed · ' + rangeTxt + ' · ' + (isFleet ? 'all installs' : 'this machine'),
+ title: `Renders (successful and failed) in the selected range, vs the same-length period before it.` },
+ { label: 'H3 share', value: fmtPct(t.h3_share_pct), sub: 'of renders · ' + rangeTxt,
+ title: `Share of renders in the selected range (${rangeTxt}) that used the H3 engine rather than LTX.` },
+ { label: 'Error rate', value: fmtPct(t.error_rate_pct)
+ // Inverted vs the usual up=green/down=red: for an error rate, a
+ // RISE is the bad direction and a FALL is the good one.
+ + (d.error_rate_pp != null ? ` <span class="trend ${d.error_rate_pp > 0 ? 'down' : (d.error_rate_pp < 0 ? 'up' : 'flat')}">${d.error_rate_pp > 0 ? '+' : ''}${d.error_rate_pp}pp</span>` : ''),
+ sub: 'failed renders · ' + rangeTxt,
+ title: `Share of renders that failed in the selected range. The pp badge is the change in percentage points vs the prior period.` },
+ { label: 'Refused', value: fmt(t.refusals_in_range), sub: 'declined on purpose · ' + rangeTxt,
+ title: 'Renders the panel declined before starting (missing model, bad params, etc.) — never counted as a failure.' },
];
const grid = $('#usage-tiles');
if (grid) {
grid.innerHTML = tiles.map(k => `
- <div class="kpi${k.hero ? ' is-hero' : ''}${k.warn ? ' is-unknown' : ''}">
+ <div class="kpi${k.hero ? ' is-hero' : ''}${k.warn ? ' is-unknown' : ''}"${k.title ? ` title="${escapeAttr(k.title)}"` : ''}>
<div class="label">${escapeHtml(k.label)}</div>
<div class="value">${k.value}</div>
<div class="delta">${escapeHtml(k.sub)}</div>
</div>`).join('');
}
- renderUsageGrowth(u.growth || {}, isFleet);
+ renderUsageGrowth(u.growth || {}, isFleet, rangeTxt);
// Pack-flip alert — the H3-vanished detector. Any true→false
// transition on any pack counts; h3 is called out by name because
@@ -2674,19 +2958,13 @@
const total = lost + others;
alert.classList.toggle('is-clear', total === 0);
alert.innerHTML = total === 0
- ? `<span class="n">0</span><span>optional-pack regressions in the last 7 days.</span>`
- : `<span class="n">${fmt(total)}</span><span>optional-pack regression${total === 1 ? '' : 's'} in the last 7 days`
+ ? `<span class="n">0</span><span>optional-pack regressions in ${escapeHtml(rangeTxt)}.</span>`
+ : `<span class="n">${fmt(total)}</span><span>optional-pack regression${total === 1 ? '' : 's'} in ${escapeHtml(rangeTxt)}`
+ (lost ? ` — <strong>H3 went from installed to missing ${fmt(lost)}×</strong>` : '')
+ `. A pack that disappears between boots is a broken install, not a user choice.</span>`;
}
- const errs = Array.isArray(u.top_errors) ? u.top_errors : [];
- const errCount = $('#usage-errors-count');
- if (errCount) errCount.textContent = fmt(errs.reduce((a, r) => a + (Number(r.count) || 0), 0));
- // Ranked by installs, not events: one install retrying a broken model dir
- // 400 times a week is one problem, not the fleet's biggest.
- paintDist('#usage-errors', errs, 'signature', { err: true,
- sub: r => (r.people === null || r.people === undefined) ? '' : `· ${fmt(r.people)} install${Number(r.people) === 1 ? '' : 's'}` });
+ renderErrorGroups(u, rangeTxt);
const fbv = Array.isArray(u.failures_by_version) ? u.failures_by_version : [];
paintDist('#usage-failures-by-version', fbv, 'version', { err: true,
sub: r => `failed · ${r.pct}% of ${fmt((Number(r.failed) || 0) + (Number(r.ok) || 0))} · ${fmt(r.people)} install${Number(r.people) === 1 ? '' : 's'}` });
@@ -2699,10 +2977,135 @@
paintDist('#usage-ram', u.ram, 'ram_gb');
}
+ // ===================================================================
+ // ERRORS — collapsible, grouped by the closed error_class taxonomy.
+ // Collapsed by default; header carries total + trend so the owner
+ // gets signal without opening it. Top 5 groups (sorted by installs
+ // affected, server-side) with a "show all" for the rest.
+ // ===================================================================
+
+ const ERROR_CLASS_LABELS = {
+ refused: 'Refused', oom_jetsam: 'OOM (jetsam)', metal_watchdog: 'Metal watchdog',
+ metal_oom: 'Metal OOM', native_crash: 'Native crash',
+ helper_start_timeout: 'Helper start timeout', helper_exit: 'Helper exited',
+ model_missing: 'Model missing', model_corrupt: 'Model corrupt',
+ download_failed: 'Download failed', venv_broken: 'Venv broken',
+ bad_params: 'Bad parameters', input_missing: 'Input missing',
+ file_missing: 'File missing', disk_full: 'Disk full',
+ export_failed: 'Export failed', timeout: 'Timeout',
+ cancelled_race: 'Cancelled (race)', other: 'Other / unclassified',
+ };
+ function prettyErrorClass(cls) {
+ return ERROR_CLASS_LABELS[cls] || String(cls || 'other').replace(/_/g, ' ');
+ }
+
+ const ERRORS_SHOWN_DEFAULT = 5;
+ let errorGroupsFull = [];
+
+ function errorGroupRowHtml(g) {
+ const installsTxt = `${fmt(g.installs)} install${Number(g.installs) === 1 ? '' : 's'}`;
+ const firstAgo = g.first_seen ? dayAgo(g.first_seen) : '—';
+ const lastAgo = g.last_seen ? dayAgo(g.last_seen) : '—';
+ return `
+ <div class="error-group">
+ <div class="error-group-head">
+ <span class="error-group-class">${escapeHtml(prettyErrorClass(g.error_class))}</span>
+ <span class="error-group-stat"><strong>${fmt(g.count)}</strong> event${Number(g.count) === 1 ? '' : 's'}</span>
+ <span class="error-group-stat"><strong>${installsTxt}</strong> affected</span>
+ <span class="error-group-meta" title="first seen ${escapeAttr(g.first_seen || '—')} (UTC)&#10;last seen ${escapeAttr(g.last_seen || '—')} (UTC)">
+ first ${escapeHtml(firstAgo)} · last ${escapeHtml(lastAgo)}
+ </span>
+ </div>
+ <div class="error-group-msg" tabindex="0" role="button"
+ aria-label="click to show the full message">${escapeHtml(g.top_message || 'unknown error')}</div>
+ </div>`;
+ }
+
+ function renderErrorGroups(u, rangeTxt) {
+ const groups = Array.isArray(u.error_groups) ? u.error_groups.slice() : [];
+ errorGroupsFull = groups;
+ const total = groups.reduce((a, g) => a + (Number(g.count) || 0), 0);
+ const countEl = $('#errors-total-count');
+ if (countEl) countEl.textContent = fmt(total);
+
+ const trendEl = $('#errors-trend');
+ if (trendEl) {
+ const pct = (u.deltas || {}).errors_count_pct;
+ if (pct == null || !Number.isFinite(pct)) {
+ trendEl.textContent = '';
+ trendEl.className = 'errors-trend';
+ } else if (pct === 0) {
+ trendEl.textContent = '±0% vs prior ' + rangeTxt;
+ trendEl.className = 'errors-trend flat';
+ } else {
+ trendEl.textContent = (pct > 0 ? '+' : '') + pct + '% vs prior ' + rangeTxt;
+ trendEl.className = 'errors-trend ' + (pct > 0 ? 'up' : 'down');
+ }
+ }
+
+ const empty = $('#errors-empty');
+ const body = $('#errors-groups');
+ const showAll = $('#errors-showall');
+ if (!body) return;
+ if (!groups.length) {
+ if (empty) empty.hidden = false;
+ body.innerHTML = '';
+ if (showAll) showAll.hidden = true;
+ return;
+ }
+ if (empty) empty.hidden = true;
+ body.innerHTML = groups.slice(0, ERRORS_SHOWN_DEFAULT).map(errorGroupRowHtml).join('');
+ if (showAll) {
+ const rest = groups.length - ERRORS_SHOWN_DEFAULT;
+ if (rest > 0) {
+ showAll.hidden = false;
+ showAll.textContent = `show ${rest} more error class${rest === 1 ? '' : 'es'}`;
+ showAll.dataset.expanded = '0';
+ } else {
+ showAll.hidden = true;
+ }
+ }
+ }
+
+ function initErrorsToggle() {
+ const toggle = $('#errors-toggle');
+ const body = $('#errors-body');
+ if (toggle && body) {
+ toggle.addEventListener('click', () => {
+ const open = toggle.getAttribute('aria-expanded') === 'true';
+ toggle.setAttribute('aria-expanded', String(!open));
+ body.hidden = open;
+ });
+ }
+ const showAll = $('#errors-showall');
+ if (showAll) {
+ showAll.addEventListener('click', () => {
+ const body2 = $('#errors-groups');
+ if (!body2) return;
+ body2.innerHTML = errorGroupsFull.map(errorGroupRowHtml).join('');
+ showAll.hidden = true;
+ });
+ }
+ // Expand-on-click for a truncated message — event delegation so it
+ // keeps working after re-renders replace the row markup.
+ const groupsEl = $('#errors-groups');
+ if (groupsEl) {
+ groupsEl.addEventListener('click', (e) => {
+ const msg = e.target.closest('.error-group-msg');
+ if (msg) msg.classList.toggle('is-expanded');
+ });
+ groupsEl.addEventListener('keydown', (e) => {
+ if (e.key !== 'Enter' && e.key !== ' ') return;
+ const msg = e.target.closest('.error-group-msg');
+ if (msg) { e.preventDefault(); msg.classList.toggle('is-expanded'); }
+ });
+ }
+ }
+
// Growth chart: cumulative installs (line, left axis) against renders per
// day (bars, right axis). Installs are all-time so the line is the shape of
// the whole project; renders are 30 days so the bars stay readable.
- function renderUsageGrowth(g, isFleet) {
+ function renderUsageGrowth(g, isFleet, rangeTxt) {
const box = $('#usage-growth');
const id = 'chart-usage-growth';
const el = document.getElementById(id);
@@ -2726,7 +3129,8 @@
const first = weeks[0], now = weeks[weeks.length - 1];
const wau = (first && now && weeks.length > 1)
? ` · weekly active ${fmt(first.installs)} → ${fmt(now.installs)} over ${weeks.length} weeks` : '';
- sub.textContent = (isFleet ? 'installs, all time · renders per day, 30d' : 'this machine · renders per day, 30d') + wau;
+ const rt = rangeTxt || '30d';
+ sub.textContent = (isFleet ? `installs, all time · renders per day, ${rt}` : `this machine · renders per day, ${rt}`) + wau;
}
charts[id] = new Chart(el.getContext('2d'), {
type: 'bar',
@@ -2754,11 +3158,21 @@
});
}
+ // 4.17.3 review: a range change while an older request is still in
+ // flight let the OLDER response land last and paint 30-day totals under
+ // 7-day labels. Each loader stamps its request; a superseded answer is
+ // dropped.
+ let _usageGen = 0;
+ let _rowsGen = 0;
async function loadUsage(force) {
+ const gen = ++_usageGen;
try {
- const r = await fetch(USAGE_URL + (force ? '?force=1' : ''), { cache: 'no-store' });
+ const qs = new URLSearchParams({ range: serverRange(globalRange) });
+ if (force) qs.set('force', '1');
+ const r = await fetch(USAGE_URL + '?' + qs.toString(), { cache: 'no-store' });
if (!r.ok) throw new Error('HTTP ' + r.status);
const u = await r.json();
+ if (gen !== _usageGen) return; // a newer range was asked for
if (u && u.ok === false && !u.tiles) throw new Error(u.error || 'usage unavailable');
renderUsage(u || {});
} catch (e) {
@@ -2824,6 +3238,20 @@
}
}
+ /** "show all N" / "show fewer" for a list whose overflow rows carry the
+ * `hidden` attribute. `keepVisible(el, i)` decides which rows stay
+ * visible when collapsed (default: the first `shown`). */
+ function wireListToggle(btn, container, rowSel, shown, total, noun, keepVisible) {
+ if (!btn) return;
+ const keep = keepVisible || ((el, i) => i < shown);
+ let open = false;
+ btn.addEventListener('click', () => {
+ open = !open;
+ container.querySelectorAll(rowSel).forEach((el, i) => { el.hidden = open ? false : !keep(el, i); });
+ btn.textContent = open ? 'show fewer' : `show all ${fmt(total)} ${noun}`;
+ });
+ }
+
// ===================================================================
// RELEASES — only renders when release_timeline is present.
// ===================================================================
@@ -2842,13 +3270,32 @@
? r.pack_downloads : (r.total_downloads || 0);
const max = Math.max(1, ...tl.map(shown));
const body = $('#releases-table tbody');
- body.innerHTML = tl.map(r => {
+ // Newest first. Collapsed view = the 8 most recent tags plus any older
+ // tag whose downloads are notable (>= 10% of the biggest) — ~100 rows
+ // of mostly-zero tags used to make up half the page.
+ const RECENT = 8;
+ const sorted = tl.slice().sort((a, b) => (b.published_at || '') < (a.published_at || '') ? -1 : 1);
+ const notable = r => shown(r) > 0 && shown(r) >= max * 0.10;
+ const keep = sorted.map((r, i) => i < RECENT || notable(r));
+ const keptCount = keep.filter(Boolean).length;
+ const note = $('#releases-note');
+ if (note) note.textContent = keptCount < sorted.length
+ ? `${RECENT} most recent + ${keptCount - Math.min(RECENT, sorted.length)} older with notable downloads · ${fmt(sorted.length)} tags total`
+ : `${fmt(sorted.length)} tags`;
+ const toggleWrap = $('#releases-more');
+ if (toggleWrap) {
+ toggleWrap.hidden = keptCount >= sorted.length;
+ toggleWrap.innerHTML = `<button class="btn ghost list-toggle" type="button">show all ${fmt(sorted.length)} releases</button>`;
+ wireListToggle(toggleWrap.querySelector('.list-toggle'), body, 'tr', RECENT, sorted.length, 'releases',
+ (el) => el.dataset.keep === '1');
+ }
+ body.innerHTML = sorted.map((r, idx) => {
const isPack = String(r.tag || '').startsWith('weights-') && r.pack_downloads != null;
const w = Math.max(2, (shown(r) / max) * 100);
const when = r.published_at ? new Date(r.published_at) : null;
const whenStr = (when && Number.isFinite(when.getTime()))
? when.toISOString().slice(0, 10) : '—';
- return `<tr>
+ return `<tr data-keep="${keep[idx] ? 1 : 0}"${keep[idx] ? '' : ' hidden'}>
<td><code>${escapeHtml(r.tag || '—')}</code></td>
<td class="mono" style="color:var(--muted)">${escapeHtml(whenStr)}</td>
<td class="num" title="${escapeAttr(isPack
@@ -2886,48 +3333,48 @@
}
// ===================================================================
- // PERIOD CHIPS
+ // GLOBAL RANGE — one control drives every chart + the Usage section.
+ // A range change re-fetches from the server (the archive is trimmed
+ // server-side per range, and the Usage tiles/errors are recomputed
+ // over the new window) rather than just re-slicing what's already in
+ // memory, so switching to "All time" after loading "30 days" actually
+ // gets the rest of the archive.
// ===================================================================
- function initChips() {
- const saved = localStorage.getItem(LS_PERIOD);
- if (saved && ['7','30','90','365','all'].includes(saved)) currentPeriod = saved;
- // ONLY chips with data-period — exclude the clones-specific chips
- // (they have data-clones-period / data-clones-bucket instead).
- $$('.chip[data-period]').forEach(b => {
- b.setAttribute('aria-pressed', String(b.dataset.period === currentPeriod));
+ const RANGE_HINTS = {
+ '7': 'last 7 days',
+ '30': 'last 30 days',
+ '90': 'last 90 days (3 months)',
+ 'all': 'all time — no delta comparisons (no prior period to compare to)',
+ };
+
+ function initGlobalRange() {
+ const saved = lsGet(LS_RANGE);
+ if (saved && ['7', '30', '90', 'all'].includes(saved)) globalRange = saved;
+ const hint = $('#range-bar-hint');
+ if (hint) hint.textContent = RANGE_HINTS[globalRange] || '';
+ $$('#global-range-chips .chip[data-range]').forEach(b => {
+ b.setAttribute('aria-pressed', String(b.dataset.range === globalRange));
b.addEventListener('click', () => {
- currentPeriod = b.dataset.period;
- localStorage.setItem(LS_PERIOD, currentPeriod);
- $$('.chip[data-period]').forEach(x => x.setAttribute('aria-pressed', String(x === b)));
- renderAllCharts(allRows, currentPeriod);
+ if (b.dataset.range === globalRange) return;
+ globalRange = b.dataset.range;
+ lsSet(LS_RANGE, globalRange);
+ $$('#global-range-chips .chip[data-range]').forEach(x =>
+ x.setAttribute('aria-pressed', String(x === b)));
+ if (hint) hint.textContent = RANGE_HINTS[globalRange] || '';
+ loadAll();
});
});
}
function initClonesChart() {
- const sp = localStorage.getItem(LS_CLONES_PERIOD);
- const sb = localStorage.getItem(LS_CLONES_BUCKET);
- if (sp && ['30','90','365','all'].includes(sp)) clonesAllTime.period = sp;
- if (sb && ['daily','weekly','monthly'].includes(sb)) clonesAllTime.bucket = sb;
- // Period chips
- $$('.clones-chip-period').forEach(b => {
- b.setAttribute('aria-pressed', String(b.dataset.clonesPeriod === clonesAllTime.period));
- b.addEventListener('click', () => {
- clonesAllTime.period = b.dataset.clonesPeriod;
- localStorage.setItem(LS_CLONES_PERIOD, clonesAllTime.period);
- $$('.clones-chip-period').forEach(x =>
- x.setAttribute('aria-pressed', String(x.dataset.clonesPeriod === clonesAllTime.period))
- );
- renderClonesHistoryChart(allRows);
- });
- });
- // Bucket chips
+ const sb = lsGet(LS_CLONES_BUCKET);
+ if (sb && ['daily', 'weekly', 'monthly'].includes(sb)) clonesAllTime.bucket = sb;
$$('.clones-chip-bucket').forEach(b => {
b.setAttribute('aria-pressed', String(b.dataset.clonesBucket === clonesAllTime.bucket));
b.addEventListener('click', () => {
clonesAllTime.bucket = b.dataset.clonesBucket;
- localStorage.setItem(LS_CLONES_BUCKET, clonesAllTime.bucket);
+ lsSet(LS_CLONES_BUCKET, clonesAllTime.bucket);
$$('.clones-chip-bucket').forEach(x =>
x.setAttribute('aria-pressed', String(x.dataset.clonesBucket === clonesAllTime.bucket))
);
@@ -3023,7 +3470,7 @@
const draw = () => {
if (drawn) return;
drawn = true;
- renderAllCharts(allRows, currentPeriod);
+ renderAllCharts(allRows, globalRange);
};
if (!('IntersectionObserver' in window)) { draw(); return; }
const io = new IntersectionObserver(entries => {
@@ -3039,8 +3486,9 @@
// ===================================================================
async function loadRows() {
- const r = await fetch(JSONL_URL, { cache: 'no-store' });
- if (!r.ok) throw new Error('HTTP ' + r.status + ' on ' + JSONL_URL);
+ const url = JSONL_URL + '?range=' + encodeURIComponent(serverRange(globalRange));
+ const r = await fetch(url, { cache: 'no-store' });
+ if (!r.ok) throw new Error('HTTP ' + r.status + ' on ' + url);
const text = await r.text();
const rows = text.split(/\n+/).filter(Boolean).map(l => {
try { return JSON.parse(l); }
@@ -3055,8 +3503,11 @@
// ===================================================================
async function main() {
+ const gen = ++_rowsGen;
try {
- allRows = await loadRows();
+ const rows = await loadRows();
+ if (gen !== _rowsGen) return; // a newer range was asked for
+ allRows = rows;
renderMeta(allRows);
if (!allRows.length) {
$('#kpi-grid').setAttribute('aria-busy', 'false');
@@ -3081,18 +3532,25 @@
}
}
+ // Runs both data sources for the CURRENT globalRange. Called at boot and
+ // every time the range chip changes — the archive and the usage
+ // telemetry are independent sources (either can be empty or broken
+ // without taking the other down), so they're kicked off together but
+ // not awaited on each other.
+ function loadAll() {
+ main();
+ loadUsage(false);
+ }
+
// ===================================================================
// BOOT
// ===================================================================
- initChips();
+ initGlobalRange();
initClonesChart();
initRefresh();
initUsageRefresh();
- main();
- // Own fetch, not awaited by main() — the GitHub archive and the usage
- // telemetry are independent sources and either can be empty or broken
- // without taking the other down with it.
- loadUsage(false);
+ initErrorsToggle();
+ loadAll();
</script>
</body>
</html>
diff --git a/scripts/a2v_separate.py b/scripts/a2v_separate.py
new file mode 100755
index 0000000..a1c7f00
--- /dev/null
+++ b/scripts/a2v_separate.py
@@ -0,0 +1,117 @@
+#!/usr/bin/env python3
+"""Separate the sung vocal out of a song, for a2v "Listen to the voice only".
+
+Runs in the ENGINE venv (the one the helper uses): demucs + torch live there,
+installed by scripts/pinokio/a2v_stems_deps.sh from install.js and from every
+Update (scripts/post_update.sh). The panel calls this as a tracked subprocess
+so Stop reaches it.
+
+WHY A RUNNER AND NOT THE `demucs` CLI. The CLI reads and writes audio through
+torchaudio, and torchaudio 2.9+ moved load/save onto torchcodec (a native
+package with its own FFmpeg ABI rules). demucs 4.0.1's `save_audio` therefore
+dies on a current torchaudio after it has spent the whole separation. This
+runner uses demucs only for the MODEL: audio comes in through the panel's own
+ffmpeg and goes out through the stdlib `wave` module, so no audio I/O library
+can break it.
+
+ a2v_separate.py --in SONG --out VOCALS.wav [--ffmpeg PATH] [--model NAME]
+ a2v_separate.py --prefetch [--model NAME] # download the weights, exit
+
+Model weights (~80 MB for htdemucs) are cached by torch.hub under $TORCH_HOME;
+the panel points TORCH_HOME at mlx_models/demucs so they live with the rest of
+Phosphene's weights. Exit 0 = the vocal file is written and non-empty.
+"""
+from __future__ import annotations
+
+import argparse
+import os
+import subprocess
+import sys
+import wave
+
+SAMPLE_RATE = 44100 # htdemucs' own rate; the input is resampled to it
+DEFAULT_MODEL = "htdemucs"
+
+
+def _scrub_env() -> None:
+ # The engine venv is shared with MLX work; nothing here needs the MPS
+ # fallback Pinokio injects, and demucs runs on the CPU on purpose (the GPU
+ # belongs to the render this separation is the first step of).
+ os.environ.pop("PYTORCH_ENABLE_MPS_FALLBACK", None)
+ os.environ.pop("PYTORCH_MPS_FAST_MATH", None)
+
+
+def load_model(name: str):
+ from demucs.pretrained import get_model # noqa: PLC0415
+ model = get_model(name)
+ model.eval()
+ return model
+
+
+def read_audio(path: str, ffmpeg: str):
+ import numpy as np # noqa: PLC0415
+ import torch # noqa: PLC0415
+ proc = subprocess.run(
+ [ffmpeg, "-v", "error", "-nostdin", "-i", path, "-f", "f32le",
+ "-ac", "2", "-ar", str(SAMPLE_RATE), "-"],
+ capture_output=True)
+ if proc.returncode != 0 or not proc.stdout:
+ tail = (proc.stderr or b"").decode("utf-8", "replace").strip().splitlines()[-1:]
+ raise RuntimeError(f"could not read the song ({tail[0] if tail else 'ffmpeg wrote nothing'})")
+ pcm = np.frombuffer(proc.stdout, dtype=np.float32).reshape(-1, 2).T.copy()
+ return torch.from_numpy(pcm)
+
+
+def write_wav(path: str, audio) -> None:
+ import numpy as np # noqa: PLC0415
+ pcm = np.clip(audio.numpy().T, -1.0, 1.0)
+ pcm16 = (pcm * 32767.0).astype("<i2")
+ tmp = path + ".part"
+ with wave.open(tmp, "wb") as w:
+ w.setnchannels(pcm16.shape[1])
+ w.setsampwidth(2)
+ w.setframerate(SAMPLE_RATE)
+ w.writeframes(pcm16.tobytes())
+ os.replace(tmp, path)
+
+
+def separate(src: str, dst: str, ffmpeg: str, model_name: str) -> None:
+ import torch # noqa: PLC0415
+ from demucs.apply import apply_model # noqa: PLC0415
+ model = load_model(model_name)
+ wav = read_audio(src, ffmpeg)
+ ref = wav.mean(0)
+ mean, std = ref.mean(), ref.std()
+ std = std if float(std) > 1e-8 else torch.tensor(1.0)
+ with torch.no_grad():
+ sources = apply_model(model, ((wav - mean) / std)[None], device="cpu",
+ shifts=1, split=True, overlap=0.25, progress=False)[0]
+ vocals = sources[model.sources.index("vocals")] * std + mean
+ write_wav(dst, vocals)
+
+
+def main(argv: list[str] | None = None) -> int:
+ ap = argparse.ArgumentParser(description=__doc__.splitlines()[0])
+ ap.add_argument("--in", dest="src")
+ ap.add_argument("--out", dest="dst")
+ ap.add_argument("--ffmpeg", default="ffmpeg")
+ ap.add_argument("--model", default=DEFAULT_MODEL)
+ ap.add_argument("--prefetch", action="store_true")
+ a = ap.parse_args(argv)
+ _scrub_env()
+ if a.prefetch:
+ load_model(a.model)
+ print(f"vocal separator ready ({a.model})")
+ return 0
+ if not a.src or not a.dst:
+ ap.error("--in and --out are required (or --prefetch)")
+ separate(a.src, a.dst, a.ffmpeg, a.model)
+ if not os.path.isfile(a.dst) or os.path.getsize(a.dst) <= 44:
+ print("the separator wrote no audio", file=sys.stderr)
+ return 1
+ print(f"vocals written: {a.dst}")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/scripts/pinokio/README.md b/scripts/pinokio/README.md
index f3b9f6e..e7ec934 100644
--- a/scripts/pinokio/README.md
+++ b/scripts/pinokio/README.md
@@ -82,4 +82,4 @@ Anything bigger belongs here, behind one short `bash …` line.
| `mflux_pack.sh` | `install_qwen.js` | the image-engine pack (Ideogram 4 + Qwen-Edit) |
| `h3_preflight.sh` | `install_h3.js` | Hailuo H3 disk/RAM preflight |
| `h3_build_q8.sh` | `install_h3.js` | the H3 q8 DiT build |
-| `a2v_stems_deps.sh` | nothing yet — run by hand with the `ltx-2-mlx` path | the OPTIONAL stems extra (demucs, torch-based) for the engine venv. A2V conditions the mouth on a separated vocal and the panel muxes the original song back; without it the panel degrades to the full mix and says so, so a queued job never fails on a missing download |
+| `a2v_stems_deps.sh` | `install.js`, `scripts/post_update.sh` (step 7b), `POST /a2v/separator/install` | vocal separation for Lip-sync "Listen to the voice only": demucs 4.0.1 into the engine venv with torch/numpy PINNED to what is on disk, htdemucs weights into `mlx_models/demucs`. The panel runs `scripts/a2v_separate.py` (not the demucs CLI, which dies on torchaudio >= 2.9). Missing separator = the render is refused with an install offer, never quietly run on the full mix |
diff --git a/scripts/pinokio/a2v_stems_deps.sh b/scripts/pinokio/a2v_stems_deps.sh
index 53e3af5..cc9af6e 100755
--- a/scripts/pinokio/a2v_stems_deps.sh
+++ b/scripts/pinokio/a2v_stems_deps.sh
@@ -1,80 +1,95 @@
#!/usr/bin/env bash
-# The STEMS extra for the engine venv — what a vocal-stem-conditioned A2V
-# render needs and an ordinary render does not.
+# VOCAL SEPARATION for a2v "Listen to the voice only" — installed into the
+# engine venv by install.js, by every Update (scripts/post_update.sh) and by
+# the Lip-sync form's own Install button (POST /a2v/separator/install).
#
-# WHY IT IS OPTIONAL. A2V drives a mouth from a waveform, and the waveform it
-# is given is normally the whole record. Drums, bass and guitar reach the audio
-# encoder as energy that can be read as syllables, so the model hedges: the
-# mouth moves a little, all the time, on everything. Conditioning on a
-# SEPARATED VOCAL removes that noise (the panel muxes the original song back
-# over the finished clip, so nothing the audience hears changes). Measured on
-# one shot at one seed, that swap was the difference between a mouth whose
-# movement tracked the voice and one that did not — and it doubled how much
-# the mouth moved at all.
+# WHY EVERY USER GETS IT. A2V drives a mouth from a waveform. Given the whole
+# record, the audio encoder reads drums, bass and guitar as syllables and the
+# model hedges: the mouth moves a little on everything and sings nothing.
+# Conditioning on the separated vocal fixes that, and the panel muxes the
+# original song back, so nothing the audience hears changes. The Lip-sync form
+# has that box ticked by default — and until 4.17 nothing installed the
+# separator, so every user who asked for the voice silently got the mix.
#
-# It is an extra rather than a dependency because it drags torch and
-# torchaudio in (~2.5 GB) for a lane most renders never take, and because a
-# queued job must never fail on a missing optional download — the panel
-# degrades to the full mix and says so.
+# WHAT IT COSTS. torch is already in this venv (the mflux image pack needs
+# it), so this adds ~11 small packages (~15 MB) plus the htdemucs weights
+# (80 MB, into mlx_models/demucs). It NEVER changes a package that is already
+# installed: torch and numpy are pinned to the versions on disk, because a
+# torchaudio resolve would otherwise drag torch to its own release and move the
+# image engine with it.
#
-# WHERE IT GOES: the engine venv's own bin, which is the FIRST place
-# `mlx_ltx_panel._resolve_demucs()` looks. Nothing else on the Mac counts — a
-# demucs living in some other project's virtualenv is not a dependency of
-# Phosphene and must never become one by accident.
+# WHY NOT THE `demucs` CLI. It saves through torchaudio, which since 2.9 needs
+# torchcodec — it dies after the whole separation. The panel runs
+# scripts/a2v_separate.py instead (ffmpeg in, stdlib wave out).
+#
+# Idempotent: a second run on a ready install prints "ready" and exits 0.
+# Exit non-zero = not installed; callers treat that as a WARN, never as a
+# failed Install or Update.
#
# Usage: a2v_stems_deps.sh <path to the ltx-2-mlx checkout>
-set -euo pipefail
+set -uo pipefail
MLX_CHECKOUT="$(cd "${1:?ltx-2-mlx checkout required}" && pwd)"
+APP_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
-# The venv the panel spawns its helper from, in the two layouts that exist.
VENV=""
-for cand in "$MLX_CHECKOUT/.venv" "$MLX_CHECKOUT/env"; do
+for cand in "$MLX_CHECKOUT/env" "$MLX_CHECKOUT/.venv"; do
if [ -x "$cand/bin/python3.11" ] || [ -x "$cand/bin/python" ]; then
VENV="$cand"
break
fi
done
if [ -z "$VENV" ]; then
- echo "no engine venv under $MLX_CHECKOUT (looked for .venv/ and env/)" >&2
- echo "run the engine install first, then this script" >&2
+ echo "no engine venv under $MLX_CHECKOUT - run the engine install first" >&2
exit 1
fi
-
PY="$VENV/bin/python3.11"
[ -x "$PY" ] || PY="$VENV/bin/python"
-# Already there? Say so and stop — this script is run from a sidebar button
-# and a second click must not spend ten minutes re-resolving torch.
-if [ -x "$VENV/bin/demucs" ]; then
- echo "demucs is already installed at $VENV/bin/demucs"
- "$VENV/bin/demucs" --help >/dev/null 2>&1 \
- && echo "it runs" \
- || echo "WARNING: it does not run — reinstall with --force-reinstall" >&2
- exit 0
-fi
-
-# demucs pulls torch + torchaudio. Installed BY NAME, not pinned here: the
-# engine's own constraints file is the version authority on this machine, the
-# same rule music_cover_deps.sh follows for the transcription extra.
-CONSTRAINTS=""
-for cand in "$MLX_CHECKOUT/../pip-build-constraints.txt" \
- "$MLX_CHECKOUT/pip-build-constraints.txt"; do
- [ -f "$cand" ] && { CONSTRAINTS="$cand"; break; }
-done
+# The weights live with Phosphene's other weights, not in a torch cache. NOT
+# ${TORCH_HOME:-...}: Pinokio's ENVIRONMENT may set TORCH_HOME for every app,
+# and the panel looks in mlx_models/demucs (or where it tells us to).
+export TORCH_HOME="${PHOSPHENE_SEPARATOR_HOME:-$APP_ROOT/mlx_models/demucs}"
+unset PYTORCH_ENABLE_MPS_FALLBACK PYTORCH_MPS_FAST_MATH
+RUNNER="$APP_ROOT/scripts/a2v_separate.py"
+PROBE='import demucs.pretrained, demucs.apply, torch'
-if [ -n "$CONSTRAINTS" ]; then
- "$PY" -m pip install --upgrade --constraint "$CONSTRAINTS" demucs
+if "$PY" -c "$PROBE" >/dev/null 2>&1; then
+ echo 'vocal separation: package already installed'
else
- "$PY" -m pip install --upgrade demucs
+ echo 'Installing vocal separation (demucs, ~15 MB + 80 MB weights)...'
+ PINS="$(mktemp -t phos_sep_pins)"
+ "$PY" - > "$PINS" <<'PYPINS'
+import importlib.metadata as m
+for name in ("torch", "numpy"):
+ try:
+ print(f"{name}=={m.version(name)}")
+ except m.PackageNotFoundError:
+ pass
+PYPINS
+ echo "keeping: $(tr '\n' ' ' < "$PINS")"
+ if command -v uv >/dev/null 2>&1; then
+ uv pip install --python "$PY" -c "$PINS" 'demucs==4.0.1'
+ else
+ "$PY" -m pip install -c "$PINS" 'demucs==4.0.1'
+ fi
+ rc=$?
+ rm -f "$PINS"
+ if [ $rc -ne 0 ]; then
+ echo 'vocal separation: package install failed' >&2
+ exit 1
+ fi
+ if ! "$PY" -c "$PROBE"; then
+ echo 'vocal separation: installed but does not import' >&2
+ exit 1
+ fi
fi
-# Prove it, rather than trusting pip's exit code: the panel resolves an
-# executable, so an install that produced a library and no console script is
-# an install that has not happened as far as A2V is concerned.
-if [ ! -x "$VENV/bin/demucs" ]; then
- echo "pip finished but $VENV/bin/demucs is not there" >&2
+# Fetch the weights now, so the first lip-sync render does not stop to
+# download them. Prove the runner loads the model, not just that pip ran.
+if ! "$PY" "$RUNNER" --prefetch; then
+ echo 'vocal separation: the model did not load (network?)' >&2
+ echo 'It will download on first use instead.' >&2
exit 1
fi
-"$VENV/bin/demucs" --help >/dev/null
-echo "demucs installed at $VENV/bin/demucs"
+echo "vocal separation ready (weights in $TORCH_HOME)"
diff --git a/scripts/post_update.sh b/scripts/post_update.sh
index 116afae..4e0f45f 100644
--- a/scripts/post_update.sh
+++ b/scripts/post_update.sh
@@ -237,6 +237,15 @@ echo 'Installing/refreshing the mflux image-engine pack (Ideogram 4 + Qwen-Edit)
# Idempotent — skips when its marker is present.
"$PY" "$ROOT/patch_mflux_fbcache.py"
+# ---- 7b. Vocal separation for Lip-sync ("Listen to the voice only") ---------
+# After step 7 on purpose: demucs is installed with torch PINNED to the copy
+# the mflux pack just settled, so it can never move the image engine's torch.
+# Existing installs get it here — the Lip-sync form's voice-only box has been
+# ON by default since 4.15 and nothing installed the separator before 4.17.x.
+# BEST-EFFORT and idempotent: ready installs print "ready" in about a second.
+bash "$ROOT/scripts/pinokio/a2v_stems_deps.sh" "$ROOT/ltx-2-mlx" \
+ || echo 'WARN: vocal separation did not install - video is unaffected; the Lip-sync form offers Install.'
+
# ---- 8. Weight self-heal ----------------------------------------------------
# Every fetch here is BEST-EFFORT. An Update must not be brickable, and each of
# these has a one-click retry in the panel (Models page / Repair).
diff --git a/scripts/test_analytics_dryrun.py b/scripts/test_analytics_dryrun.py
index e2352db..49a233c 100644
--- a/scripts/test_analytics_dryrun.py
+++ b/scripts/test_analytics_dryrun.py
@@ -735,7 +735,10 @@ class TestEventSchemas(AnalyticsTestCase):
# v4.9: the stale-vendored-engine gate (a 2.5 render
# on an engine predating the Gemma 4 tower is
# refused with the two-Update-clicks remedy).
- "stale_engine"])
+ "stale_engine",
+ # 4.17.x: Lip-sync "Listen to the voice only" on an
+ # install without vocal separation (install prompt).
+ "vocal_separator"])
self.assertEqual(len(set(P._ANALYTICS_REFUSAL_SLUGS)),
len(P._ANALYTICS_REFUSAL_SLUGS))
# `refused` is a real member of the closed error taxonomy, and its
@@ -1150,7 +1153,7 @@ class TestUsageReport(AnalyticsTestCase):
])
r = P._usage_local_report()
self.assertEqual(r["source"], "local")
- self.assertEqual(r["tiles"]["renders_7d"], 3)
+ self.assertEqual(r["tiles"]["renders_in_range"], 3)
self.assertAlmostEqual(r["tiles"]["h3_share_pct"], 33.3, places=1)
self.assertAlmostEqual(r["tiles"]["error_rate_pct"], 33.3, places=1)
self.assertEqual(r["top_errors"], [{"signature": "OOM during decode", "count": 1}])
@@ -1161,7 +1164,7 @@ class TestUsageReport(AnalyticsTestCase):
def test_refusals_are_outside_every_render_number(self):
"""The whole point, expressed as arithmetic. Two completed, one
failed, three refused: the error rate is 1-in-3, not 1-in-6, and
- `renders_7d` is 3, not 6. Getting this wrong is what made the
+ `renders_in_range` is 3, not 6. Getting this wrong is what made the
published failure rate wrong in the first place."""
now = time.time()
self.seed([
@@ -1179,12 +1182,12 @@ class TestUsageReport(AnalyticsTestCase):
"props": {"engine": "h3", "refusal": "h3_ram"}},
])
r = P._usage_local_report()
- self.assertEqual(r["tiles"]["renders_7d"], 3)
+ self.assertEqual(r["tiles"]["renders_in_range"], 3)
self.assertAlmostEqual(r["tiles"]["error_rate_pct"], 33.3, places=1)
# Not in the engine mix either — no engine ran.
self.assertAlmostEqual(r["tiles"]["h3_share_pct"], 33.3, places=1)
# Counted, loudly, in their own place.
- self.assertEqual(r["tiles"]["refusals_7d"], 3)
+ self.assertEqual(r["tiles"]["refusals_in_range"], 3)
self.assertEqual(r["top_refusals"], [
{"refusal": "ingredients_generation", "count": 2},
{"refusal": "h3_ram", "count": 1}])
@@ -1197,12 +1200,12 @@ class TestUsageReport(AnalyticsTestCase):
self.seed([{"event": "render_completed", "ts": old, "at": "x",
"props": {"engine": "ltx"}}])
r = P._usage_local_report()
- self.assertEqual(r["tiles"]["renders_7d"], 0)
+ self.assertEqual(r["tiles"]["renders_in_range"], 0)
def test_empty_log_is_a_valid_report(self):
r = P._usage_local_report()
self.assertTrue(r["ok"])
- self.assertEqual(r["tiles"]["renders_7d"], 0)
+ self.assertEqual(r["tiles"]["renders_in_range"], 0)
self.assertIsNone(r["tiles"]["h3_share_pct"])
self.assertEqual(r["top_errors"], [])
diff --git a/test_a2v_sync_fixes.py b/test_a2v_sync_fixes.py
index 61c3287..d152596 100644
--- a/test_a2v_sync_fixes.py
+++ b/test_a2v_sync_fixes.py
@@ -176,40 +176,36 @@ class ConditioningAudioIsNotAlwaysTheSoundtrack(unittest.TestCase):
{"audio_stem": str(self.root / "nope.wav")}, str(self.song))
self.assertIn("nope.wav", str(cm.exception))
- def test_auto_without_demucs_degrades_with_a_visible_note(self):
- with mock.patch.object(P, "_resolve_demucs", return_value=None):
- got, note = P.a2v_conditioning_audio(
- {"audio_stem_auto": "on"}, str(self.song))
- self.assertEqual(got, str(self.song))
- # VA-21: the note used to claim a Pinokio sidebar entry that does not
- # exist (a2v_stems_deps.sh has no pinokio.js menu item). Reworded to
- # name the real path — running the script directly.
- self.assertIn("a2v_stems_deps.sh", note)
-
- def test_auto_that_fails_mid_separation_never_fails_the_job(self):
- with mock.patch.object(P, "_resolve_demucs",
- return_value=Path("/bin/true")), \
+ def test_auto_without_a_separator_is_refused_not_rendered_on_the_mix(self):
+ # 4.17.x: this used to DEGRADE to the full mix with a log note, which
+ # is the render "Listen to the voice only" exists to prevent.
+ with mock.patch.object(P, "_a2v_separator_command", return_value=None):
+ with self.assertRaises(P.RenderRefused) as cm:
+ P.a2v_conditioning_audio({"audio_stem_auto": "on"}, str(self.song))
+ self.assertEqual(cm.exception.reason, "vocal_separator")
+ self.assertIn("Install it from the Lip-sync form", str(cm.exception))
+
+ def test_auto_that_fails_mid_separation_fails_the_job(self):
+ with mock.patch.object(P, "_a2v_separator_command", return_value=["sep"]), \
mock.patch.object(P, "_a2v_separate_vocals",
- side_effect=RuntimeError("demucs failed: boom")):
- got, note = P.a2v_conditioning_audio(
- {"audio_stem_auto": "1"}, str(self.song))
- self.assertEqual(got, str(self.song))
- self.assertIn("full mix", note)
+ side_effect=RuntimeError("boom")):
+ with self.assertRaises(RuntimeError) as cm:
+ P.a2v_conditioning_audio({"audio_stem_auto": "1"}, str(self.song))
+ self.assertIn("boom", str(cm.exception))
+ self.assertIn("full mix", str(cm.exception))
def test_auto_that_works_hands_back_the_stem(self):
- with mock.patch.object(P, "_resolve_demucs",
- return_value=Path("/bin/true")), \
+ with mock.patch.object(P, "_a2v_separator_command", return_value=["sep"]), \
mock.patch.object(P, "_a2v_separate_vocals",
return_value=self.stem):
got, note = P.a2v_conditioning_audio(
{"audio_stem_auto": "true"}, str(self.song))
self.assertEqual(got, str(self.stem))
- self.assertEqual(note, "")
def test_auto_is_off_unless_it_is_asked_for(self):
for raw in ("", "0", "off", "no", None):
with self.subTest(raw=raw):
- with mock.patch.object(P, "_resolve_demucs") as res:
+ with mock.patch.object(P, "_a2v_separator_command") as res:
got, note = P.a2v_conditioning_audio(
{"audio_stem_auto": raw}, str(self.song))
res.assert_not_called()
@@ -240,20 +236,20 @@ class StopCanEndASeparation(unittest.TestCase):
self.root = Path(self.tmp.name)
self.song = self.root / "song.wav"
self.song.write_bytes(b"RIFF....WAVE")
- # A stand-in separator: writes what demucs writes, exits 0.
- self.demucs = self.root / "demucs"
+ # A stand-in separator with the runner's CLI: --in SRC --out DST.
+ self.demucs = self.root / "separator"
self.demucs.write_text(
"#!/bin/sh\n"
'out=""\n'
- 'while [ $# -gt 0 ]; do [ "$1" = "-o" ] && out="$2"; shift; done\n'
- 'mkdir -p "$out/htdemucs/song" && printf RIFF > "$out/htdemucs/song/vocals.wav"\n'
+ 'while [ $# -gt 0 ]; do [ "$1" = "--out" ] && out="$2"; shift; done\n'
+ 'head -c 100 /dev/zero > "$out"\n'
"exit 0\n")
self.demucs.chmod(0o755)
self.job = {"id": "job-stem-1", "cancel_requested": False}
def _separate(self):
with mock.patch.object(P, "_thread_job", return_value=self.job):
- return P._a2v_separate_vocals(str(self.song), self.demucs)
+ return P._a2v_separate_vocals(str(self.song), [str(self.demucs)])
def test_a_real_separation_still_produces_the_stem(self):
# The gate is a real exit code from a real child, not a mock.
@@ -282,22 +278,21 @@ class StopCanEndASeparation(unittest.TestCase):
self.job["cancel_requested"] = True
with mock.patch.object(P, "_thread_job", return_value=self.job):
with self.assertRaises(P.JobCancelled):
- P._a2v_separate_vocals(str(self.song), self.demucs)
+ P._a2v_separate_vocals(str(self.song), [str(self.demucs)])
- def test_a_separation_that_fails_is_still_only_a_note(self):
+ def test_a_separation_that_fails_fails_the_job(self):
self.demucs.write_text("#!/bin/sh\necho 'no such model' >&2\nexit 1\n")
self.demucs.chmod(0o755)
with mock.patch.object(P, "_thread_job", return_value=self.job), \
- mock.patch.object(P, "_resolve_demucs", return_value=self.demucs):
- got, note = P.a2v_conditioning_audio(
- {"audio_stem_auto": "on"}, str(self.song))
- self.assertEqual(got, str(self.song))
- self.assertIn("full mix", note)
+ mock.patch.object(P, "_a2v_separator_command", return_value=[str(self.demucs)]):
+ with self.assertRaises(RuntimeError) as cm:
+ P.a2v_conditioning_audio({"audio_stem_auto": "on"}, str(self.song))
+ self.assertIn("no such model", str(cm.exception))
def test_stop_during_the_separation_is_never_downgraded_to_a_note(self):
# A cancelled job must not quietly become a full-mix render that the
# user then waits twenty minutes for.
- with mock.patch.object(P, "_resolve_demucs", return_value=self.demucs), \
+ with mock.patch.object(P, "_a2v_separator_command", return_value=[str(self.demucs)]), \
mock.patch.object(P, "_a2v_separate_vocals",
side_effect=P.JobCancelled("Stopped during it.")):
with self.assertRaises(P.JobCancelled):
@@ -322,24 +317,17 @@ class StopCanEndASeparation(unittest.TestCase):
class OnlyToolsTheInstallScriptsProvide(unittest.TestCase):
- def test_a_resolved_demucs_is_a_file_that_exists_or_nothing(self):
- # `_resolve_tool` ends on a LAST-RESORT path that need not exist. A
- # separator that is not there has to read as "not installed" now, not
- # as a command that dies twenty minutes into a render.
- got = P._resolve_demucs()
- self.assertTrue(got is None or got.is_file())
+ def test_the_separator_is_our_runner_in_the_engine_venv_or_nothing(self):
+ got = P._a2v_separator_command()
+ if got is not None:
+ self.assertEqual(got[:2], [str(P.HELPER_PYTHON), str(P.A2V_SEPARATOR_RUNNER)])
def test_no_foreign_virtualenv_is_a_dependency(self):
# Some other project's venv on this Mac is not a dependency of
# Phosphene, and an install script cannot provide one.
self.assertNotIn("voice-lab", PANEL_SRC)
- # The resolver looks at exactly two places: the engine venv's own bin
- # (what the installer script fills) and the ordinary tool resolver
- # (env override, PATH, Pinokio's folders, Homebrew). Anything else
- # would be a path this project cannot install into.
- body = PANEL_SRC.split("def _resolve_demucs")[1].split("\ndef ")[0]
- self.assertIn('HELPER_PYTHON.parent / "demucs"', body)
- self.assertIn('_resolve_tool("demucs", "PHOSPHENE_DEMUCS")', body)
+ body = PANEL_SRC.split("def _a2v_separator_command")[1].split("\ndef ")[0]
+ self.assertIn("HELPER_PYTHON", body)
self.assertNotIn("/Users/", body)
def test_the_installer_script_exists_and_parses(self):
@@ -349,8 +337,9 @@ class OnlyToolsTheInstallScriptsProvide(unittest.TestCase):
self.assertEqual(
subprocess.run(["bash", "-n", str(script)]).returncode, 0)
- def test_the_note_points_at_the_installer(self):
- self.assertIn("a2v_stems_deps.sh", P.A2V_STEM_MISSING_NOTE)
+ def test_the_note_offers_the_install_and_the_way_out(self):
+ self.assertIn("Install it from the Lip-sync form", P.A2V_STEM_MISSING_NOTE)
+ self.assertIn("full mix", P.A2V_STEM_MISSING_NOTE)
class TheStemNeverReachesTheAudience(unittest.TestCase):
diff --git a/test_codex_4170_lipsync.py b/test_codex_4170_lipsync.py
index 08f19e3..1dd07a1 100644
--- a/test_codex_4170_lipsync.py
+++ b/test_codex_4170_lipsync.py
@@ -453,7 +453,9 @@ def _a2v_roundtrip(params: dict, checked_before: bool, via_continue: bool = Fals
fns.append("continueSongFromClip")
js = r416.A2V_DOM + (
"el('audioStudioStemAuto'); els.audioStudioStemAuto.checked = %s;\n"
- "function requestAnimationFrame(f) { f(); }\n" % json.dumps(checked_before)
+ "function requestAnimationFrame(f) { f(); }\n"
+ # characters.js module state audioStudioGenerate reads (vocal separation)
+ "const A2V_SEPARATOR = { ready: null };\n" % json.dumps(checked_before)
) + "\n".join(extract_function(n, src) for n in fns) + """
const sidecar = %s;
(async () => {
diff --git a/test_damaged_model_json.py b/test_damaged_model_json.py
new file mode 100644
index 0000000..5760c8e
--- /dev/null
+++ b/test_damaged_model_json.py
@@ -0,0 +1,138 @@
+"""4.17.3 fleet fix: a damaged JSON file beside the weights is caught and
+named, instead of failing render after render with engine text.
+
+THE BUG (fleet, one fresh 4.17.1 install, M5 Max 64 GB): weights_check "ok",
+then five failed renders in a row — "No usable tokenizer beside the text
+encoder", "Invalid json header length", "Received 1 parameters not in model",
+"Expecting value: line 1 column 1 (char 0)" — until a re-download fixed it.
+All four are a damaged or partial SMALL file (config / tokenizer / manifest)
+next to intact weights. The integrity scan only parsed .safetensors headers,
+so the red Repair banner never appeared, and the Now card's message for each
+was the raw engine line with "Retry" as the only action.
+
+THE FIX, two layers:
+ 1. _model_integrity() parses every JSON file a pack ships (declared, or
+ downloaded via its own `*.json` include pattern) and puts the broken
+ ones in the same bad[] the banner and /models/repair consume.
+ 2. friendlyJobError() names those engine lines as a damaged model file and
+ points at Repair (action: 'models'), not Retry.
+"""
+from __future__ import annotations
+
+import json
+import os
+import shutil
+import subprocess
+import sys
+import tempfile
+import unittest
+from pathlib import Path
+from unittest import mock
+
+ROOT = Path(__file__).resolve().parent
+os.environ.setdefault("PHOSPHENE_ANALYTICS_DISABLED", "1")
+os.environ.setdefault("PHOSPHENE_DISABLE_VERSION_CHECK", "1")
+sys.path.insert(0, str(ROOT))
+sys.path.insert(0, str(ROOT / "scripts"))
+
+import mlx_ltx_panel as P # noqa: E402
+from extract_panel_js import extract_function # noqa: E402
+
+NODE = shutil.which("node")
+
+# Verbatim (paths redacted) from the fleet's render_failed signatures.
+FLEET_LINES = [
+ "No usable tokenizer beside the text encoder at '/Users/someone/pinokio/api/phosphene.git/mlx_models/gemma4-12b-ltx25-q4' "
+ "(ValueError: Couldn't instantiate the backend tokenizer from one of: ...)",
+ "[load_safetensors] Invalid json header length file /Users/someone/pinokio/api/phosphene.git/mlx_models/ltx-2.5-mlx-q4/connector.safetensors",
+ "Received 1 parameters not in model: keyframes_abs_pos_embedding.",
+ "Expecting value: line 1 column 1 (char 0)",
+]
+
+
+def _fake_pack(tmp: Path) -> Path:
+ d = tmp / "ltx-2.5-mlx-q4"
+ d.mkdir()
+ # A structurally valid (empty-tensor) safetensors file so the header scan passes.
+ hdr = json.dumps({"__metadata__": {}}).encode()
+ (d / "transformer-distilled.safetensors").write_bytes(len(hdr).to_bytes(8, "little") + hdr)
+ (d / "config.json").write_text('{"ok": true}')
+ (d / "embedded_config.json").write_text("") # empty: interrupted download
+ (d / "split_model.json").write_text('{"cut off mid-') # truncated
+ (d / "._config.json").write_bytes(b"\x00\x05\x16\x07") # AppleDouble twin — not ours
+ return d
+
+
+class IntegrityScanReadsJson(unittest.TestCase):
+ def setUp(self):
+ self.tmp = Path(tempfile.mkdtemp(prefix="phos-json-integ-"))
+ self.pack = _fake_pack(self.tmp)
+ self.repo = {"key": "q4_25", "local_dir": "mlx_models/ltx-2.5-mlx-q4",
+ "files": ["transformer-distilled.safetensors"],
+ "download_include": ["*.json", "transformer-distilled.safetensors"]}
+
+ def tearDown(self):
+ shutil.rmtree(self.tmp, ignore_errors=True)
+
+ def _scan(self):
+ snap = [{"key": "q4_25", "complete": True, "location": str(self.pack),
+ "local_dir": self.repo["local_dir"]}]
+ with mock.patch.object(P, "repo_status_list", return_value=snap), \
+ mock.patch.object(P, "_repos", return_value=[self.repo]), \
+ mock.patch.object(P, "_placement_errors", return_value=[]), \
+ mock.patch.object(P, "_output_codec_report", return_value={"ok": True}):
+ return P._model_integrity(force=True)
+
+ def test_damaged_json_lands_in_bad(self):
+ res = self._scan()
+ bad = {b["file"]: b["reason"] for b in res["bad"]}
+ self.assertFalse(res["ok"])
+ self.assertIn("embedded_config.json", bad)
+ self.assertIn("empty", bad["embedded_config.json"])
+ self.assertIn("split_model.json", bad)
+ self.assertIn("not valid JSON", bad["split_model.json"])
+ self.assertNotIn("config.json", bad)
+ self.assertNotIn("._config.json", bad)
+ for b in res["bad"]:
+ self.assertEqual(b["repo"], "q4_25") # Repair targets the right pack
+
+ def test_a_healthy_pack_stays_ok(self):
+ (self.pack / "embedded_config.json").write_text('{"a": 1}')
+ (self.pack / "split_model.json").write_text("[]")
+ self.assertTrue(self._scan()["ok"])
+
+ def test_no_star_json_pattern_checks_declared_files_only(self):
+ self.repo = {"key": "q4_25", "local_dir": "x",
+ "files": ["transformer-distilled.safetensors", "config.json"]}
+ names = P._json_files_for_repo(self.repo, self.pack)
+ self.assertEqual(names, ["config.json"])
+
+
+class FriendlyErrorNamesTheDamagedFile(unittest.TestCase):
+ def test_fleet_lines_point_at_repair(self):
+ if NODE is None:
+ self.skipTest("node not on PATH")
+ src = (ROOT / "webapp" / "js" / "queue.js").read_text(encoding="utf-8")
+ fn = (extract_function("_redactLocalPaths", src) + "\n"
+ + extract_function("friendlyJobError", src))
+ calls = ",\n ".join(f"friendlyJobError({json.dumps(r)})" for r in FLEET_LINES)
+ script = fn + f"\nconsole.log(JSON.stringify([\n {calls}\n]));"
+ with tempfile.NamedTemporaryFile("w", suffix=".js", delete=False) as fh:
+ fh.write(script)
+ path = fh.name
+ try:
+ r = subprocess.run([NODE, path], capture_output=True, text=True,
+ errors="replace", timeout=60)
+ finally:
+ Path(path).unlink(missing_ok=True)
+ self.assertEqual(r.returncode, 0, r.stderr[-1500:])
+ out = json.loads(r.stdout.strip().splitlines()[-1])
+ for raw, res in zip(FLEET_LINES, out):
+ self.assertIn("damaged", res["friendly"], raw)
+ self.assertEqual(res.get("action"), "models", raw)
+ self.assertIn("Repair", res["hint"], raw)
+ self.assertNotIn("/Users/", res.get("details", ""), raw)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/test_fleet_ram_tier_fallback.py b/test_fleet_ram_tier_fallback.py
new file mode 100644
index 0000000..2f2324d
--- /dev/null
+++ b/test_fleet_ram_tier_fallback.py
@@ -0,0 +1,288 @@
+"""4.17.1 fix: fleet_estimate_range() no longer mixes RAM tiers.
+
+THE BUG (found driving beta b7a176f on the owner's real 64 GB M4 Max, report
+in ~/AI/projects/phosphene/review-2026-09-29-ux/est_fix.txt): the LTX "High *
+720p, 10s" chip read "~30-40 min". A real render at that exact setting,
+INCLUDING the 1080p upscale, took 17.4 min (four renders in the 1042-1045 s
+range — see work/outputs/bizarrotrn_stands_alone_at_a_support*_1080p.mp4.json
+under review-2026-09-29-ux/post_bizarro/).
+
+ROOT CAUSE: fleet_estimate_range()'s "chip" fallback level (same chip family,
+ANY RAM) is built by scripts/fleet_timings_build.py with ram_gb dropped from
+its GROUP BY on purpose — a deliberately coarser rung. For LTX High*720p at
+241 frames, the fleet's only M4 Max samples happened to be 13 renders on
+128 GB installs, all landing in the 1800-2400s ("30-40 min") bucket. Sold to
+a 64 GB owner as "based on 13 renders on M4 Max Macs" — true of the chip,
+false of the Mac.
+
+THE FIX: two new levels (chip_ram_tier / chip_ram_tier_scaled) try the SAME
+chip within this Mac's own RAM TIER first, reconstructed from the "cell"
+level (the one place ram_gb still exists per row). The old RAM-blind "chip"
+level is now GATED: skipped when the cell rows backing it are EXCLUSIVELY a
+different RAM tier than this Mac's own. A new ram_tier / ram_tier_scaled
+level (any chip, same RAM tier, chip-speed-adjusted via
+_fleet_chip_adjust_ratio) sits between the gated "chip" and the unchanged,
+still-ungated "model" level.
+
+This suite is split in two: `RealShippedTableRegression` replays the exact
+bug against the REAL committed data/fleet_timings.json (skipped if that file
+is ever pulled from the checkout) — this is the test that failed before the
+fix and passes after. `SyntheticFallbackLevels` pins the new fallback
+mechanics against a small hand-built table, the same style
+test_fleet_timings.py already uses, so the order doesn't depend on what next
+week's real fleet pull happens to contain.
+"""
+from __future__ import annotations
+
+import os
+import sys
+import tempfile
+import unittest
+from pathlib import Path
+from unittest import mock
+
+ROOT = Path(__file__).resolve().parent
+os.environ.setdefault("LTX_STATE_DIR", tempfile.mkdtemp(prefix="phos-ramtier-"))
+os.environ["PHOSPHENE_ANALYTICS_DISABLED"] = "1"
+os.environ["PHOSPHENE_DISABLE_VERSION_CHECK"] = "1"
+sys.path.insert(0, str(ROOT))
+
+import mlx_ltx_panel as P # noqa: E402
+
+
+class RamTierForGb(unittest.TestCase):
+ """_ram_tier_for_gb must agree with _detect_tier's own thresholds
+ (TIER_MIN_RAM_GB) at every boundary — the fallback logic is only as
+ honest as this classification."""
+
+ def test_matches_tier_min_ram_gb_boundaries(self):
+ self.assertEqual(P._ram_tier_for_gb(0), "standard") # safe default
+ self.assertEqual(P._ram_tier_for_gb(8), "base")
+ self.assertEqual(P._ram_tier_for_gb(47.9), "base")
+ self.assertEqual(P._ram_tier_for_gb(48), "standard")
+ self.assertEqual(P._ram_tier_for_gb(64), "standard")
+ self.assertEqual(P._ram_tier_for_gb(79.9), "standard")
+ self.assertEqual(P._ram_tier_for_gb(80), "high")
+ self.assertEqual(P._ram_tier_for_gb(119.9), "high")
+ self.assertEqual(P._ram_tier_for_gb(120), "pro")
+ self.assertEqual(P._ram_tier_for_gb(128), "pro")
+
+ def test_64gb_and_128gb_are_different_tiers(self):
+ """The exact split that matters for the bug: a 64 GB Mac and the
+ 128 GB Macs that dominated the High*720p fleet sample must land in
+ DIFFERENT tiers, or the whole fix is a no-op."""
+ self.assertNotEqual(P._ram_tier_for_gb(64.0), P._ram_tier_for_gb(128.0))
+
+
+class RealShippedTableRegression(unittest.TestCase):
+ """The literal bug, replayed against the real, git-committed
+ data/fleet_timings.json. FAILED before this fix (source == "chip",
+ p50_min == 35.0 — "~30-40 min"); PASSES after."""
+
+ def setUp(self):
+ if not P.FLEET_TIMINGS.get("levels"):
+ self.skipTest("no data/fleet_timings.json shipped in this checkout")
+ cell_cells = (P.FLEET_TIMINGS.get("levels") or {}).get("cell", {}).get("cells") or {}
+ has_bug_fixture = any(
+ k.startswith("ltx|t2v|high_720p|241.0|M4 Max|") for k in cell_cells)
+ if not has_bug_fixture:
+ self.skipTest("the real table no longer has the M4 Max high_720p "
+ "241f fixture this regression test replays")
+
+ def test_high_720p_10s_on_64gb_m4_max_is_not_priced_off_128gb_macs(self):
+ r = P.fleet_estimate_range("ltx", "t2v", "high_720p", 241,
+ chip="M4 Max", ram=64.0)
+ self.assertIsNotNone(r)
+ # The real measured wall clock for this EXACT setting (four renders,
+ # 1042-1045 s, including the 1080p upscale) is 17.4 min. The old
+ # "chip" level said "~30-40 min" (p50 35.0) -- more than double.
+ # The fix must land within honest shouting distance of reality.
+ self.assertLess(r["p50_min"], 25.0,
+ f"still pricing off a different RAM class: {r}")
+ self.assertNotEqual(r["source"], "chip",
+ "must not silently reuse the RAM-blind chip "
+ "level when its own cell rows are all a "
+ "different RAM tier than this Mac's")
+
+ def test_a_128gb_mac_still_sees_its_own_real_number(self):
+ """The fix must not erase the 128 GB Mac's own honest number —
+ it's real data for a real Mac, just not THIS Mac."""
+ r = P.fleet_estimate_range("ltx", "t2v", "high_720p", 241,
+ chip="M4 Max", ram=128.0)
+ self.assertIsNotNone(r)
+ self.assertEqual(r["source"], "cell") # exact chip+ram+frames match
+
+
+class SyntheticFallbackLevels(unittest.TestCase):
+ """The new fallback mechanics, pinned against a small hand-built table
+ so they don't depend on what next week's real fleet pull contains."""
+
+ def _table(self) -> dict:
+ return {
+ "schema": "fleet_timings/1",
+ "wall_sec": "seconds",
+ "levels": {
+ "cell": {
+ "dims": ["engine", "mode", "tier", "frames", "chip_family", "ram_gb", "speed"],
+ "cells": {
+ # Bug shape: M4 Max's only high_720p/241f samples are
+ # ALL on a 128 GB (pro-tier) install.
+ "ltx|t2v|high_720p|241.0|M4 Max|128.0|any": {
+ "p25_sec": 1800.0, "p50_sec": 1800.0, "p75_sec": 1800.0, "n": 13},
+ # A DIFFERENT chip (M4 Pro), but the SAME RAM tier
+ # (64 GB -> standard) as the Mac under test, at a
+ # shorter length (121f) -- the ram_tier_scaled rung.
+ "ltx|t2v|high_720p|121.0|M4 Pro|64.0|any": {
+ "p25_sec": 900.0, "p50_sec": 900.0, "p75_sec": 900.0, "n": 3},
+ # SAME chip, SAME ram tier as target (56 GB is also
+ # "standard"), exact frames -- should win over
+ # everything below it once it exists.
+ "ltx|t2v|balanced|241.0|M4 Max|56.0|any": {
+ "p25_sec": 200.0, "p50_sec": 220.0, "p75_sec": 260.0, "n": 5},
+ },
+ },
+ "chip": {
+ "dims": ["engine", "mode", "tier", "frames", "chip_family", "speed"],
+ "cells": {
+ # Precomputed RAM-blind pooled cell that mirrors the
+ # 128 GB-only cell above exactly (as the real build
+ # script would produce when that's the only data).
+ "ltx|t2v|high_720p|241.0|M4 Max|any": {
+ "p25_sec": 1800.0, "p50_sec": 1800.0, "p75_sec": 1800.0, "n": 13},
+ # A chip with NO "cell"-level breakdown at all --
+ # nothing to contradict it, so it must still be
+ # trusted (matches test_fleet_timings.py's pinned
+ # `test_falls_back_to_chip_level_when_ram_differs`).
+ "ltx|t2v|balanced|121.0|M2 Pro|any": {
+ "p25_sec": 300.0, "p50_sec": 360.0, "p75_sec": 420.0, "n": 20},
+ },
+ },
+ "model": {
+ "dims": ["engine", "mode", "tier", "frames", "speed"],
+ "cells": {
+ "ltx|t2v|high_720p|241.0|any": {
+ "p25_sec": 1200.0, "p50_sec": 1800.0, "p75_sec": 1800.0, "n": 23},
+ "ltx|t2v|balanced|121.0|any": {
+ "p25_sec": 150.0, "p50_sec": 200.0, "p75_sec": 260.0, "n": 500},
+ },
+ },
+ },
+ }
+
+ def setUp(self):
+ self._patch = mock.patch.object(P, "FLEET_TIMINGS", self._table())
+ self._patch.start()
+ self.addCleanup(self._patch.stop)
+
+ def test_chip_level_skipped_when_backing_cells_are_a_different_ram_tier(self):
+ """The exact bug: a 64 GB M4 Max must not get the 128 GB-only
+ pooled 'chip' number."""
+ r = P.fleet_estimate_range("ltx", "t2v", "high_720p", 241,
+ chip="M4 Max", ram=64.0)
+ self.assertIsNotNone(r)
+ self.assertNotEqual(r["source"], "chip")
+ self.assertNotAlmostEqual(r["p50_min"], 30.0, delta=0.01)
+
+ def test_falls_through_to_ram_tier_scaled_with_chip_adjustment(self):
+ """No same-chip same-tier data at all -> the M4 Pro/64 GB/121f cell
+ wins, chip-adjusted (M4 Pro is 1.7x slower than M4 Max per
+ HW_SPEED_FACTOR_LTX) and frame-scaled to 241f."""
+ r = P.fleet_estimate_range("ltx", "t2v", "high_720p", 241,
+ chip="M4 Max", ram=64.0)
+ self.assertEqual(r["source"], "ram_tier_scaled")
+ # Chip-adjusted-and-scaled must land well under the untouched
+ # 128 GB pooled number (30 min) -- the whole point of the fix.
+ self.assertLess(r["p50_min"], 25.0)
+
+ def test_chip_ram_tier_wins_when_it_exists(self):
+ """Same chip, a DIFFERENT RAM value but the same tier (56 GB is
+ "standard", same as the 64 GB target) beats every coarser level."""
+ r = P.fleet_estimate_range("ltx", "t2v", "balanced", 241,
+ chip="M4 Max", ram=64.0)
+ self.assertEqual(r["source"], "chip_ram_tier")
+ self.assertEqual(r["n"], 5)
+ self.assertAlmostEqual(r["p50_min"], 220.0 / 60.0, places=2)
+
+ def test_pro_tier_mac_still_gets_its_own_chip_level_number(self):
+ """A 128 GB Mac IS the RAM tier the "chip" cell was built from --
+ the gate must not block a Mac the pooled number actually describes."""
+ r = P.fleet_estimate_range("ltx", "t2v", "high_720p", 241,
+ chip="M4 Max", ram=128.0)
+ # cell_scaled and chip_ram_tier both look at 241f/128GB first and
+ # would hit the SAME row as "chip" (n=13) via a different path --
+ # any of "cell"/"chip_ram_tier"/"chip" is correct here as long as
+ # the number itself is the real 128 GB one, unscaled.
+ self.assertIsNotNone(r)
+ self.assertAlmostEqual(r["p50_min"], 30.0, places=2)
+
+ def test_existing_chip_fallback_unaffected_when_no_cell_data_exists(self):
+ """Pinned parity with test_fleet_timings.py's
+ test_falls_back_to_chip_level_when_ram_differs: a chip with NO
+ "cell" rows at all must still fall back to the RAM-blind "chip"
+ level exactly as before -- the gate only fires when it has
+ evidence to contradict the pooled number, never on silence."""
+ r = P.fleet_estimate_range("ltx", "t2v", "balanced", 121,
+ chip="M2 Pro", ram=999.0)
+ self.assertEqual(r["source"], "chip")
+ self.assertEqual(r["n"], 20)
+
+ def test_model_level_still_reachable_as_last_resort(self):
+ """When NOTHING ram-tier-aware exists for this chip or any chip,
+ the fully pooled "model" level remains the final real-data rung
+ before the cost model -- unchanged behavior."""
+ table = self._table()
+ del table["levels"]["cell"]["cells"]["ltx|t2v|high_720p|121.0|M4 Pro|64.0|any"]
+ del table["levels"]["chip"]["cells"]["ltx|t2v|high_720p|241.0|M4 Max|any"]
+ with mock.patch.object(P, "FLEET_TIMINGS", table):
+ r = P.fleet_estimate_range("ltx", "t2v", "high_720p", 241,
+ chip="M4 Max", ram=64.0)
+ self.assertEqual(r["source"], "model")
+ self.assertEqual(r["n"], 23)
+
+
+class CombineAndChipAdjustHelpers(unittest.TestCase):
+ def test_combine_weights_by_sample_count(self):
+ combined = P._combine_fleet_cells([
+ {"p25_sec": 100.0, "p50_sec": 100.0, "p75_sec": 100.0, "n": 90},
+ {"p25_sec": 1000.0, "p50_sec": 1000.0, "p75_sec": 1000.0, "n": 10},
+ ])
+ self.assertEqual(combined["n"], 100)
+ # Weighted toward the 90-sample cell, not a plain average of 550.
+ self.assertLess(combined["p50_sec"], 300.0)
+
+ def test_far_apart_cohorts_give_a_range_that_holds_both(self):
+ # 4.17.3 review: averaging quartiles turned two equal cohorts at
+ # 60-90 s and 600-900 s into ~330-495 s, a range containing neither.
+ combined = P._combine_fleet_cells([
+ {"p25_sec": 60.0, "p50_sec": 60.0, "p75_sec": 90.0, "n": 10},
+ {"p25_sec": 600.0, "p50_sec": 600.0, "p75_sec": 900.0, "n": 10},
+ ])
+ self.assertLessEqual(combined["p25_sec"], 90.0)
+ self.assertGreaterEqual(combined["p75_sec"], 600.0)
+ for f in ("p25_sec", "p50_sec", "p75_sec"):
+ self.assertIn(combined[f], (60.0, 90.0, 600.0, 900.0))
+
+ def test_close_cohorts_stay_tight(self):
+ combined = P._combine_fleet_cells([
+ {"p25_sec": 420.0, "p50_sec": 600.0, "p75_sec": 600.0, "n": 12},
+ {"p25_sec": 420.0, "p50_sec": 420.0, "p75_sec": 600.0, "n": 5},
+ ])
+ self.assertEqual((combined["p25_sec"], combined["p75_sec"]), (420.0, 600.0))
+ self.assertEqual(combined["n"], 17)
+
+ def test_chip_adjust_ratio_is_a_noop_for_the_same_chip(self):
+ self.assertEqual(P._fleet_chip_adjust_ratio("ltx", "M4 Max", "M4 Max"), 1.0)
+
+ def test_chip_adjust_ratio_uses_the_shared_speed_table(self):
+ # M4 Pro is 1.7x SLOWER than M4 Max (HW_SPEED_FACTOR_LTX): a time
+ # measured on an M4 Pro should be scaled DOWN to price an M4 Max.
+ ratio = P._fleet_chip_adjust_ratio("ltx", "M4 Pro", "M4 Max")
+ self.assertAlmostEqual(ratio, 1.0 / 1.7, places=3)
+
+ def test_chip_adjust_ratio_unknown_chip_is_a_noop(self):
+ self.assertEqual(
+ P._fleet_chip_adjust_ratio("ltx", "SomeFutureChip", "M4 Max"), 1.0)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/test_helper_exit_reap.py b/test_helper_exit_reap.py
new file mode 100644
index 0000000..54ed3a6
--- /dev/null
+++ b/test_helper_exit_reap.py
@@ -0,0 +1,82 @@
+"""4.17.3 fleet fix: a helper that dies is named by its real exit signal.
+
+THE BUG. "helper pipe closed without an event; returncode=None" — 23 failed
+renders over 30 days on 15 installs, three on 4.17.2 right after a GPU
+watchdog crash. A process's stdout reaches EOF as the kernel tears it down,
+a moment BEFORE its exit status can be reaped. WarmHelper read EOF and then
+sampled proc.poll() once; that lost the race and returned None, so the user
+got a message that named nothing (and the Now card no remedy) for what was
+really a SIGABRT (Metal watchdog) or SIGKILL (out of memory).
+
+THE TEST uses a REAL child process that closes its stdout first and aborts a
+moment later — exactly the order the kernel produces — and asserts that the
+error the panel raises names SIGABRT.
+"""
+from __future__ import annotations
+
+import os
+import subprocess
+import sys
+import unittest
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent
+os.environ.setdefault("PHOSPHENE_ANALYTICS_DISABLED", "1")
+os.environ.setdefault("PHOSPHENE_DISABLE_VERSION_CHECK", "1")
+sys.path.insert(0, str(ROOT))
+
+import mlx_ltx_panel as P # noqa: E402
+
+CHILD = (
+ "import os, signal, time\n"
+ "os.close(1)\n" # stdout EOF first ...
+ "time.sleep(0.6)\n" # ... the exit status arrives a moment later
+ "os.kill(os.getpid(), signal.SIGABRT)\n"
+)
+
+
+def _helper_with(proc):
+ h = P.WarmHelper.__new__(P.WarmHelper)
+ h.proc = proc
+ h._metal_timeout_seen = False
+ h.gemma_max_length = None
+ return h
+
+
+class HelperExitIsNamed(unittest.TestCase):
+ def test_eof_before_exit_status_names_the_signal(self):
+ proc = subprocess.Popen([sys.executable, "-c", CHILD],
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
+ try:
+ self.assertEqual(proc.stdout.read(), b"") # EOF, child still alive
+ h = _helper_with(proc)
+ with self.assertRaises(RuntimeError) as cm:
+ h._dispatch_run_event(None)
+ msg = str(cm.exception)
+ self.assertIn("SIGABRT", msg)
+ self.assertNotIn("returncode=None", msg)
+ finally:
+ if proc.poll() is None:
+ proc.kill()
+ proc.wait()
+
+ def test_a_child_that_never_exits_still_reports(self):
+ # Bounded: a helper that closed its pipe and hangs must not hang the
+ # worker. The wait is capped and the old wording is the fallback.
+ proc = subprocess.Popen(
+ [sys.executable, "-c", "import os, time\nos.close(1)\ntime.sleep(30)\n"],
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
+ try:
+ proc.stdout.read()
+ h = _helper_with(proc)
+ h.REAP_WAIT_SEC = 0.3
+ with self.assertRaises(RuntimeError) as cm:
+ h._dispatch_run_event(None)
+ self.assertIn("pipe closed without an event", str(cm.exception))
+ finally:
+ proc.kill()
+ proc.wait()
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/test_lipsync_quality.py b/test_lipsync_quality.py
new file mode 100644
index 0000000..fb8f133
--- /dev/null
+++ b/test_lipsync_quality.py
@@ -0,0 +1,545 @@
+#!/usr/bin/env python3
+"""Lip-sync quality (4.17.x): "Listen to the voice only" must really listen to
+the voice, and a character LoRA must not mute the mouth.
+
+What was wrong, measured on the 4.17 power-ballad post
+(review-2026-09-29-ux/lipsync_quality.txt in the PM hub):
+
+1. The Lip-sync form ticks "Listen to the voice only" by default, and nothing
+ installed the vocal separator. The panel quietly conditioned on the FULL MIX
+ and said so in one log line. The run-it-yourself script that did install
+ demucs produced a CLI that dies at the very end (torchaudio >= 2.9 saves
+ through torchcodec), which the panel ALSO turned into the full mix.
+2. A character LoRA at full strength through both a2v stages halves the mouth
+ opening and cuts its movement to about a third.
+
+JS is executed in node where the behaviour is a function's.
+"""
+from __future__ import annotations
+
+import json
+import os
+import shutil
+import subprocess
+import sys
+import tempfile
+import wave
+from pathlib import Path
+from unittest import mock
+
+import pytest
+
+ROOT = Path(__file__).resolve().parent
+sys.path.insert(0, str(ROOT))
+sys.path.insert(0, str(ROOT / "scripts"))
+
+import mlx_ltx_panel as P # noqa: E402
+from extract_panel_js import extract_function # noqa: E402
+
+routes_queue = sys.modules["panel.routes_queue"]
+routes_models = sys.modules["panel.routes_models"]
+NODE = shutil.which("node")
+JS = ROOT / "webapp" / "js"
+HELPER_SRC = (ROOT / "mlx_warm_helper.py").read_text(encoding="utf-8")
+
+
+def _node(script: str):
+ if NODE is None:
+ pytest.skip("node not on PATH")
+ with tempfile.NamedTemporaryFile("w", suffix=".js", delete=False) as fh:
+ fh.write(script)
+ path = fh.name
+ try:
+ r = subprocess.run([NODE, path], capture_output=True, text=True, timeout=60)
+ assert r.returncode == 0, r.stderr[-3000:]
+ return json.loads(r.stdout.strip().splitlines()[-1])
+ finally:
+ Path(path).unlink(missing_ok=True)
+
+
+class _H:
+ def __init__(self, form=None):
+ self.status, self.payload, self._form = None, None, form or {}
+
+ def _json(self, payload, status=200):
+ self.payload, self.status = payload, status
+
+ def _read_form_body(self):
+ return b"", self._form
+
+
+def song(tmp_path):
+ p = tmp_path / "song.wav"
+ p.write_bytes(b"RIFF....WAVE")
+ return p
+
+
+# ---------------------------------------------------------------------------
+# 1. NEVER A SILENT FALLBACK TO THE FULL MIX
+# ---------------------------------------------------------------------------
+def test_voice_only_without_a_separator_is_refused_not_rendered_on_the_mix(song):
+ with mock.patch.object(P, "_a2v_separator_command", return_value=None):
+ with pytest.raises(P.RenderRefused) as ei:
+ P.a2v_conditioning_audio({"audio_stem_auto": "on"}, str(song))
+ assert ei.value.reason == "vocal_separator"
+ assert "not installed" in str(ei.value)
+ # It is an install prompt, and analytics must count it as a refusal.
+ assert P._analytics_refusal_reason(str(ei.value)) == "vocal_separator"
+
+
+def test_a_separation_that_fails_fails_the_job_with_its_cause(song):
+ with mock.patch.object(P, "_a2v_separator_command", return_value=["sep"]), \
+ mock.patch.object(P, "_a2v_separate_vocals",
+ side_effect=RuntimeError("the separator wrote no vocal")):
+ with pytest.raises(RuntimeError) as ei:
+ P.a2v_conditioning_audio({"audio_stem_auto": "1"}, str(song))
+ msg = str(ei.value)
+ assert "the separator wrote no vocal" in msg
+ assert "Nothing was rendered" in msg
+ assert "full mix" in msg # names the way out: untick the box
+
+
+def test_stop_during_the_separation_is_still_a_cancellation(song):
+ with mock.patch.object(P, "_a2v_separator_command", return_value=["sep"]), \
+ mock.patch.object(P, "_a2v_separate_vocals",
+ side_effect=P.JobCancelled("stopped")):
+ with pytest.raises(P.JobCancelled):
+ P.a2v_conditioning_audio({"audio_stem_auto": "on"}, str(song))
+
+
+def test_voice_only_off_and_explicit_stems_are_untouched(song, tmp_path):
+ with mock.patch.object(P, "_a2v_separator_command") as sep:
+ assert P.a2v_conditioning_audio({}, str(song)) == (str(song), "")
+ stem = tmp_path / "v.wav"
+ stem.write_bytes(b"RIFF")
+ assert P.a2v_conditioning_audio({"audio_stem": str(stem),
+ "audio_stem_auto": "on"}, str(song))[0] == str(stem)
+ sep.assert_not_called()
+
+
+def test_queue_add_refuses_voice_only_when_the_separator_is_missing():
+ form = {"mode": ["a2v"], "prompt": ["a singer"], "audio": ["/x/song.wav"],
+ "audio_stem_auto": ["on"]}
+ h = _H(form)
+ before = len(P.STATE["queue"])
+ with mock.patch.object(P, "_a2v_separator_command", return_value=None):
+ routes_queue.post_run(h, "/queue/add", {}, "")
+ assert h.status == 400
+ assert h.payload["code"] == "vocal_separator_missing"
+ assert "not installed" in h.payload["error"]
+ assert len(P.STATE["queue"]) == before, "the refused job was queued anyway"
+
+
+def test_queue_add_refusal_only_for_voice_only_a2v():
+ base = {"mode": "a2v", "audio_stem_auto": "on"}
+ with mock.patch.object(P, "_a2v_separator_command", return_value=None):
+ assert P.a2v_stem_refusal(base)
+ assert P.a2v_stem_refusal({**base, "audio_stem": "/have/one.wav"}) is None
+ assert P.a2v_stem_refusal({**base, "audio_stem_auto": ""}) is None
+ assert P.a2v_stem_refusal({**base, "mode": "i2v"}) is None
+ with mock.patch.object(P, "_a2v_separator_command", return_value=["sep"]):
+ assert P.a2v_stem_refusal(base) is None
+
+
+# ---------------------------------------------------------------------------
+# 2. THE SEPARATOR THE PANEL RUNS IS OURS, AND IT CANNOT DIE ON AUDIO I/O
+# ---------------------------------------------------------------------------
+def test_status_reads_the_engine_venv_without_importing_torch(tmp_path):
+ venv = tmp_path / "env"
+ site = venv / "lib" / "python3.11" / "site-packages"
+ (venv / "bin").mkdir(parents=True)
+ site.mkdir(parents=True)
+ py = venv / "bin" / "python3.11"
+ py.write_text("")
+ models = tmp_path / "models"
+ with mock.patch.object(P, "HELPER_PYTHON", py), \
+ mock.patch.object(P, "MODELS_DIR", models):
+ assert P.a2v_separator_status()["ready"] is False
+ assert P._a2v_separator_command() is None
+ (site / "demucs").mkdir()
+ (site / "demucs" / "apply.py").write_text("")
+ assert P.a2v_separator_status()["ready"] is False, "demucs without torch is not ready"
+ (site / "torch").mkdir()
+ (site / "torch" / "__init__.py").write_text("")
+ st = P.a2v_separator_status()
+ assert st["ready"] is True and st["weights"] is False
+ cmd = P._a2v_separator_command()
+ assert cmd[:2] == [str(py), str(P.A2V_SEPARATOR_RUNNER)]
+ assert "--ffmpeg" in cmd
+ ck = models / "demucs" / "hub" / "checkpoints" / P.A2V_SEPARATOR_WEIGHTS
+ ck.parent.mkdir(parents=True)
+ ck.write_bytes(b"x")
+ assert P.a2v_separator_status()["weights"] is True
+
+
+def test_the_demucs_cli_is_never_what_runs():
+ src = (ROOT / "mlx_ltx_panel.py").read_text(encoding="utf-8")
+ block = src.split("def _a2v_separator_command")[1].split("\ndef ")[0]
+ assert "A2V_SEPARATOR_RUNNER" in block
+ assert '"demucs"' not in block and "--two-stems" not in src
+ assert "_resolve_demucs" not in src, "the CLI resolver came back"
+
+
+def test_the_runner_never_touches_torchaudio():
+ import ast # noqa: PLC0415
+ runner = (ROOT / "scripts" / "a2v_separate.py").read_text(encoding="utf-8")
+ mods = set()
+ for node in ast.walk(ast.parse(runner)):
+ if isinstance(node, ast.Import):
+ mods |= {a.name.split(".")[0] for a in node.names}
+ elif isinstance(node, ast.ImportFrom):
+ mods.add((node.module or "").split(".")[0])
+ assert "torchaudio" not in mods and "soundfile" not in mods
+ assert {"wave", "demucs"} <= mods
+
+
+def test_the_runner_writes_a_real_wav(tmp_path):
+ torch = pytest.importorskip("torch")
+ import a2v_separate as sep # noqa: PLC0415
+ out = tmp_path / "v.wav"
+ sig = torch.zeros(2, 4410)
+ sig[0, :100] = 0.5
+ sep.write_wav(str(out), sig)
+ with wave.open(str(out)) as w:
+ assert (w.getnchannels(), w.getsampwidth(), w.getframerate(), w.getnframes()) == \
+ (2, 2, sep.SAMPLE_RATE, 4410)
+
+
+def test_a_separation_runs_tracked_and_caches(tmp_path, song):
+ # A stand-in runner with the real runner's CLI: --in SRC --out DST.
+ fake = tmp_path / "fake_sep.sh"
+ fake.write_text(
+ "#!/bin/sh\n"
+ 'out=""\n'
+ 'while [ $# -gt 0 ]; do [ "$1" = "--out" ] && out="$2"; shift; done\n'
+ 'head -c 200 /dev/zero > "$out"\n')
+ fake.chmod(0o755)
+ job = {"id": "job-sep", "cancel_requested": False}
+ seen = []
+ real = P._register_job_pgid
+ with mock.patch.object(P, "STATE_DIR", tmp_path / "state"), \
+ mock.patch.object(P, "_thread_job", return_value=job), \
+ mock.patch.object(P, "_register_job_pgid",
+ side_effect=lambda k, pg, job=None: (seen.append(k), real(k, pg, job))[1]):
+ stem = P._a2v_separate_vocals(str(song), [str(fake)])
+ assert stem.is_file() and stem.stat().st_size == 200
+ assert "mux_pgid" in seen, "Stop cannot reach the separator"
+ fake.write_text("#!/bin/sh\nexit 9\n")
+ assert P._a2v_separate_vocals(str(song), [str(fake)]) == stem # cached
+
+
+def test_a_failed_separation_names_the_runners_last_line(tmp_path, song):
+ fake = tmp_path / "fake_sep.sh"
+ fake.write_text("#!/bin/sh\necho 'Traceback (most recent call last):' >&2\n"
+ "echo 'RuntimeError: could not read the song (bad header)' >&2\nexit 1\n")
+ fake.chmod(0o755)
+ with mock.patch.object(P, "STATE_DIR", tmp_path / "state"), \
+ mock.patch.object(P, "_thread_job", return_value={"id": "j", "cancel_requested": False}):
+ with pytest.raises(RuntimeError) as ei:
+ P._a2v_separate_vocals(str(song), [str(fake)])
+ assert "could not read the song" in str(ei.value)
+ assert not list((tmp_path / "state" / P.A2V_STEM_DIR).rglob("work")), "the work dir leaked"
+
+
+def test_the_separator_env_drops_the_mps_fallback_and_points_torch_home():
+ with mock.patch.dict(os.environ, {"PYTORCH_ENABLE_MPS_FALLBACK": "1",
+ "PYTORCH_MPS_FAST_MATH": "1"}):
+ env = P._a2v_separator_env()
+ assert "PYTORCH_ENABLE_MPS_FALLBACK" not in env
+ assert "PYTORCH_MPS_FAST_MATH" not in env
+ assert env["TORCH_HOME"] == str(P.a2v_separator_torch_home())
+
+
+# ---------------------------------------------------------------------------
+# 3. EVERY INSTALL AND EVERY UPDATE GET IT
+# ---------------------------------------------------------------------------
+def _install_steps():
+ src = (ROOT / "install.js").read_text(encoding="utf-8")
+ return src
+
+
+def test_install_js_installs_vocal_separation_after_the_image_pack():
+ src = _install_steps()
+ assert "a2v_stems_deps.sh" in src
+ assert src.index("mflux_pack.sh") < src.index("a2v_stems_deps.sh"), \
+ "torch must be settled by the image pack before demucs pins it"
+ line = next(l for l in src.splitlines() if "a2v_stems_deps.sh ./ltx-2-mlx" in l)
+ assert len(line.strip()) <= 350, "Pinokio 8 wedges on long dispatch lines"
+ assert "|| echo 'WARN" in line, "a separator hiccup must not fail the install"
+
+
+def test_update_installs_vocal_separation_best_effort_after_step_7():
+ src = (ROOT / "scripts" / "post_update.sh").read_text(encoding="utf-8")
+ i = src.index("a2v_stems_deps.sh")
+ assert src.index("patch_mflux_fbcache.py") < i
+ assert "|| echo 'WARN" in src[i:i + 300]
+ assert "a2v_stems_deps" not in (ROOT / "update.js").read_text(encoding="utf-8"), \
+ "update.js stays thin: the work lives in post_update.sh (read after the pull)"
+
+
+def test_the_installer_never_moves_torch_and_never_uses_the_cli():
+ sh = (ROOT / "scripts" / "pinokio" / "a2v_stems_deps.sh").read_text(encoding="utf-8")
+ assert "'demucs==4.0.1'" in sh
+ assert '-c "$PINS"' in sh # constraints = what is on disk
+ assert '"torch", "numpy"' in sh
+ assert "uv pip install" in sh
+ assert "--prefetch" in sh # weights fetched at install time
+ assert "PHOSPHENE_SEPARATOR_HOME" in sh
+ assert subprocess.run(["bash", "-n", str(ROOT / "scripts" / "pinokio" / "a2v_stems_deps.sh")]).returncode == 0
+ for line in sh.splitlines():
+ assert len(line) <= 350
+
+
+def test_the_installer_refuses_a_checkout_without_a_venv(tmp_path):
+ r = subprocess.run(["bash", str(ROOT / "scripts" / "pinokio" / "a2v_stems_deps.sh"),
+ str(tmp_path)], capture_output=True, text=True, timeout=30)
+ assert r.returncode != 0
+ assert "no engine venv" in r.stderr
+
+
+def test_separator_routes_are_registered_with_the_dispatch_signatures():
+ from panel import routes as R # noqa: PLC0415
+ import inspect # noqa: PLC0415
+ assert R.GET_ROUTES["/a2v/separator"] is routes_models.get_a2v_separator
+ assert R.POST_ROUTES["/a2v/separator/install"] is routes_models.post_a2v_separator_install
+ # the same arity as a neighbouring route of each kind
+ assert len(inspect.signature(routes_models.get_a2v_separator).parameters) == \
+ len(inspect.signature(routes_models.get_music_lora_status).parameters)
+ assert len(inspect.signature(routes_models.post_a2v_separator_install).parameters) == \
+ len(inspect.signature(routes_models.post_music_install).parameters)
+
+
+def test_separator_routes_exist():
+ h = _H()
+ with mock.patch.object(P, "a2v_separator_status", return_value={"ready": True}):
+ routes_models.get_a2v_separator(h, None) # GET handlers take (h, parsed)
+ assert h.payload == {"ready": True}
+ h = _H({})
+ with mock.patch.object(P, "a2v_separator_install_start", return_value=(202, {"ok": True})):
+ routes_models.post_a2v_separator_install(h, "/a2v/separator/install", {}, "")
+ assert h.status == 202
+
+
+# ---------------------------------------------------------------------------
+# 4. THE FORM SAYS SO AND OFFERS THE INSTALL
+# ---------------------------------------------------------------------------
+def _note(state: dict, wants: bool) -> str:
+ src = (JS / "characters.js").read_text(encoding="utf-8")
+ fn = extract_function("audioStudioSeparatorNote", src)
+ return _node("function escapeHtml(s){return String(s).replace(/</g,'&lt;');}\n" + fn
+ + f"\nconsole.log(JSON.stringify(audioStudioSeparatorNote({json.dumps(state)}, {json.dumps(wants)})));")
+
+
+def test_form_offers_the_install_when_missing_and_wanted():
+ got = _note({"ready": False, "install": {"state": "idle"}}, True)
+ assert "not installed" in got and "audioStudioInstallSeparator()" in got
+ assert _note({"ready": False, "install": {"state": "idle"}}, False) == ""
+ assert _note({"ready": True, "install": {"state": "idle"}}, True) == ""
+
+
+def test_form_shows_progress_and_failure():
+ got = _note({"ready": False, "install": {"active": True, "log": ["Resolved 26 packages"]}}, True)
+ assert got.startswith("<b>Installing vocal separation") and "Resolved 26" in got
+ got = _note({"ready": False, "install": {"state": "failed", "error": "no network <x>"}}, True)
+ assert "did not install" in got and "&lt;x>" in got and "Try again" in got
+
+
+def test_a_failed_weight_download_is_not_swallowed():
+ """4.17.3 review: package installed, the 80 MB voice model failed to
+ download -> ready:true, weights:false, install failed. The ready branch
+ returned "" and the failure and its Try again vanished."""
+ st = {"ready": True, "weights": False,
+ "install": {"state": "failed", "error": "model did not load (network?)"}}
+ got = _note(st, True)
+ assert "did not download" in got and "Try again" in got and "network" in got
+ assert _note(st, False) == "" # box unticked: nothing to say
+ ok = {"ready": True, "weights": True, "install": {"state": "done"}}
+ assert "is installed" in _note(ok, True)
+
+
+def test_the_checkbox_hint_no_longer_promises_a_fallback():
+ html = (ROOT / "webapp" / "index.html").read_text(encoding="utf-8")
+ i = html.index('id="audioStudioStemAuto"')
+ label = html[i:i + 700]
+ assert "falls back to the full mix" not in label
+ assert 'id="audioStudioStemStatus"' in label
+ assert 'onchange="audioStudioRenderSeparator()"' in label
+
+
+# ---------------------------------------------------------------------------
+# 5. THE CHARACTER LORA PER A2V STAGE (helper)
+# ---------------------------------------------------------------------------
+def _helper_ns(*names):
+ import ast # noqa: PLC0415
+ from contextlib import contextmanager # noqa: PLC0415
+ tree = ast.parse(HELPER_SRC)
+ defs = [n for n in tree.body if isinstance(n, ast.FunctionDef) and n.name in names]
+ assert sorted(d.name for d in defs) == sorted(names)
+ logs: list = []
+ ns: dict = {"contextmanager": contextmanager, "emit": logs.append}
+ exec(compile(ast.Module(body=defs, type_ignores=[]), "mlx_warm_helper.py", "exec"), ns)
+ ns["_logs"] = logs
+ return ns
+
+
+def test_stage_scales_parse_strictly():
+ ns = _helper_ns("_a2v_lora_stage_scales")
+ f = ns["_a2v_lora_stage_scales"]
+ assert f([0.0, 1.0]) == (0.0, 1.0)
+ assert f(["0.25", "1"]) == (0.25, 1.0)
+ for bad in (None, "", [1, 1], [1.0, 1.0], [0.5], "0,1", [3, 1], [-1, 1], [None, 1]):
+ assert f(bad) is None, bad
+
+
+def test_the_schedule_scales_real_adapters_per_stage_and_restores_them():
+ mx = pytest.importorskip("mlx.core")
+ nn = pytest.importorskip("mlx.nn")
+ rl = pytest.importorskip("ltx_core_mlx.loader.runtime_loras")
+ ns = _helper_ns("_runtime_lora_adapters", "_a2v_lora_stage_schedule")
+
+ a = rl.LoRALinear(nn.Linear(4, 4), mx.zeros((2, 4)), mx.zeros((4, 2)), 0.8)
+ b = rl.LoRALinear(nn.Linear(4, 4), mx.zeros((2, 4)), mx.zeros((4, 2)), 1.0)
+
+ class Dit(nn.Module):
+ def __init__(self):
+ super().__init__()
+ self.blocks = [a, nn.Linear(4, 4), b]
+
+ seen = []
+
+ class Pipe:
+ dit = Dit()
+
+ def _denoise_stage1(self, *args, **kw):
+ seen.append(("s1", a.lora_scale, b.lora_scale))
+
+ def _fuse_distilled_lora(self, dit):
+ seen.append(("fuse", a.lora_scale, b.lora_scale))
+
+ def generate_and_save(self):
+ self._denoise_stage1()
+ self._fuse_distilled_lora(self.dit)
+ seen.append(("s2", a.lora_scale, b.lora_scale))
+
+ pipe = Pipe()
+ with ns["_a2v_lora_stage_schedule"](pipe, (0.0, 1.0)):
+ pipe.generate_and_save()
+ assert seen == [("s1", 0.0, 0.0), ("fuse", 0.8, 1.0), ("s2", 0.8, 1.0)]
+ # restored for the cached pipeline's next job, and the class seams are back
+ assert (a.lora_scale, b.lora_scale) == (0.8, 1.0)
+ assert "_denoise_stage1" not in vars(pipe) and "_fuse_distilled_lora" not in vars(pipe)
+ # a render that dies mid-way restores too
+ seen.clear()
+ with pytest.raises(RuntimeError):
+ with ns["_a2v_lora_stage_schedule"](pipe, (0.5, 0.25)):
+ pipe._denoise_stage1()
+ raise RuntimeError("boom")
+ assert seen == [("s1", 0.4, 0.5)]
+ assert (a.lora_scale, b.lora_scale) == (0.8, 1.0)
+
+
+def test_the_schedule_does_not_keep_a_freed_dit_alive():
+ """4.17.3 review: `saved` held STRONG references to every adapter (each
+ wraps its base linear layer), so a DiT the low-memory path drops before
+ the VAE decode stayed resident until the render returned — ~20 GB of Q8
+ weights during decode on a 48-64 GB Mac."""
+ import gc # noqa: PLC0415
+ import weakref # noqa: PLC0415
+ mx = pytest.importorskip("mlx.core")
+ nn = pytest.importorskip("mlx.nn")
+ rl = pytest.importorskip("ltx_core_mlx.loader.runtime_loras")
+ ns = _helper_ns("_runtime_lora_adapters", "_a2v_lora_stage_schedule")
+
+ class Dit(nn.Module):
+ def __init__(self):
+ super().__init__()
+ self.blocks = [rl.LoRALinear(nn.Linear(4, 4), mx.zeros((2, 4)),
+ mx.zeros((4, 2)), 0.8)]
+
+ class Pipe:
+ def __init__(self):
+ self.dit = Dit()
+
+ def _denoise_stage1(self, *args, **kw):
+ pass
+
+ def _fuse_distilled_lora(self, dit):
+ pass
+
+ pipe = Pipe()
+ probe = weakref.ref(pipe.dit.blocks[0])
+ with ns["_a2v_lora_stage_schedule"](pipe, (0.0, 1.0)):
+ pipe._denoise_stage1()
+ pipe._fuse_distilled_lora(pipe.dit)
+ pipe.dit = None # the low-memory path drops the DiT before decode
+ gc.collect()
+ assert probe() is None, "the schedule kept the freed DiT's adapters alive"
+ # and leaving the block with nothing to restore is not an error
+
+
+def test_the_schedule_is_wired_into_the_q8_a2v_render():
+ block = HELPER_SRC.split('if action == "generate_a2v":')[1].split('if action == "generate_a2v_distilled":')[0]
+ assert '_a2v_lora_stage_scales(p.get("lora_stage_scales"))' in block
+ assert "with _a2v_lora_stage_schedule(pipe, _stage_scales):" in block
+ i = block.index("with _a2v_lora_stage_schedule(pipe, _stage_scales):")
+ assert "pipe.generate_and_save(**kwargs)" in block[i:i + 200]
+
+
+# ---------------------------------------------------------------------------
+# 6. KEEP THE FACE, FREE THE MOUTH (panel policy)
+# ---------------------------------------------------------------------------
+def test_the_lipsync_lora_default_leaves_the_motion_stage_alone():
+ assert P.a2v_lora_stage_scales({}) == (0.0, 1.0)
+ assert P.a2v_lora_stage_scales({}, q8=False) is None # no seam on Q4
+ assert P.a2v_lora_stage_scales({"a2v_lora_stages": "full"}) is None
+ assert P.a2v_lora_stage_scales({"a2v_lora_stages": "0.5,1"}) == (0.5, 1.0)
+ assert P.a2v_lora_stage_scales({"a2v_lora_stages": "1,1"}) is None
+ for junk in ("x", "1", "3,1", "-1,1"):
+ assert P.a2v_lora_stage_scales({"a2v_lora_stages": junk}) == (0.0, 1.0), junk
+ job = P.make_job({"mode": "a2v", "prompt": "a singer", "audio": "/x.wav",
+ "a2v_lora_stages": "full"})
+ assert job["params"]["a2v_lora_stages"] == "full", "make_job dropped the override"
+
+
+def _dispatch_a2v(tmp_path, form, *, q8=True, loras=True):
+ import time as _t # noqa: PLC0415
+ import test_review_416_ltx as r416 # noqa: PLC0415
+ helper = r416._Helper()
+ wav = tmp_path / "song.wav"
+ wav.write_bytes(b"RIFF0000WAVE")
+ job = P.make_job({"mode": "a2v", "prompt": "a singer", "audio": str(wav),
+ "width": "512", "height": "288", "frames": "49", **form})
+ job["params"]["loras"] = [{"path": "/loras/face.safetensors", "strength": 1.0}] if loras else []
+ job["started_ts"] = _t.time()
+ caps = dict(P.CAPABILITIES["pro"], allows_q8=q8)
+ with mock.patch.object(P, "HELPER", helper), \
+ mock.patch.object(P, "OUTPUT", tmp_path), \
+ mock.patch.object(P, "SYSTEM_CAPS", caps), \
+ mock.patch.object(P, "ltx_pack_preflight", lambda *a, **k: None), \
+ mock.patch.object(P, "hq_surface_missing", lambda *a, **k: []), \
+ mock.patch.object(P, "run_ffmpeg_tracked", lambda *a, **k: ("", "")), \
+ mock.patch.object(P, "write_sidecar", lambda *a, **k: True):
+ try:
+ P.run_job_inner(job)
+ except Exception: # noqa: BLE001
+ pass
+ assert helper.sent, "the lane never reached the helper"
+ return helper.sent[0]["params"]
+
+
+def test_a_q8_lipsync_with_a_lora_asks_the_helper_for_the_stage_split(tmp_path):
+ assert _dispatch_a2v(tmp_path, {})["lora_stage_scales"] == [0.0, 1.0]
+ assert "lora_stage_scales" not in _dispatch_a2v(tmp_path, {"a2v_lora_stages": "full"})
+ assert "lora_stage_scales" not in _dispatch_a2v(tmp_path, {}, loras=False)
+ assert "lora_stage_scales" not in _dispatch_a2v(tmp_path, {}, q8=False)
+
+
+def test_the_form_says_so_in_one_plain_line():
+ src = (JS / "characters.js").read_text(encoding="utf-8")
+ fn = extract_function("a2vLoraStageLine", src)
+ got = _node(fn + "\nconsole.log(JSON.stringify([a2vLoraStageLine(false), a2vLoraStageLine(true)]));")
+ assert "face detail only" in got[0] and "stiffening the mouth" in got[0]
+ assert "whole lip-sync render" in got[1]
+ note = extract_function("audioStudioRenderLoraNote", src)
+ assert "a2vLoraStageLine(" in note
diff --git a/test_refusal_now_card.py b/test_refusal_now_card.py
new file mode 100644
index 0000000..689eeee
--- /dev/null
+++ b/test_refusal_now_card.py
@@ -0,0 +1,136 @@
+"""4.17.3 fleet fix: a refused render no longer offers a Retry that is refused
+again.
+
+THE BUG (fleet, 4.17.2, a 16 GB Mac): a Lip-sync clip past the Compact-tier
+length cap was refused (correctly) — and the failed Now card showed the
+generic "Job failed." with a Retry button. Retry re-queues the identical job,
+so it was refused again: ten times in ten minutes, then the user gave up on
+that clip. The refusal text never matched friendlyJobError (it has no
+"hardware tier —"), and the card offered Retry for every refusal.
+
+THE FIX: friendlyJobError names the Lip-sync length refusal and returns
+action 'split' (Split into N s clips — the one action that renders the song
+on that Mac); nowCardFailureActions withholds Retry for every hardware-tier
+refusal. Both run here in node, fed the server's REAL refusal sentence.
+"""
+from __future__ import annotations
+
+import json
+import os
+import shutil
+import subprocess
+import sys
+import tempfile
+import unittest
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent
+os.environ.setdefault("PHOSPHENE_ANALYTICS_DISABLED", "1")
+os.environ.setdefault("PHOSPHENE_DISABLE_VERSION_CHECK", "1")
+sys.path.insert(0, str(ROOT))
+sys.path.insert(0, str(ROOT / "scripts"))
+
+import mlx_ltx_panel as P # noqa: E402
+from extract_panel_js import extract_function # noqa: E402
+
+NODE = shutil.which("node")
+
+
+def _node(calls: list[str]) -> list:
+ if NODE is None:
+ raise unittest.SkipTest("node not on PATH")
+ src = (ROOT / "webapp" / "js" / "queue.js").read_text(encoding="utf-8")
+ fn = "\n".join(extract_function(n, src) for n in
+ ("_redactLocalPaths", "friendlyJobError", "nowCardFailureActions"))
+ script = fn + "\nconsole.log(JSON.stringify([\n " + ",\n ".join(calls) + "\n]));"
+ with tempfile.NamedTemporaryFile("w", suffix=".js", delete=False) as fh:
+ fh.write(script)
+ path = fh.name
+ try:
+ r = subprocess.run([NODE, path], capture_output=True, text=True,
+ errors="replace", timeout=60)
+ finally:
+ Path(path).unlink(missing_ok=True)
+ if r.returncode != 0:
+ raise AssertionError(r.stderr[-2000:])
+ return json.loads(r.stdout.strip().splitlines()[-1])
+
+
+class RefusedJobsDoNotOfferRetry(unittest.TestCase):
+ def test_lipsync_length_refusal_offers_split(self):
+ cap = 241
+ raw = P.a2v_length_refusal(313, cap) # the server's real sentence
+ cap_s = int(round(P._frames_to_model_duration(cap)))
+ job = {"id": "j1", "status": "failed", "error": raw, "refused_reason": "hardware_tier"}
+ fr, html = _node([
+ f"friendlyJobError({json.dumps(raw)})",
+ f"(() => {{ const f = friendlyJobError({json.dumps(raw)}); "
+ f"return nowCardFailureActions({json.dumps(job)}, f); }})()",
+ ])
+ self.assertEqual(fr["action"], "split")
+ self.assertEqual(fr["splitSec"], cap_s)
+ self.assertNotEqual(fr["friendly"], "Job failed.")
+ self.assertIn('data-action="split"', html)
+ self.assertIn(f'data-sec="{cap_s}"', html)
+ self.assertNotIn('data-action="retry"', html)
+
+ def test_any_hardware_tier_refusal_withholds_retry(self):
+ job = {"id": "j2", "status": "failed", "refused_reason": "hardware_tier",
+ "error": "This clip is too long for this Mac's GPU on the Compact hardware tier."}
+ (html,) = _node([f"nowCardFailureActions({json.dumps(job)}, {{}})"])
+ self.assertNotIn('data-action="retry"', html)
+ self.assertIn('data-action="dismiss"', html)
+
+ def test_a_real_failure_still_offers_retry(self):
+ job = {"id": "j3", "status": "failed", "error": "something broke"}
+ oom = {"id": "j4", "status": "failed", "error": "helper exited from SIGKILL"}
+ plain, smaller = _node([
+ f"nowCardFailureActions({json.dumps(job)}, friendlyJobError('something broke'))",
+ f"nowCardFailureActions({json.dumps(oom)}, friendlyJobError('helper exited from SIGKILL'))",
+ ])
+ self.assertIn('data-action="retry"', plain)
+ self.assertIn('data-action="retry-smaller"', smaller)
+
+ def test_split_reopens_the_failed_job_not_the_current_form(self):
+ # Codex 4.17.3: splitting "whatever the form holds now" would queue a
+ # different song after the user moved on, or fail after a reload. The
+ # button reopens THE REFUSED JOB's own recipe by id.
+ if NODE is None:
+ self.skipTest("node not on PATH")
+ src = (ROOT / "webapp" / "js" / "queue.js").read_text(encoding="utf-8")
+ fn = extract_function("openFailedJobInForm", src)
+ script = (
+ "const loaded = [];\n"
+ "function loadParams(r) { loaded.push(r.params); }\n"
+ "globalThis.LAST_STATUS = { history: [\n"
+ " { id: 'newer', params: { mode: 't2v', prompt: 'other' } },\n"
+ " { id: 'j9', params: { mode: 'a2v', audio: '/u/song_a.wav', frames: 313 } } ] };\n"
+ + fn + "\n"
+ "const ok = openFailedJobInForm('j9');\n"
+ "const missing = openFailedJobInForm('gone');\n"
+ "console.log(JSON.stringify([ok, missing, loaded]));\n")
+ with tempfile.NamedTemporaryFile("w", suffix=".js", delete=False) as fh:
+ fh.write(script)
+ path = fh.name
+ try:
+ r = subprocess.run([NODE, path], capture_output=True, text=True,
+ errors="replace", timeout=60)
+ finally:
+ Path(path).unlink(missing_ok=True)
+ self.assertEqual(r.returncode, 0, r.stderr[-1500:])
+ ok, missing, loaded = json.loads(r.stdout.strip().splitlines()[-1])
+ self.assertTrue(ok)
+ self.assertFalse(missing)
+ self.assertEqual(loaded, [{"mode": "a2v", "audio": "/u/song_a.wav", "frames": 313}])
+
+ def test_split_click_is_wired(self):
+ main = (ROOT / "webapp" / "js" / "main.js").read_text(encoding="utf-8")
+ self.assertIn('[data-action="split"]', main)
+ self.assertIn("openFailedJobInForm(id)", main)
+ q = (ROOT / "webapp" / "js" / "queue.js").read_text(encoding="utf-8")
+ pub = q[q.index("Object.assign(globalThis, {"):]
+ self.assertIn("openFailedJobInForm,", pub[:4000]) # published for main.js
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/test_seed_range.py b/test_seed_range.py
new file mode 100644
index 0000000..fe7c46b
--- /dev/null
+++ b/test_seed_range.py
@@ -0,0 +1,140 @@
+"""4.17.3 fleet fix: a seed MLX refuses no longer fails the render.
+
+THE BUG. mx.random.seed() takes an unsigned 64-bit int and nothing else.
+The Seed box is free text, make_job stored it verbatim, and the helper did
+`int(p.get("seed", -1))` and handed the result to the engine. So "-5" or a
+20-digit seed pasted from another tool reached mx.random.seed() and the
+render died with
+
+ seed(): incompatible function arguments. The following argument types
+ are supported: ...
+
+(fleet: 22 failed renders 4.6.0 -> 4.17.2, every one retried with the same
+seed and failing again). Text that is not a number ("abc") died one step
+earlier, on int().
+
+THE FIX. normalize_seed() at the panel boundary (make_job, every mode) and
+the same rule on the helper's side (_coerce_seed) for queued jobs saved by an
+older panel: -1 / empty / text -> random; out of range -> |n| mod 2**63,
+deterministic so a pinned seed stays repeatable.
+
+These tests EXECUTE mx.random.seed() on what the job actually carries — the
+assertion is "the engine accepts it", not "the code looks right".
+"""
+from __future__ import annotations
+
+import ast
+import os
+import sys
+import unittest
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent
+os.environ.setdefault("PHOSPHENE_ANALYTICS_DISABLED", "1")
+os.environ.setdefault("PHOSPHENE_DISABLE_VERSION_CHECK", "1")
+sys.path.insert(0, str(ROOT))
+
+import mlx_ltx_panel as P # noqa: E402
+
+try:
+ import mlx.core as mx # noqa: E402
+except Exception: # pragma: no cover - the gate venv always has mlx
+ mx = None
+
+
+def _helper_coerce():
+ """_coerce_seed + _SEED_LIMIT straight out of mlx_warm_helper.py, without
+ importing the helper (its import side effects start a pipeline world)."""
+ src = (ROOT / "mlx_warm_helper.py").read_text(encoding="utf-8")
+ tree = ast.parse(src)
+ keep = []
+ for node in tree.body:
+ if isinstance(node, ast.FunctionDef) and node.name == "_coerce_seed":
+ keep.append(node)
+ elif (isinstance(node, ast.Assign) and len(node.targets) == 1
+ and isinstance(node.targets[0], ast.Name)
+ and node.targets[0].id == "_SEED_LIMIT"):
+ keep.append(node)
+ assert len(keep) == 2, "mlx_warm_helper.py lost _coerce_seed or _SEED_LIMIT"
+ ns: dict = {}
+ exec(compile(ast.Module(body=keep, type_ignores=[]), "mlx_warm_helper.py", "exec"), ns)
+ return ns["_coerce_seed"]
+
+
+BAD_SEEDS = [
+ "-5", "-2", "-9223372036854775809",
+ "18446744073709551616", # 2**64
+ "123456789012345678901234567890", # pasted from somewhere else
+ "1.2345678901234568e+21", # JS Number() of a long seed
+ "abc", " 42 ", "1_000", "7.0",
+]
+
+
+class NormalizeSeed(unittest.TestCase):
+ def test_contract(self):
+ cases = {
+ None: -1, "": -1, "-1": -1, -1: -1, "random": -1, "abc": -1,
+ "1.5": -1, float("nan"): -1, True: -1,
+ "0": 0, "42": 42, " 42 ": 42, "1_000": 1000, "7.0": 7, 7.0: 7,
+ "-5": 5, -5: 5,
+ str(2 ** 63 - 1): 2 ** 63 - 1,
+ str(2 ** 63): 0,
+ str(2 ** 64): (2 ** 64) % (2 ** 63),
+ }
+ for raw, want in cases.items():
+ self.assertEqual(P.normalize_seed(raw), want, f"normalize_seed({raw!r})")
+
+ def test_deterministic(self):
+ big = "123456789012345678901234567890"
+ self.assertEqual(P.normalize_seed(big), P.normalize_seed(big))
+ self.assertGreaterEqual(P.normalize_seed(big), 0)
+ self.assertLess(P.normalize_seed(big), P.SEED_LIMIT)
+
+ def test_helper_agrees_with_panel(self):
+ coerce = _helper_coerce()
+ for raw in BAD_SEEDS + [None, "", "-1", "0", "42", 42, -1, 7.0,
+ str(2 ** 63), str(2 ** 64), "nan"]:
+ self.assertEqual(coerce(raw), P.normalize_seed(raw), f"seed {raw!r}")
+
+ def test_retry_offsets_stay_in_range(self):
+ top = str(P.SEED_LIMIT - 1)
+ r = int(P._take_retry_seed(top, 211 * 3))
+ self.assertTrue(0 <= r < P.SEED_LIMIT)
+ self.assertEqual(P._take_retry_seed("-1", 101), "-1")
+ self.assertEqual(P._take_retry_seed("abc", 101), "-1")
+ self.assertEqual(P._take_retry_seed("10", 101), "111")
+
+
[email protected](mx is None, "mlx not importable")
+class EngineAcceptsWhatTheJobCarries(unittest.TestCase):
+ def _engine_seed(self, job_seed):
+ # What the helper does with the job's seed before this release:
+ # int() it, -1 -> random, hand it to mx.random.seed.
+ n = int(str(job_seed))
+ if n == -1:
+ return
+ mx.random.seed(n)
+
+ def test_video_job_seeds(self):
+ for raw in BAD_SEEDS:
+ job = P.make_job({"mode": "t2v", "prompt": "a lighthouse at dusk",
+ "seed": raw})
+ seed = job["params"]["seed"]
+ try:
+ self._engine_seed(seed)
+ except (TypeError, ValueError) as exc:
+ self.fail(f"seed {raw!r} -> job seed {seed!r} -> {exc}")
+
+ def test_helper_side_for_old_saved_jobs(self):
+ # A job queued by 4.17.2 still carries the raw text; the helper must
+ # cope on its own.
+ coerce = _helper_coerce()
+ for raw in BAD_SEEDS:
+ n = coerce(raw)
+ if n >= 0:
+ mx.random.seed(n)
+ mx.random.seed(n + 2) # a2vid_distilled's own +2
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/test_stats_growth.py b/test_stats_growth.py
index d0e441a..71bd723 100644
--- a/test_stats_growth.py
+++ b/test_stats_growth.py
@@ -46,15 +46,20 @@ class LocalGrowth(unittest.TestCase):
class FleetQueriesAndPage(unittest.TestCase):
def test_fleet_queries_have_no_window_on_the_totals(self):
- q = p._USAGE_FLEET_QUERIES
- for name in ("total_renders", "total_installs", "installs_by_day", "renders_by_day", "active_by_week"):
- self.assertIn(name, q)
- self.assertNotIn("INTERVAL", q["total_renders"])
- self.assertNotIn("INTERVAL", q["total_installs"])
- self.assertNotIn("INTERVAL", q["installs_by_day"])
- self.assertIn("render_completed", q["total_renders"])
- # the running week is excluded, or the caption reads as a collapse
- self.assertIn("toStartOfWeek(timestamp) < toStartOfWeek(now())", q["active_by_week"])
+ # stats-v2: the static dict became a function of range_key — the
+ # "totals" queries stay windowless (no INTERVAL) regardless of
+ # which range is selected, by design (see _fleet_queries' docstring).
+ for range_key in ("7d", "30d", "90d", "all"):
+ q = p._fleet_queries(range_key)
+ for name in ("total_renders", "total_installs", "installs_by_day",
+ "renders_by_day", "active_by_week"):
+ self.assertIn(name, q)
+ self.assertNotIn("INTERVAL", q["total_renders"])
+ self.assertNotIn("INTERVAL", q["total_installs"])
+ self.assertNotIn("INTERVAL", q["installs_by_day"])
+ self.assertIn("render_completed", q["total_renders"])
+ # the running week is excluded, or the caption reads as a collapse
+ self.assertIn("toStartOfWeek(timestamp) < toStartOfWeek(now())", q["active_by_week"])
def test_page_has_the_tiles_and_the_chart(self):
html = p.STATS_HTML_FILE.read_text(encoding="utf-8")
diff --git a/test_stats_v2_range.py b/test_stats_v2_range.py
new file mode 100644
index 0000000..6e4a179
--- /dev/null
+++ b/test_stats_v2_range.py
@@ -0,0 +1,371 @@
+"""stats-v2 (2026-09-30): the dashboard range control (7d/30d/90d/all) and
+the two root-cause number bugs it shipped alongside.
+
+Covers:
+ - /stats/data's `range` param: correct window boundaries for all four
+ values, and per-range caching that returns DISTINCT bodies (not one
+ shared cache key silently serving the wrong window).
+ - The owner-exclusion rule (PHOSPHENE_TEST_RIG -> properties.test_rig)
+ is actually present on every fleet HogQL query — SYS-41 documented it
+ ("a fleet query excludes these rows with WHERE NOT test_rig") while
+ not one of the shipped queries did it.
+ - error_groups: grouping render_failed by the closed error_class
+ taxonomy (count, distinct installs, first/last seen, top message),
+ on both the local-mirror path and the fleet HogQL shape.
+ - The local-mirror path buckets days in UTC (time.gmtime), matching the
+ fleet's HogQL toDate(timestamp) and the GitHub-stats archive's UTC
+ `date` field — it used to bucket by the machine's own local midnight.
+ - _pct_delta's "no meaningful baseline" cases return None, not 0 or a
+ divide-by-zero.
+"""
+from __future__ import annotations
+
+import json
+import time
+import unittest
+from pathlib import Path
+from unittest import mock
+
+import mlx_ltx_panel as p
+
+
+def _rec(ev, ts, **props):
+ return {"event": ev, "ts": ts, "props": props}
+
+
+def _day_row(date: str, **kw) -> dict:
+ row = {"date": date, "fetched_at": f"{date}T12:00:00Z",
+ "stars": 1, "forks": 1, "open_issues": 0, "open_prs": 0}
+ row.update(kw)
+ return row
+
+
+class StatsDataRangeParam(unittest.TestCase):
+ """/stats/data?range=... — server-side window + per-range cache."""
+
+ def setUp(self):
+ # Write a 120-day synthetic archive straight into the sandboxed
+ # STATE_DIR (conftest.py points LTX_STATE_DIR at a per-run temp
+ # tree before mlx_ltx_panel is even imported, so this never
+ # touches a real install's archive).
+ now = time.time()
+ rows = []
+ for i in range(120, -1, -1):
+ d = time.strftime("%Y-%m-%d", time.gmtime(now - i * 86400))
+ rows.append(json.dumps(_day_row(d)))
+ p.STATS_DATA_FILE.parent.mkdir(parents=True, exist_ok=True)
+ p.STATS_DATA_FILE.write_text("\n".join(rows) + "\n", encoding="utf-8")
+ p._STATS_DATA_RANGE_CACHE.clear()
+ self.addCleanup(p._STATS_DATA_RANGE_CACHE.clear)
+
+ def _dates(self, range_key: str) -> list[str]:
+ body = p._stats_data_for_range(range_key)
+ return [json.loads(line)["date"] for line in body.splitlines() if line.strip()]
+
+ def test_all_returns_the_whole_archive(self):
+ dates = self._dates("all")
+ self.assertEqual(len(dates), 121)
+
+ def test_30d_returns_roughly_two_windows_not_the_whole_archive(self):
+ # 30d asks for 2x the window (60ish days) so the client can compute
+ # a "vs prior period" delta from one response — see
+ # _stats_data_for_range's docstring. It must be narrower than "all".
+ dates = self._dates("30d")
+ self.assertLess(len(dates), 121)
+ self.assertGreaterEqual(len(dates), 30)
+ today = time.strftime("%Y-%m-%d", time.gmtime())
+ self.assertIn(today, dates)
+
+ def test_7d_is_narrower_than_30d_is_narrower_than_90d(self):
+ n7 = len(self._dates("7d"))
+ n30 = len(self._dates("30d"))
+ n90 = len(self._dates("90d"))
+ self.assertLess(n7, n30)
+ self.assertLess(n30, n90)
+
+ def test_unknown_range_falls_back_to_the_default(self):
+ default = p._stats_data_for_range(p.STATS_RANGE_DEFAULT)
+ garbage = p._stats_data_for_range("not-a-real-range")
+ self.assertEqual(default, garbage)
+
+ def test_each_range_is_cached_separately_not_under_one_shared_key(self):
+ b7 = p._stats_data_for_range("7d")
+ b30 = p._stats_data_for_range("30d")
+ ball = p._stats_data_for_range("all")
+ self.assertNotEqual(b7, b30)
+ self.assertNotEqual(b30, ball)
+ self.assertEqual(set(p._STATS_DATA_RANGE_CACHE.keys()), {"7d", "30d", "all"})
+
+ def test_refresh_busts_every_ranges_cache_via_mtime(self):
+ # /stats/refresh rewrites the archive; that bumps its mtime, which
+ # must invalidate every cached range on the next read (no separate
+ # "clear the usage cache" call needed — see the function docstring).
+ first = p._stats_data_for_range("all")
+ cached_mtime = p._STATS_DATA_RANGE_CACHE["all"][0]
+ # Simulate a slightly-later refresh appending a new day.
+ time.sleep(0.02)
+ with p.STATS_DATA_FILE.open("a", encoding="utf-8") as f:
+ f.write(json.dumps(_day_row("2099-01-01")) + "\n")
+ second = p._stats_data_for_range("all")
+ self.assertNotEqual(first, second)
+ self.assertNotEqual(p._STATS_DATA_RANGE_CACHE["all"][0], cached_mtime)
+
+ def test_route_defaults_to_30d_when_range_is_omitted(self):
+ import panel.routes_stats as rs
+ rs.P = p
+
+ class FakeParsed:
+ query = ""
+
+ class FakeHandler:
+ def __init__(self):
+ self.sent = []
+
+ def send_response(self, code):
+ self.sent.append(("status", code))
+
+ def send_header(self, *a):
+ pass
+
+ def end_headers(self):
+ pass
+
+ wfile = mock.Mock()
+
+ h = FakeHandler()
+ rs.stats_data(h, FakeParsed())
+ expected = p._stats_data_for_range("30d")
+ h.wfile.write.assert_called_once_with(expected)
+
+
+class OwnerExclusionAppliedEverywhere(unittest.TestCase):
+ """SYS-41's documented rule ('a fleet query excludes these rows with
+ WHERE NOT test_rig') — verify it's on EVERY query, not just some."""
+
+ def test_every_fleet_query_carries_the_exclusion(self):
+ for range_key in ("7d", "30d", "90d", "all"):
+ queries = p._fleet_queries(range_key)
+ for name, hogql in queries.items():
+ self.assertIn(
+ "test_rig", hogql,
+ f"query {name!r} (range={range_key}) has no owner-exclusion clause",
+ )
+ self.assertIn("ifNull(properties['test_rig'], 'false') != 'true'", hogql)
+
+ def test_where_helpers_always_append_the_exclusion(self):
+ self.assertIn(p._TEST_RIG_EXCLUDE, p._fleet_where_raw("event = 'app_boot'"))
+ self.assertIn(p._TEST_RIG_EXCLUDE, p._fleet_where("event = 'app_boot'", "30d"))
+ self.assertIn(p._TEST_RIG_EXCLUDE, p._fleet_where("event = 'app_boot'", "all"))
+
+
+class RangeAwareWindows(unittest.TestCase):
+ def test_fleet_window_sql_all_has_no_clause(self):
+ self.assertEqual(p._fleet_window_sql("all"), "")
+ self.assertEqual(p._fleet_window_sql("all", prior=True), "")
+
+ def test_fleet_window_sql_scales_with_range(self):
+ self.assertIn("INTERVAL 7 DAY", p._fleet_window_sql("7d"))
+ self.assertIn("INTERVAL 30 DAY", p._fleet_window_sql("30d"))
+ self.assertIn("INTERVAL 90 DAY", p._fleet_window_sql("90d"))
+
+ def test_prior_window_is_the_equal_length_period_before_the_current_one(self):
+ w = p._fleet_window_sql("30d", prior=True)
+ self.assertIn("INTERVAL 60 DAY", w)
+ self.assertIn("INTERVAL 30 DAY", w)
+
+
+class PctDelta(unittest.TestCase):
+ def test_none_when_no_baseline(self):
+ self.assertIsNone(p._pct_delta(10, None))
+ self.assertIsNone(p._pct_delta(None, 10))
+ self.assertIsNone(p._pct_delta(10, 0)) # no divide-by-zero
+
+ def test_computes_signed_percent(self):
+ self.assertEqual(p._pct_delta(120, 100), 20.0)
+ self.assertEqual(p._pct_delta(80, 100), -20.0)
+
+
+class LocalReportUsesUtcDayBoundaries(unittest.TestCase):
+ """The local-mirror path (every install without a PostHog query key —
+ i.e. almost every user but the owner) used to bucket by the MACHINE's
+ own local midnight (time.localtime), while the fleet path buckets in
+ UTC (HogQL toDate) and the GitHub-stats archive stamps UTC dates. Same
+ calendar day, two different bucketings depending on which source
+ happened to answer — this pins the fix (time.gmtime)."""
+
+ def test_boots_by_day_bucket_matches_gmtime_not_localtime(self):
+ # A timestamp deliberately near a local-midnight boundary in most
+ # timezones; comparing gmtime- vs localtime- bucketing catches the
+ # regression on any machine, not just one running UTC+ or UTC-.
+ now = time.time()
+ ts = now - 2 * 86400
+ recs = [_rec("app_boot", ts, version="4.9.0")]
+ with mock.patch.object(p, "_usage_log_read", lambda: recs):
+ u = p._usage_local_report("30d")
+ expected_day = time.strftime("%Y-%m-%d", time.gmtime(ts))
+ got_days = [row["date"] for row in u["boots_by_day"]]
+ self.assertEqual(got_days, [expected_day])
+
+ def test_first_boot_growth_date_is_utc(self):
+ now = time.time()
+ recs = [_rec("app_boot", now, version="4.9.0")]
+ with mock.patch.object(p, "_usage_log_read", lambda: recs):
+ u = p._usage_local_report("30d")
+ expected = time.strftime("%Y-%m-%d", time.gmtime(now))
+ self.assertEqual(u["growth"]["installs_by_day"][0]["date"], expected)
+
+
+class LocalErrorGroups(unittest.TestCase):
+ def test_groups_by_class_counts_installs_and_picks_top_message(self):
+ now = time.time()
+ recs = [
+ _rec("render_failed", now - 1000, error_class="oom_jetsam",
+ error_signature="SIGKILL: out of memory"),
+ _rec("render_failed", now - 500, error_class="oom_jetsam",
+ error_signature="SIGKILL: out of memory"),
+ _rec("render_failed", now - 100, error_class="oom_jetsam",
+ error_signature="SIGKILL: different message"),
+ _rec("render_failed", now - 10, error_class="venv_broken",
+ error_signature="python not found"),
+ ]
+ with mock.patch.object(p, "_usage_log_read", lambda: recs):
+ u = p._usage_local_report("30d")
+ groups = {g["error_class"]: g for g in u["error_groups"]}
+ self.assertEqual(groups["oom_jetsam"]["count"], 3)
+ self.assertEqual(groups["oom_jetsam"]["top_message"], "SIGKILL: out of memory")
+ self.assertEqual(groups["oom_jetsam"]["signatures"], 2)
+ self.assertEqual(groups["venv_broken"]["count"], 1)
+ # local mirror is one machine — "installs" is always 1 per class
+ self.assertEqual(groups["oom_jetsam"]["installs"], 1)
+
+ def test_missing_error_class_falls_back_to_other(self):
+ now = time.time()
+ recs = [_rec("render_failed", now, error_signature="mystery")]
+ with mock.patch.object(p, "_usage_log_read", lambda: recs):
+ u = p._usage_local_report("30d")
+ self.assertEqual(u["error_groups"][0]["error_class"], "other")
+
+ def test_range_scopes_which_failures_are_grouped(self):
+ now = time.time()
+ recs = [
+ _rec("render_failed", now - 100 * 86400, error_class="timeout",
+ error_signature="old failure outside range"),
+ _rec("render_failed", now - 1 * 86400, error_class="disk_full",
+ error_signature="recent failure"),
+ ]
+ with mock.patch.object(p, "_usage_log_read", lambda: recs):
+ u7 = p._usage_local_report("7d")
+ u_all = p._usage_local_report("all")
+ classes_7d = {g["error_class"] for g in u7["error_groups"]}
+ classes_all = {g["error_class"] for g in u_all["error_groups"]}
+ self.assertEqual(classes_7d, {"disk_full"})
+ self.assertEqual(classes_all, {"timeout", "disk_full"})
+
+
+class FleetDeltasHaveNoPriorPeriodForAllTime(unittest.TestCase):
+ """Found live while smoke-testing stats-v2 on :8266: for range='all',
+ _fleet_window_sql(prior=True) is also the empty clause (there's no
+ "period before all time" to bound it by), so the 'current' and 'prior'
+ HogQL queries are IDENTICAL and _pct_delta(x, x) computed a real 0.0 —
+ the dashboard showed "±0% vs prior" on the one range where there is no
+ prior period at all. Fixed by gating range_key == 'all' explicitly
+ rather than trusting the arithmetic."""
+
+ def test_all_time_range_has_no_deltas(self):
+ # Every current/prior query pair returns the SAME row on purpose —
+ # reproduces exactly what "all" actually does server-side, so this
+ # fails again if the range_key=='all' gate is ever removed.
+ same_pair = [["render_completed", 40], ["render_failed", 10]]
+ with mock.patch.object(p, "_analytics_query_key", return_value="phx_fake"), \
+ mock.patch.object(p, "_usage_fleet_query_one",
+ side_effect=lambda hogql, key: (
+ same_pair if "GROUP BY event" in hogql else same_scalar)):
+ report = p._usage_fleet_report("all")
+ self.assertIsNotNone(report)
+ self.assertEqual(report["deltas"], {})
+
+ def test_narrower_ranges_still_compute_deltas(self):
+ same_pair = [["render_completed", 40], ["render_failed", 10]]
+ with mock.patch.object(p, "_analytics_query_key", return_value="phx_fake"), \
+ mock.patch.object(p, "_usage_fleet_query_one",
+ side_effect=lambda hogql, key: (
+ same_pair if "GROUP BY event" in hogql else [[100]])):
+ report = p._usage_fleet_report("30d")
+ self.assertIn("renders_in_range_pct", report["deltas"])
+
+
+class RateTilesFollowTheRange(unittest.TestCase):
+ """Owner: numbers must be consistent with the picker. h3_share_pct and
+ error_rate_pct used a hardcoded 14-day window on the local path while
+ every other tile followed the range control."""
+
+ def test_h3_share_and_error_rate_use_the_selected_window(self):
+ now = time.time()
+ recs = [
+ # 20 days ago: outside 7d and outside the old fixed 14d window
+ _rec("render_failed", now - 20 * 86400, engine="h3", error_class="timeout"),
+ _rec("render_completed", now - 20 * 86400, engine="h3"),
+ # yesterday: inside every window
+ _rec("render_completed", now - 1 * 86400, engine="ltx"),
+ ]
+ with mock.patch.object(p, "_usage_log_read", lambda: recs):
+ u7 = p._usage_local_report("7d")
+ u30 = p._usage_local_report("30d")
+ self.assertEqual(u7["tiles"]["h3_share_pct"], 0.0)
+ self.assertEqual(u7["tiles"]["error_rate_pct"], 0.0)
+ self.assertAlmostEqual(u30["tiles"]["h3_share_pct"], 66.7, places=1)
+ self.assertAlmostEqual(u30["tiles"]["error_rate_pct"], 33.3, places=1)
+
+ def test_fleet_rate_queries_are_range_scoped(self):
+ q = p._fleet_queries("90d")
+ self.assertIn("INTERVAL 90 DAY", q["engines"])
+ self.assertIn("INTERVAL 90 DAY", q["outcomes"])
+
+
+class LocalReportFeedsTheActiveTile(unittest.TestCase):
+ """4.17.3 review: the stats-v2 "Active this range" tile reads
+ tiles.active_in_range; the local fallback only sent the old
+ weekly_active_installs, so the tile showed a dash."""
+
+ def test_local_report_carries_active_in_range(self):
+ now = time.time()
+ recs = [_rec("app_boot", now - 3600, version="4.17.3")]
+ with mock.patch.object(p, "_usage_log_read", lambda: recs):
+ u = p._usage_local_report("7d")
+ self.assertEqual(u["tiles"]["active_in_range"], 1)
+ html = (Path(p.ROOT) / "panel_assets" / "stats.html").read_text(encoding="utf-8")
+ self.assertIn("t.active_in_range", html)
+
+
+class StatsLoadersDropSupersededResponses(unittest.TestCase):
+ """4.17.3 review: picking 7d while the 30d request was still in flight
+ let the older answer land last and paint 30-day totals under 7-day
+ labels. Each loader now stamps its request and drops a superseded one."""
+
+ def test_both_loaders_check_their_generation(self):
+ html = (Path(p.ROOT) / "panel_assets" / "stats.html").read_text(encoding="utf-8")
+ usage = html[html.index("async function loadUsage("):]
+ usage = usage[:usage.index("renderUsage(u || {});")]
+ self.assertIn("const gen = ++_usageGen;", usage)
+ self.assertIn("if (gen !== _usageGen) return;", usage)
+ main = html[html.index("async function main() {"):]
+ main = main[:main.index("renderMeta(allRows);")]
+ self.assertIn("const gen = ++_rowsGen;", main)
+ self.assertIn("if (gen !== _rowsGen) return;", main)
+
+
+class FleetErrorGroupsQueryShape(unittest.TestCase):
+ """Can't hit PostHog in a unit test — asserts the HogQL shape carries
+ the fields the dashboard's error-group cards need, and the exclusion."""
+
+ def test_error_groups_query_selects_the_expected_columns(self):
+ q = p._fleet_queries("30d")["error_groups"]
+ for col in ("class", "total", "installs", "first_seen", "last_seen", "top_message"):
+ self.assertIn(col, q)
+ self.assertIn("render_failed", q)
+ self.assertIn(p._TEST_RIG_EXCLUDE, q)
+ self.assertIn("GROUP BY class", q)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/webapp/index.html b/webapp/index.html
index 51ca40c..b24308d 100644
--- a/webapp/index.html
+++ b/webapp/index.html
@@ -4033,12 +4033,16 @@ The last line"></textarea>
hedged, constant motion; a separated vocal doubled how much
a measured clip's mouth moved. The manual form never
exposed a control for it. Default ON: a song is the common
- case this helps, and it degrades to the full mix (with a
- log note) rather than failing when demucs isn't installed. -->
+ case this helps. Install and Update put the separator in
+ place; if it is missing the render is refused with an
+ install offer, never quietly run on the full mix. -->
<label class="mf-cell" style="margin-top:8px;display:flex;align-items:center;gap:8px;cursor:pointer;">
- <input type="checkbox" id="audioStudioStemAuto" checked style="width:auto;margin:0;">
- <span>Listen to the voice only <span class="hint" style="font-weight:normal">(separates the singer from the band before the model listens — the finished clip still plays the full mix; adds ~1-2 min once per song, falls back to the full mix if unavailable)</span></span>
+ <input type="checkbox" id="audioStudioStemAuto" checked style="width:auto;margin:0;" onchange="audioStudioRenderSeparator()">
+ <span>Listen to the voice only <span class="hint" style="font-weight:normal">(separates the singer from the band before the model listens — the finished clip still plays the full mix; about 20 s once per song)</span></span>
</label>
+ <!-- Never a silent fallback: when vocal separation is missing the
+ form says so here and offers the install (/a2v/separator). -->
+ <div class="music-pack-note" id="audioStudioStemStatus" role="status" style="margin-top:6px;display:none"></div>
<div class="mf-cell" style="margin-top:8px">
<span class="mf-label">Duration</span>
<div class="range-strip">
diff --git a/webapp/js/characters.js b/webapp/js/characters.js
index c10aada..31b290e 100644
--- a/webapp/js/characters.js
+++ b/webapp/js/characters.js
@@ -516,6 +516,7 @@ function audioStudioInit() {
const _acsEl = document.getElementById('audioConditioningScale');
if (!_acsEl || _acsEl.dataset.auto) audioConditioningScaleReset();
audioStudioRenderLoraNote();
+ audioStudioRefreshSeparator();
audioStudioApplyTierClamp();
// VA-06: seed the price on every visit (not just after a slider drag) so
// the estimate is on screen before Generate is ever pressed.
@@ -572,7 +573,93 @@ function audioStudioRenderLoraNote() {
+ ' from the Video tab will be applied here too: <b>' + names + '</b> — '
+ '<a href="#" onclick="event.preventDefault();workflowSwitch(\'manual\');'
+ 'var d=document.getElementById(\'lorasDetails\');if(d)d.open=true;'
- + 'd&&d.scrollIntoView({block:\'start\'});">change</a>';
+ + 'd&&d.scrollIntoView({block:\'start\'});">change</a>'
+ + '<br>' + a2vLoraStageLine(window.PHOSPHENE_CAP_TIER === 'q4');
+}
+// Keep the face, free the mouth (lip-sync quality, 4.17.x): a face LoRA at
+// full strength mutes the singer, so on the Q8 lane Lip-sync leaves the LoRA
+// out while the performance is shaped and uses it for the face detail. The Q4
+// lane has no such seam — say that plainly instead.
+function a2vLoraStageLine(isQ4) {
+ return isQ4
+ ? 'On this Mac a LoRA shapes the whole lip-sync render, which can make the mouth move less \u2014 lower its strength if the mouth barely moves.'
+ : 'Lip-sync uses LoRAs for the face detail only, so they keep the likeness without stiffening the mouth.';
+}
+
+// VOCAL SEPARATION — "Listen to the voice only" needs it, and until 4.17 a
+// missing separator quietly rendered the FULL MIX (one line in the job log).
+// Install and Update put it in place now; this line says so when it is not,
+// and offers the same install from right here. PURE text builder so it is
+// tested by executing it.
+const A2V_SEPARATOR = { ready: null, timer: null };
+function audioStudioSeparatorNote(s, wantsStem) {
+ if (!s) return '';
+ const inst = s.install || {};
+ if (inst.active) {
+ const last = (inst.log || []).slice(-1)[0] || 'starting';
+ return '<b>Installing vocal separation\u2026</b> <span class="hint">' + escapeHtml(last) + '</span>';
+ }
+ // 4.17.3 review: the package can install while the 80 MB voice model fails
+ // to download (a network drop) - status then says ready:true, weights:false,
+ // install failed. The ready branch below used to swallow that failure and
+ // its Try again; say it, since the first render would stop to fetch it.
+ if (s.ready && s.weights === false && inst.state === 'failed' && wantsStem) {
+ return '<b>The voice model did not download:</b> ' + escapeHtml(inst.error || 'unknown error')
+ + ' <button type="button" class="ghost-btn" onclick="audioStudioInstallSeparator()">Try again</button>'
+ + ' <span class="hint">or leave it: the first voice-only render downloads it (about 80 MB).</span>';
+ }
+ if (s.ready) {
+ return inst.state === 'done' ? '<b>Vocal separation is installed.</b> The model will listen to the voice only.' : '';
+ }
+ if (!wantsStem) return '';
+ if (inst.state === 'failed') {
+ return '<b>Vocal separation did not install:</b> ' + escapeHtml(inst.error || 'unknown error')
+ + ' <button type="button" class="ghost-btn" onclick="audioStudioInstallSeparator()">Try again</button>'
+ + ' <span class="hint">or untick \u201cListen to the voice only\u201d to use the full mix.</span>';
+ }
+ return '<b>Vocal separation is not installed on this Mac yet</b>, so \u201cListen to the voice only\u201d cannot run. '
+ + '<button type="button" class="ghost-btn" onclick="audioStudioInstallSeparator()">Install it (about 90 MB, once)</button>'
+ + ' <span class="hint">or untick the box to render against the full mix.</span>';
+}
+function audioStudioRenderSeparator(s) {
+ if (s) A2V_SEPARATOR.last = s;
+ s = A2V_SEPARATOR.last;
+ const el = document.getElementById('audioStudioStemStatus');
+ if (!el) return;
+ const box = document.getElementById('audioStudioStemAuto');
+ const html = audioStudioSeparatorNote(s, !!(box && box.checked));
+ el.innerHTML = html;
+ el.style.display = html ? '' : 'none';
+}
+async function audioStudioRefreshSeparator() {
+ try {
+ const r = await fetch('/a2v/separator');
+ const s = await r.json();
+ A2V_SEPARATOR.ready = !!s.ready;
+ audioStudioRenderSeparator(s);
+ clearTimeout(A2V_SEPARATOR.timer);
+ if (s.install && s.install.active) {
+ A2V_SEPARATOR.timer = setTimeout(audioStudioRefreshSeparator, 1500);
+ }
+ } catch (e) { /* the form still works; the server refuses with the same words */ }
+}
+async function audioStudioInstallSeparator() {
+ try {
+ const r = await fetch('/a2v/separator/install', { method: 'POST', body: new URLSearchParams({}) });
+ const res = await r.json().catch(() => ({}));
+ if (!r.ok && !res.install) throw new Error(res.error || ('HTTP ' + r.status));
+ } catch (e) {
+ if (typeof phosToast === 'function') phosToast('Could not start the install: ' + (e.message || e), { kind: 'danger' });
+ }
+ audioStudioRefreshSeparator();
+}
+// The words the server answers a refused a2v submit with, or the raw text.
+function audioStudioSubmitError(status, txt) {
+ try {
+ const j = JSON.parse(txt);
+ if (j && j.error) return j.error;
+ } catch (e) { /* not JSON */ }
+ return 'HTTP ' + status + ' ' + txt;
}
async function audioStudioUploadAudio(file) {
@@ -1336,6 +1423,15 @@ async function audioStudioGenerate(opts) {
return;
}
+ // "Listen to the voice only" on a Mac without the separator: say so and
+ // offer the install instead of queueing a render the server refuses.
+ const _stemBox = document.getElementById('audioStudioStemAuto');
+ if (_stemBox && _stemBox.checked && A2V_SEPARATOR.ready === false) {
+ audioStudioRenderSeparator();
+ if (status) status.textContent = 'Install vocal separation first (just above), or untick \u201cListen to the voice only\u201d.';
+ return;
+ }
+
AUDIO_STUDIO.busy = true;
if (btn) btn.disabled = true;
if (status) status.textContent = 'Queueing…';
@@ -1379,7 +1475,11 @@ async function audioStudioGenerate(opts) {
const r = await fetch('/queue/add', { method: 'POST', body: fd });
if (!r.ok) {
const txt = await r.text();
- throw new Error('HTTP ' + r.status + ' ' + txt);
+ if (r.status === 400 && txt.indexOf('vocal_separator_missing') >= 0) {
+ A2V_SEPARATOR.ready = false;
+ audioStudioRefreshSeparator();
+ }
+ throw new Error(audioStudioSubmitError(r.status, txt));
}
if (status) {
status.textContent = draft
@@ -4451,4 +4551,7 @@ Object.assign(globalThis, {
openLipSyncEntry, audioStudioRenderLoraNote,
audioStudioPromptCheck, audioStudioPromptApplyFix, audioStudioMouthCheck,
audioStudioSplitIntoClips, audioStudioSplitCancel,
+ // Vocal separation: the checkbox's onchange and the generated Install /
+ // Try again buttons resolve through the global scope.
+ audioStudioRenderSeparator, audioStudioInstallSeparator, audioStudioRefreshSeparator,
});
diff --git a/webapp/js/main.js b/webapp/js/main.js
index ec241e5..36f05da 100644
--- a/webapp/js/main.js
+++ b/webapp/js/main.js
@@ -62,7 +62,7 @@ document.addEventListener('visibilitychange', () => { if (!document.hidden) poll
// click that landed mid-rewrite could be lost. A single delegated
// listener on document survives every rewrite + costs nothing.
document.addEventListener('click', (e) => {
- const btn = e.target.closest('[data-action="retry"], [data-action="retry-smaller"], [data-action="dismiss"], [data-action="stop-early"], [data-action="resume"]');
+ const btn = e.target.closest('[data-action="retry"], [data-action="retry-smaller"], [data-action="dismiss"], [data-action="stop-early"], [data-action="resume"], [data-action="split"]');
if (!btn) return;
e.stopPropagation();
e.preventDefault();
@@ -74,7 +74,13 @@ document.addEventListener('click', (e) => {
const actions = btn.closest('.now-card-actions');
const id = actions ? actions.dataset.jobId : '';
if (!id) return;
- if (btn.dataset.action === 'retry') {
+ if (btn.dataset.action === 'split') {
+ // 4.17.3: a Lip-sync clip refused for its length on a Compact Mac. Reopen
+ // THAT job (its song, start, picture, settings) in the Lip-sync form —
+ // never whatever the form holds now — where the length note offers
+ // "Split into N s clips" against the job's own audio.
+ if (typeof openFailedJobInForm === 'function') openFailedJobInForm(id);
+ } else if (btn.dataset.action === 'retry') {
if (typeof retryJob === 'function') retryJob(id);
} else if (btn.dataset.action === 'retry-smaller') {
// SYS-07 / VC-08: "Retry smaller" for the GPU-watchdog / OOM failure
diff --git a/webapp/js/queue.js b/webapp/js/queue.js
index b006eb5..71665cb 100644
--- a/webapp/js/queue.js
+++ b/webapp/js/queue.js
@@ -2847,6 +2847,57 @@ function _redactLocalPaths(text) {
.replace(/\/Users\/[^\s)]+/g, '(see Logs)')
.replace(/\s{2,}/g, ' ').trim();
}
+// 4.17.3: reopen a failed job's own recipe in its form (the Now card's
+// "Open in Lip-sync to split"). By job id from the last /status, so it is the
+// refused job's song and picture, not whatever the form holds by now.
+function openFailedJobInForm(jobId) {
+ const hist = (globalThis.LAST_STATUS && globalThis.LAST_STATUS.history) || [];
+ const job = hist.find(j => j && String(j.id) === String(jobId));
+ if (!job || !job.params) return false;
+ loadParams({ params: job.params });
+ return true;
+}
+// 4.17.3 (fleet): the failed Now card's action row, as a pure function so a
+// test can run it. A REFUSAL is the panel saying no on purpose, and for the
+// hardware tier it says no to the same job every time — but the card offered
+// "Retry", which re-queued the identical job: one 16 GB Mac pressed it ten
+// times in ten minutes on a Lip-sync clip past its length cap, refused each
+// time. Retry is now withheld for hardware-tier refusals (the hint says what
+// to change), and the Lip-sync length refusal offers the one action that
+// renders the song on that Mac: Split into clips.
+function nowCardFailureActions(last, info) {
+ const action = info && info.action;
+ const smaller = info && info.smaller;
+ const splitSec = info && info.splitSec;
+ const refusedTier = !!(last && last.refused_reason === 'hardware_tier');
+ const dismiss = `<button type="button" class="now-card-dismiss" data-action="dismiss" ` +
+ `title="Dismiss this failure" aria-label="Dismiss this failure">` +
+ `<svg class="ph" aria-hidden="true"><use href="#ph-x-bold"/></svg></button>`;
+ if (action === 'split' && splitSec) {
+ return `<button type="button" class="now-card-retry" data-action="split" data-sec="${Number(splitSec)}" ` +
+ `title="Reopen this clip in Lip-sync, where Split into ${Number(splitSec)} s clips renders the whole song">` +
+ `<svg class="ph" aria-hidden="true"><use href="#ph-arrow-clockwise"/></svg>` +
+ `<span>Open in Lip-sync to split</span></button>` + dismiss;
+ }
+ if (refusedTier && action !== 'models') return dismiss;
+ return (action === 'models'
+ ? `<button type="button" class="now-card-retry" onclick="openModelsModal()" ` +
+ `title="A retry can't fix a missing file — finish the download instead">` +
+ `<svg class="ph" aria-hidden="true"><use href="#ph-download-simple"/></svg>` +
+ `<span>Open Models</span></button>`
+ : smaller
+ ? `<button type="button" class="now-card-retry" data-action="retry-smaller" ` +
+ `title="Try again smaller — one quality rung down, a smaller canvas and about half the length">` +
+ `<svg class="ph" aria-hidden="true"><use href="#ph-arrow-clockwise"/></svg>` +
+ `<span>Retry smaller</span></button>` +
+ `<button type="button" class="now-card-retry" data-action="retry" ` +
+ `title="Re-submit this job with the same params, unchanged">` +
+ `<span>Retry as is</span></button>`
+ : `<button type="button" class="now-card-retry" data-action="retry" ` +
+ `title="Re-submit this job with the same params">` +
+ `<svg class="ph" aria-hidden="true"><use href="#ph-arrow-clockwise"/></svg>` +
+ `<span>Retry</span></button>`) + dismiss;
+}
function friendlyJobError(raw, engine) {
raw = raw || 'unknown error';
if (/music engine isn't installed|YuE2 needs about|YuE2 weights.*repair/i.test(raw)) {
@@ -2941,6 +2992,23 @@ function friendlyJobError(raw, engine) {
// The RuntimeError text itself is deliberately unchanged upstream: it is what
// the log carries and what a bug report quotes. This translates it, it does
// not replace it.
+ // 4.17.3 (fleet): a damaged SMALL file beside intact weights — an empty or
+ // cut-off config / tokenizer / index — surfaced as engine text that named
+ // nothing ("Expecting value: line 1 column 1 (char 0)", "Received 1
+ // parameters not in model", "Invalid json header length", "No usable
+ // tokenizer beside the text encoder"). One fresh install failed five renders
+ // in a row on these before a re-download fixed it. Retry repeats the same
+ // failure; Repair re-downloads only the broken files, so that is the action.
+ if (/invalid json header length|expecting value: line 1 column 1 \(char 0\)|parameters not in model|no usable tokenizer beside the text encoder/i.test(raw)) {
+ return {
+ friendly: 'A model file on this Mac is damaged.',
+ hint: 'Usually an interrupted download. Press Repair in the red bar at the '
+ + 'top of the panel: it re-downloads only the broken files. Retrying as '
+ + 'is fails the same way.',
+ details: _redactLocalPaths(raw) || raw,
+ action: 'models',
+ };
+ }
if (/model is\s+incomplete\. Missing/i.test(raw)) {
const m = /Missing \d+ file\(s\) in [^:]+: ([^.]+)\./.exec(raw);
return {
@@ -2966,6 +3034,22 @@ function friendlyJobError(raw, engine) {
// one of two things verbatim, so match those instead of a bare
// substring: "(the Q8 model)" when the pack isn't downloaded, or
// "… hardware tier —" when the Mac can't run it at all.
+ // 4.17.3: the Lip-sync length cap on a Compact Mac (a2v_length_refusal
+ // server-side). It fell through to the generic "Job failed." with a Retry
+ // that is refused again, every time. Name it and offer Split instead.
+ const a2vCap = /Audio → Video is limited to (\d+) s per clip/i.exec(raw);
+ if (a2vCap) {
+ const sec = parseInt(a2vCap[1], 10);
+ return {
+ friendly: 'Too long for one Lip-sync clip on this Mac.',
+ hint: 'This Mac renders Lip-sync up to ' + sec + ' s per clip. Open it in '
+ + 'Lip-sync and use Split into ' + sec + ' s clips: it renders the whole '
+ + 'song as a sequence, each part starting where the last one’s mouth '
+ + 'closed. Or shorten Duration.',
+ action: 'split',
+ splitSec: sec,
+ };
+ }
if (/\(the q8 model\)|hardware tier\s*—/i.test(raw)) {
return { friendly: 'This mode needs the Q8 model.', hint: raw };
}
@@ -3548,7 +3632,7 @@ async function poll() {
// killed by the OS for using too much RAM and we never get an
// event back. Tell the user how to recover instead of leaving them
// with the engine wording.
- const { friendly, hint, smaller, details, action, docsAnchor } = friendlyJobError(last.error || 'unknown error',
+ const { friendly, hint, smaller, details, action, docsAnchor, splitSec } = friendlyJobError(last.error || 'unknown error',
last.params && last.params.engine);
nowCard.querySelector('.ttl').innerHTML =
`<span style="color: var(--danger, #f85149)"><svg class="ph" aria-hidden="true" style="margin-right:4px;vertical-align:-2px"><use href="#ph-warning-fill"/></svg>${escapeHtml(friendly)}</span>`;
@@ -3585,27 +3669,7 @@ async function poll() {
// canvas is what actually frees memory, a quality step alone keeps
// the stored width/height) and "Retry as is" for the user who wants
// to try unchanged (a closed Chrome tab, a swap install).
- actionsEl.innerHTML =
- (action === 'models'
- ? `<button type="button" class="now-card-retry" onclick="openModelsModal()" ` +
- `title="A retry can't fix a missing file — finish the download instead">` +
- `<svg class="ph" aria-hidden="true"><use href="#ph-download-simple"/></svg>` +
- `<span>Open Models</span></button>`
- : smaller
- ? `<button type="button" class="now-card-retry" data-action="retry-smaller" ` +
- `title="Try again smaller — one quality rung down, a smaller canvas and about half the length">` +
- `<svg class="ph" aria-hidden="true"><use href="#ph-arrow-clockwise"/></svg>` +
- `<span>Retry smaller</span></button>` +
- `<button type="button" class="now-card-retry" data-action="retry" ` +
- `title="Re-submit this job with the same params, unchanged">` +
- `<span>Retry as is</span></button>`
- : `<button type="button" class="now-card-retry" data-action="retry" ` +
- `title="Re-submit this job with the same params">` +
- `<svg class="ph" aria-hidden="true"><use href="#ph-arrow-clockwise"/></svg>` +
- `<span>Retry</span></button>`) +
- `<button type="button" class="now-card-dismiss" data-action="dismiss" ` +
- `title="Dismiss this failure" aria-label="Dismiss this failure">` +
- `<svg class="ph" aria-hidden="true"><use href="#ph-x-bold"/></svg></button>`;
+ actionsEl.innerHTML = nowCardFailureActions(last, { action, smaller, splitSec });
}
} else if (last && last.status === 'stopped' && !s.queue.length
&& last.id !== window._dismissedFailureId) {
@@ -8028,6 +8092,7 @@ function draftAutosaveInstall() {
// Inline handlers in the markup and the other files resolve these through
// the global scope; everything NOT listed here is private to this module.
Object.assign(globalThis, {
+ openFailedJobInForm,
notifyJobsDone, notifyOneJob, playDoneChime,
h3FinishSetTier, h3FinishActive, setEngine, _syncEnginePromptTools,
ltxFinishSetTier, ltxFinishActive, _syncFinishAffordance,