Megatron-LM icon indicating copy to clipboard operation
Megatron-LM copied to clipboard

Dataclass Migration Effort

Open Phlip79 opened this issue 1 year ago • 8 comments

For each dataclass, we want to:

  1. Create dataclass in MLM
  2. Get MLM arguments to use dataclass
  3. Get dev branch in MLM to use dataclass
  4. Get Bridge to use MLM dataclass

Below is a list of dataclasses we need to create:

  • [ ] TrainingConfig
    • [x] 1. Create dataclass in MLM
    • [x] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] ValidationConfig
    • [x] 1. Create dataclass in MLM
    • [x] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] DistributedDataParallelConfig
    • [ ] 1. Create dataclass in MLM
    • [ ] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] OptimizerConfig
    • [ ] 1. Create dataclass in MLM
    • [ ] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] RNGConfig
    • [x] 1. Create dataclass in MLM
    • [x] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] DistributedInitConfig
    • [x] 1. Create dataclass in MLM
    • [x] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] RerunStateMachineConfig
    • [x] 1. Create dataclass in MLM
    • [x] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] DataloaderConfig
    • [ ] 1. Create dataclass in MLM
    • [ ] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] GPTDatasetConfig
    • [ ] 1. Create dataclass in MLM
    • [ ] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] MockGPTDatasetConfig
    • [ ] 1. Create dataclass in MLM
    • [ ] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] FinetuningDatasetConfig
    • [ ] 1. Create dataclass in MLM
    • [ ] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] SchedulerConfig
    • [x] 1. Create dataclass in MLM
    • [x] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] CheckpointConfig
    • [x] 1. Create dataclass in MLM
    • [x] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] LoggerConfig
    • [x] 1. Create dataclass in MLM
    • [x] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] ProfilingConfig
    • [x] 1. Create dataclass in MLM
    • [x] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] TensorInspectConfig
    • [ ] 1. Create dataclass in MLM
    • [ ] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] FaultToleranceConfig
    • [ ] 1. Create dataclass in MLM
    • [ ] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] StragglerDetectionConfig
    • [x] 1. Create dataclass in MLM
    • [x] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] NVRxStragglerDetectionConfig
    • [ ] 1. Create dataclass in MLM
    • [ ] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass
  • [ ] InProcessRestartConfig
    • [ ] 1. Create dataclass in MLM
    • [ ] 2. Get MLM arguments to use dataclass
    • [ ] 3. Get dev branch in MLM to use dataclass
    • [ ] 4. Get Bridge to use MLM dataclass

Documentation can be found here (internal-only).

Phlip79 avatar Nov 20 '25 00:11 Phlip79

RNGConfig: https://github.com/NVIDIA/Megatron-LM/pull/2347

maanug-nv avatar Nov 21 '25 05:11 maanug-nv

ProfilingConfig: https://github.com/NVIDIA/Megatron-LM/pull/2393

maanug-nv avatar Nov 25 '25 07:11 maanug-nv

SchedulerConfig: https://github.com/NVIDIA/Megatron-LM/pull/2400

maanug-nv avatar Nov 25 '25 18:11 maanug-nv

LoggerConfig: https://github.com/NVIDIA/Megatron-LM/pull/2414

maanug-nv avatar Nov 26 '25 21:11 maanug-nv

Can we add generation from MCore dataclasses to this issue's checklist, or create a separate issue for it.

maanug-nv avatar Nov 29 '25 20:11 maanug-nv

CheckpointConfig: https://github.com/NVIDIA/Megatron-LM/pull/2431

maanug-nv avatar Nov 29 '25 22:11 maanug-nv

RerunStateMachineConfig: https://github.com/NVIDIA/Megatron-LM/pull/2436

maanug-nv avatar Dec 01 '25 04:12 maanug-nv

StragglerDetectionConfig: https://github.com/NVIDIA/Megatron-LM/pull/2435

maanug-nv avatar Dec 01 '25 04:12 maanug-nv