Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two fixes, both required for fast2 mode (the 'Fastest mode' / 极速档) to run on Apple Silicon (macOS arm64). Without them, fast2 fails at sampling time.
1. macOS runtime: don't build a default-schedule AdaLN cursor in fast2 mode (
freevideo_engine/macos_runtime.py)In fast2 mode the sampler uses pi-H3's RAW_GRID (
(.93, .56, 0.)). The current code always builtScheduleCursor(times)fromschedule_timesteps(steps)(the default t2va grid) and registered a forward-pre hook checking sampled timesteps against it. The check fails immediately on the first step with:(identical in
macos_stages.pyviaself.cursor.reset(...)).Fix: only create the cursor / register the hook / reset the cursor when
fastis None, mirroring the CUDAruntime.Enginebehaviour.2. macOS stages: activate the VDN Mac overlay before importing
srcin the fast2 decode stage (freevideo_engine/macos_stages.py)The fast2 decode subprocess calls
pixels_to_file()(dwd_decode.py), which importssrc.inference.renderat module import time. The decode subprocess never activated the overlay, failing with:Fix: call
macos_vdn.activate()before importingdwd_decodein thephase == 'decode' and value.get('fast_tier') is not None:branch.Test
Verified on Apple M4 Pro / 64 GiB / macOS 27.2 / MLX 0.32.3: a 960x544 5.2 s fast2 job (2 steps) now succeeds end to end.
Notes
1de46c61). Local branch also containsLOCAL-FIXES.mdandfixes-2026-11-28-fast2-mac.patch(documentation + patch file); they can be dropped upstream.