Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update in DPO raise several problems... #1440

Closed
holarissun opened this issue Mar 18, 2024 · 3 comments
Closed

update in DPO raise several problems... #1440

holarissun opened this issue Mar 18, 2024 · 3 comments

Comments

@holarissun
Copy link

  1. get_hh was removed. There is no dataset now.

  2. from trl.commands.cli_utils import DpoScriptArguments, init_zero_verbose, TrlParser: No module named 'trl.commands'

@lvwerra
Copy link
Member

lvwerra commented Mar 20, 2024

Those changes are currently only on main, did you install TRL from source?

@vwxyzjn
Copy link
Contributor

vwxyzjn commented Mar 20, 2024

Would you like to give #1456 a try?

python examples/scripts/dpo.py \
    --dataset_name=trl-internal-testing/hh-rlhf-trl-style \
    --model_name_or_path=gpt2 \
    --per_device_train_batch_size 4 \
    --max_steps 1000 \
    --learning_rate 1e-3 \
    --gradient_accumulation_steps 1 \
    --logging_steps 10 \
    --eval_steps 500 \
    --output_dir="dpo_anthropic_hh" \
    --warmup_steps 150 \
    --report_to wandb \
    --bf16 \
    --logging_first_step \
    --no_remove_unused_columns

Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants