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

[Module 2 Bug] Fixing wrong args passed to DPOTrainer #124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions 2_preference_alignment/notebooks/dpo_finetuning_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,13 @@
" use_mps_device=device == \"mps\",\n",
" # Model ID for HuggingFace Hub uploads\n",
" hub_model_id=finetune_name,\n",
" # DPO-specific temperature parameter that controls the strength of the preference model\n",
" # Lower values (like 0.1) make the model more conservative in following preferences\n",
" beta=0.1,\n",
" # Maximum length of the input prompt in tokens\n",
" max_prompt_length=1024,\n",
" # Maximum combined length of prompt + response in tokens\n",
" max_length=1536\n",
")"
]
},
Expand All @@ -294,13 +301,6 @@
" train_dataset=dataset,\n",
" # Tokenizer for processing inputs\n",
" processing_class=tokenizer,\n",
" # DPO-specific temperature parameter that controls the strength of the preference model\n",
" # Lower values (like 0.1) make the model more conservative in following preferences\n",
" beta=0.1,\n",
" # Maximum length of the input prompt in tokens\n",
" max_prompt_length=1024,\n",
" # Maximum combined length of prompt + response in tokens\n",
" max_length=1536,\n",
")"
]
},
Expand Down