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(engine): guard megatron-bridge on NPU and restore bridge_type field
Combined megatron-bridge compatibility fixes for NPU:
- Make megatron.bridge imports defensive in megatron_engine.py and
megatron_utils/megatron_lora.py (the latter runs a module-level monkey
patch at import time) so modules load on NPU where the CUDA-only
megatron-bridge package is unavailable.
- Restore the bridge_type field on MegatronEngineConfig (an earlier rebase
silently landed it inside MindSpeedEngineConfig after as_dict, which
made MegatronEngineConfig(bridge_type=...) raise TypeError).
0 commit comments