Skip to content

Commit

Permalink
[trainer_llm] 0.0.65 Fix arguments parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-lopuszynski-tcl committed May 20, 2024
1 parent 4daaff7 commit 718801f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/trainer_llm/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def parse_args() -> argparse.Namespace:

arg_parser = argparse.ArgumentParser()
arg_parser.add_argument("--version", action="store_true")
arg_parser.add_argument("--output-path", type=pathlib.Path)
arg_parser.add_argument("--config", type=pathlib.Path)

args = arg_parser.parse_args()

# If no --version, run parsing of trainign/decomposition arguments
Expand All @@ -72,6 +75,7 @@ def parse_args() -> argparse.Namespace:
required=True,
)
args = arg_parser.parse_args()
args.version = False

return args

Expand Down
2 changes: 1 addition & 1 deletion examples/trainer_llm/version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This is parsed by setup.py, so we need to stick to str -> int parsing
__version__ = "0.0.64"
__version__ = "0.0.65"

_ver_major = int(__version__.split(".")[0])
_ver_minor = int(__version__.split(".")[1])
Expand Down

0 comments on commit 718801f

Please sign in to comment.