Skip to content

Commit

Permalink
Fixing warning triggered by torch.cuda.reset_max_memory_allocated()
Browse files Browse the repository at this point in the history
… usage
  • Loading branch information
drivanov committed Jan 10, 2025
1 parent ef02854 commit 78e15d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/llm/molecule_gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def adjust_learning_rate(param_group, LR, epoch):
f'moleculegpt_epoch{best_epoch}_val_loss{best_val_loss:4f}_ckpt.pt' # noqa: E501
)
torch.cuda.empty_cache()
torch.cuda.reset_max_memory_allocated()
torch.cuda.reset_peak_memory_stats()

print(f"Total Training Time: {time.time() - start_time:2f}s")
# Test
Expand Down

0 comments on commit 78e15d0

Please sign in to comment.