Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(video-gen): keep the FastMetal argv byte-identical across the family split

Adam Eivy8a1e2af9ee99
diff --git a/scripts/generate_fastvideo.py b/scripts/generate_fastvideo.py
index f9c42f36f3..20a696203a 100755
--- a/scripts/generate_fastvideo.py
+++ b/scripts/generate_fastvideo.py
@@ -120,6 +120,10 @@ def build_command(args, entry_script: Path, model_root: Path, mlx_checkpoint: Pa
single list with `if family == ...` guards around half its elements reads
as one contract when it is two.
"""
+ # Shared prefix only. The step/rate flags and the trailing seed/output pair
+ # are appended per family so FastMetal keeps the EXACT argv it emitted
+ # before the split — argparse is order-insensitive, but an identical
+ # ordering is what makes "FastMetal is untouched" checkable by eye.
common = [
sys.executable,
str(entry_script),
@@ -129,14 +133,13 @@ def build_command(args, entry_script: Path, model_root: Path, mlx_checkpoint: Pa
"--width", str(args.width),
"--height", str(args.height),
"--num-frames", str(args.num_frames),
- "--seed", str(args.seed),
- "--output-path", str(args.output),
]
+ tail = ["--seed", str(args.seed), "--output-path", str(args.output)]
if args.family != "fasth3":
cmd = common + [
"--num-inference-steps", str(args.steps),
"--fps", str(args.fps),
- ]
+ ] + tail
if args.fast:
cmd.append("--fast")
if args.enhance_prompt:
@@ -163,7 +166,7 @@ def build_command(args, entry_script: Path, model_root: Path, mlx_checkpoint: Pa
if args.fps and args.fps != FASTH3_NATIVE_FPS:
print(f"STATUS:FastH3 always writes {FASTH3_NATIVE_FPS} fps — ignoring the requested {args.fps} fps",
file=sys.stderr, flush=True)
- cmd = common + ["--steps", str(args.steps)]
+ cmd = common + ["--steps", str(args.steps)] + tail
if args.fast:
cmd.append("--fast")
return cmd
diff --git a/scripts/generate_fastvideo_test.py b/scripts/generate_fastvideo_test.py
index 4ee4f73966..5ce36144d7 100644
--- a/scripts/generate_fastvideo_test.py
+++ b/scripts/generate_fastvideo_test.py
@@ -76,6 +76,25 @@ class BuildCommandTest(unittest.TestCase):
self.assertEqual(self.flag(cmd, "--mlx-checkpoint"), str(self.ckpt))
self.assertNotIn("--steps", cmd)
+ def test_fastmetal_argv_is_byte_identical_to_the_pre_split_baseline(self):
+ # The exact list this helper emitted before the family split. Pinned so
+ # a later edit to the shared prefix cannot quietly reshape the argv of
+ # the three FastMetal rows that already ship.
+ cmd, _ = self.build(family="fastmetal")
+ self.assertEqual(cmd[1:], [
+ str(self.entry),
+ "--model-root", str(self.root),
+ "--mlx-checkpoint", str(self.ckpt),
+ "--prompt", "a paper boat on a puddle",
+ "--width", "832",
+ "--height", "480",
+ "--num-frames", "124",
+ "--num-inference-steps", "4",
+ "--fps", "24",
+ "--seed", "2026",
+ "--output-path", "/fixture/out/render.mp4",
+ ])
+
def test_fastmetal_forwards_its_optional_flags(self):
cmd, _ = self.build(family="fastmetal", fast=True, enhance_prompt=True, refine=True,
image="/fixture/first.png")