Skip to content

Commit

Permalink
final cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysonfrancis committed Jan 4, 2025
1 parent da0d8b8 commit 576fd3e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions torchtitan/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import sys
from dataclasses import asdict, dataclass, field, fields, is_dataclass
from typing import Any, Callable, Dict, List, Optional, Union
from typing import Any, Dict, List, Optional, Union

import torch
import tyro
Expand Down Expand Up @@ -452,8 +452,7 @@ def update_instance(self, instance) -> None:

def parse_args(self, args=None) -> None:
"""
Parse CLI arguments, optionally load from a TOML file,
merge with defaults, and return a JobConfig instance.
Parse command line arguments and return the parsed args and the command line only args
"""
toml_data = self.maybe_load_toml(args or sys.argv[1:])
defaults = self.__class__
Expand Down

0 comments on commit 576fd3e

Please sign in to comment.