Skip to content

feat(parsers): add pydantic schemas for Megatron training configs - #340

Open
speriaswamy-amd wants to merge 1 commit into
speriaswamy/cvsman-06-health-schemasfrom
speriaswamy/cvsman-07-megatron-schemas
Open

feat(parsers): add pydantic schemas for Megatron training configs#340
speriaswamy-amd wants to merge 1 commit into
speriaswamy/cvsman-06-health-schemasfrom
speriaswamy/cvsman-07-megatron-schemas

Conversation

@speriaswamy-amd

Copy link
Copy Markdown
Contributor

Part 7 of 14 in a stack for AIMVT-276. Base: #339.

Why

Third pilot suite. Defaults mirror the tdict.setdefault/pdict.setdefault blocks in megatron_training_lib.py, which is where the runtime defaults actually live — several disagree with every shipped sample.

model_params is split into MegatronSingleNodeModelParams (single_node key) and MegatronMultiNodeModelParams (multi_node key) rather than one combined model covering both keys: a single-node test only ever reads its own topology's variants, and a shared model would make cvs man megatron_llama3_1_8b_single document (and sample-reference) multi_node fields it never touches.

What changed

  • cvs/parsers/config_schemas/megatron.py (new) — MegatronContainerConfig, MegatronResultThresholds, MegatronModelVariant, MegatronConfigFile, MegatronSingleNodeModelParams, MegatronMultiNodeModelParams.
  • cvs/parsers/config_schemas/__init__.py — re-exports grow to include these.

Third pilot suite. Defaults mirror the tdict.setdefault/pdict.setdefault
blocks in megatron_training_lib.py -- several disagree with every shipped
sample.

model_params is split into MegatronSingleNodeModelParams and
MegatronMultiNodeModelParams rather than one combined model: a single-node
test only ever reads its own topology's variants, so a shared model would
document (and later, `cvs man`, sample-reference) the other topology's
fields too.

AIMVT-276.
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.

1 participant