Repository navigation
feat(m3): add from_pyconfig bridge - #6563
Draft
SurbhiJainUSC wants to merge 1 commit into
Draft
SurbhiJainUSC wants to merge 1 commit into
SurbhiJainUSC wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
SurbhiJainUSC
force-pushed
the
m3-pyconfig-bridge
branch
from
November 25, 2026 21:54
e41f42e to
b0e9987
Compare
SurbhiJainUSC
force-pushed
the
m3-pyconfig-bridge
branch
from
November 25, 2026 22:10
b0e9987 to
cfa85cf
Compare
SurbhiJainUSC
force-pushed
the
m3-pyconfig-bridge
branch
from
November 25, 2026 22:17
cfa85cf to
4a3ba28
Compare
SurbhiJainUSC
force-pushed
the
m3-model-configs
branch
from
November 25, 2026 22:37
0689770 to
008a8f4
Compare
SurbhiJainUSC
force-pushed
the
m3-pyconfig-bridge
branch
from
November 25, 2026 22:43
4a3ba28 to
d351acc
Compare
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.
Description
Stacked on #6541
Adds the transitional
pyconfigcompatibility bridge (src/maxtext/m3/configs/pyconfig_bridge.py) and a minimal lazy fallback insrc/maxtext/configs/pyconfig.py, stacked independently onm3-model-configs.pyconfig_bridge.from_pyconfig(cfg, mode="train" | "aot"): translates a parsedMaxTextConfig/HyperParametersinstance into a validated(ModelConfig, TrainingConfig)pair across all 5 causalm3model families (qwen3,qwen3_vl,glm5_3_flash,granitemoe,qwen3_8_flash_next), including dynamic sub-config discovery viaTrainingConfig.model_fieldsand per-family field translations (e.g.,num_experts→n_routed_expertsornum_local_experts,base_mlp_dim→intermediate_sizeorshared_expert_intermediate_size, derivedhead_dimvalidation onGraniteMoeModelConfig).ConfigMigrationError: performs both a live non-goal value audit (catching unsupported flags set via YAML files even when absent frommodel_fields_set, such as extended parallelism axescontext/pipeline/fsdp_transpose/context_usp_ulysses,enable_diloco,custom_mesh, non-qwix quantization,opt_typeoutsideadamw/adam_pax/sgd,lora,compiled_trainstep_fileinmode="train") and an explicit override audit ofmodel_fields_set. Passively inheritedbase.ymlGoodput defaults (enable_goodput_recording/monitor_goodput) are accepted outside test runners while explicittrueoverrides fail fast.Tests
CI
Checklist