Skip to content

refactor(config): route Megatron override compatibility through launcher policy#589

Open
WangLingxun wants to merge 3 commits intomainfrom
refactor/megatron-config-override-compat
Open

refactor(config): route Megatron override compatibility through launcher policy#589
WangLingxun wants to merge 3 commits intomainfrom
refactor/megatron-config-override-compat

Conversation

@WangLingxun
Copy link
Copy Markdown
Collaborator

@WangLingxun WangLingxun commented Mar 10, 2026

  • Declare the unknown CLI override passthrough in the Megatron module preset so the compatibility rule stays with the preset it applies to.
  • Read the generic launcher policy during parsing and preserve it through runtime normalization so legacy Megatron overrides remain compatible without backend-specific branching.

@WangLingxun WangLingxun force-pushed the refactor/megatron-config-override-compat branch from 08b589e to 073be7c Compare March 16, 2026 06:00
_setup_hooks: Dict[str, List[Callable]] = {}

# Backends that may accept CLI overrides not declared in module YAML presets.
_backend_unknown_cli_overrides = {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backend-special logic should not appear here(core/backend/* )

@WangLingxun WangLingxun force-pushed the refactor/megatron-config-override-compat branch 2 times, most recently from 5304fb8 to f4d293b Compare March 31, 2026 09:51
…her policy

- Declare the unknown CLI override passthrough in the Megatron module preset so the compatibility rule stays with the preset it applies to.
- Read the generic launcher policy during parsing and preserve it through runtime normalization so legacy Megatron overrides remain compatible without backend-specific branching.
@WangLingxun WangLingxun force-pushed the refactor/megatron-config-override-compat branch from f4d293b to 012f82d Compare March 31, 2026 10:23
@WangLingxun WangLingxun changed the title refactor(config): prune megatron trainer defaults and preserve CLI override compatibility refactor(config): route Megatron override compatibility through launcher policy Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants