Skip to content

Commit

Permalink
remove vestigial debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Anthony committed Aug 19, 2024
1 parent d9db749 commit aafbbce
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions megatron/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import torch
import deepspeed
from deepspeed.runtime.data_pipeline.curriculum_scheduler import CurriculumScheduler
from deepspeed.utils import safe_get_full_grad
import numpy as np

from megatron.utils import (
Expand Down Expand Up @@ -896,10 +895,6 @@ def train_step(neox_args, timers, data_iterator, model, optimizer, lr_scheduler)
):
torch.cuda.nvtx.range_push(f"Optimizer step")

# for name, param in model.named_parameters():
# print(name, safe_get_full_grad(param))
# raise ValueError

timers("optimizer").start()
if neox_args.deepspeed:
model.step()
Expand Down

0 comments on commit aafbbce

Please sign in to comment.