You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(mamba3): Path-B device-aware target (CUDA EAGER bridge on gb10, Metal on Apple)
The 1B training path_b route blocked on gb10/CUDA: with
CPPMEGA_KERNEL_PATH__MAMBA3_MIMO=path_b the mamba3 dispatch raised
'mamba3_mimo: Path B kernel unavailable (MLX Metal backend is not
available on the default GPU device)', crashing _eager_step before any
training step completed (losses=[], status=blocked).
Add a device-aware Path-B branch mirroring GDN/KDA/mamba3-Path-C: on a
CUDA host (can_run_metal() False) route the Mamba3 MIMO fwd+bwd through
the host _cuda_eager bridge (mamba3_mimo_fwd_cuda_eager /
mamba3_mimo_bwd_cuda_eager — the exact CUDA-safe prim_funcs Path C uses
on CUDA), wrapped as a differentiable mx.custom_function so MLX autodiff
traces it. Apple keeps the hand-MSL Metal Path-B kernel unchanged.
Kernel unavailability/failure RAISES (RULE #1) — never a silent
fall-through to the Metal kernel (which cannot run on CUDA) or another
path.
0 commit comments