Skip to content

Commit

Permalink
add cli params orpo
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekkrthakur committed Apr 19, 2024
1 parent b5348e3 commit 5096103
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/autotrain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@


logger = Logger().get_logger()
__version__ = "0.7.55.dev0"
__version__ = "0.7.56.dev0"
18 changes: 17 additions & 1 deletion src/autotrain/cli/run_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,23 @@ def register_subcommand(parser: ArgumentParser):
"required": False,
"type": int,
"default": 1024,
"alias": ["--max-len", "--max-length"],
"alias": ["--model-max-length"],
},
{
"arg": "--max_prompt_length",
"help": "Prompt length to use, for orpo",
"required": False,
"type": int,
"default": 128,
"alias": ["--max-prompt-length"],
},
{
"arg": "--max_completion_length",
"help": "Completion length to use, for orpo: encoder-decoder models only",
"required": False,
"type": int,
"default": None,
"alias": ["--max-completion-length"],
},
{
"arg": "--trainer",
Expand Down

0 comments on commit 5096103

Please sign in to comment.