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: synchronize FastH3 scheduler shifts for VSA

[._.]/ Adam Eivyb4817eb86b97
diff --git a/scripts/fastvideo_h3_entry.py b/scripts/fastvideo_h3_entry.py
index a3a76609b3..154792e47a 100644
--- a/scripts/fastvideo_h3_entry.py
+++ b/scripts/fastvideo_h3_entry.py
@@ -33,7 +33,15 @@ 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
+ # module globals. Updating only the pipeline (the old behavior) leaves
+ # 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
pipeline.MINIMAX_H3_VIDEO_SHIFT, pipeline.MINIMAX_H3_AUDIO_SHIFT = shifts
sys.argv = [args.entry_script, *remaining]
if args.convert: