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: keep FastH3 test shim compatible

[._.]/ Adam Eivyfcff728347a8
diff --git a/scripts/fastvideo_h3_entry.py b/scripts/fastvideo_h3_entry.py
index 154792e47a..bb0e6b4d2b 100644
--- a/scripts/fastvideo_h3_entry.py
+++ b/scripts/fastvideo_h3_entry.py
@@ -8,6 +8,7 @@ All adaptation is process-local, leaving the upstream checkout untouched.
"""
import argparse
import importlib.util
+import importlib
import json
import math
import runpy
@@ -33,7 +34,6 @@ def main():
or not math.isfinite(shift) or shift <= 0):
raise ValueError(f'Unsupported FastH3 {name} configuration')
shifts.append(shift)
- from fastvideo.mlx_runtime import minimax_h3 as h3
from fastvideo.mlx_runtime import minimax_h3_pipeline as pipeline
# Both modules expose the scheduler shifts, and the converter imports the
# values from ``minimax_h3`` while the inference pipeline reads its own
@@ -41,7 +41,10 @@ def main():
# conversion and inference using different schedules, which produces a
# VSA checkpoint that fails during the first render. Keep the two module
# views synchronized before either entry point is loaded.
- h3.MINIMAX_H3_VIDEO_SHIFT, h3.MINIMAX_H3_AUDIO_SHIFT = shifts
+ h3 = (importlib.import_module('fastvideo.mlx_runtime.minimax_h3')
+ if importlib.util.find_spec('fastvideo.mlx_runtime.minimax_h3') else None)
+ if h3 is not None:
+ h3.MINIMAX_H3_VIDEO_SHIFT, h3.MINIMAX_H3_AUDIO_SHIFT = shifts
pipeline.MINIMAX_H3_VIDEO_SHIFT, pipeline.MINIMAX_H3_AUDIO_SHIFT = shifts
sys.argv = [args.entry_script, *remaining]
if args.convert: