Skip to content

Commit

Permalink
trigger tests
Browse files Browse the repository at this point in the history
  • Loading branch information
younesbelkada committed Jan 12, 2024
1 parent e9fcc94 commit c7ddba4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/slow-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
# Run only when python files are modified
- "trl/**.py"
- "examples/**.py"
- "tests/**.py"
env:
RUN_SLOW: "yes"
IS_GITHUB_CI: "1"
Expand Down
8 changes: 6 additions & 2 deletions examples/scripts/dpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ class ScriptArguments:
default=1, metadata={"help": "the number of gradient accumulation steps"}
)
output_dir: Optional[str] = field(default="output", metadata={"help": "the output directory"})
fp16: Optional[bool] = field(default=False, metadata={"help": "Whether to activate fp16 mixed precision"})
bf16: Optional[bool] = field(default=False, metadata={"help": "Whether to activate bf16 mixed precision"})
fp16: Optional[bool] = field(
default=False, metadata={"help": "Whether to activate fp16 mixed precision during training"}
)
bf16: Optional[bool] = field(
default=False, metadata={"help": "Whether to activate bf16 mixed precision during training"}
)
max_length: Optional[int] = field(default=512, metadata={"help": "max length of each sample"})
max_prompt_length: Optional[int] = field(default=128, metadata={"help": "max length of each sample's prompt"})
max_target_length: Optional[int] = field(
Expand Down

0 comments on commit c7ddba4

Please sign in to comment.