Skip to content

Update section3.ipynb #592

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

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
4 changes: 2 additions & 2 deletions course/en/chapter11/section3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
" learning_rate=5e-5, # Common starting point for fine-tuning\n",
" logging_steps=10, # Frequency of logging training metrics\n",
" save_steps=100, # Frequency of saving model checkpoints\n",
" evaluation_strategy=\"steps\", # Evaluate the model at regular intervals\n",
" eval_strategy=\"steps\", # Evaluate the model at regular intervals\n",
" eval_steps=50, # Frequency of evaluation\n",
" use_mps_device=(\n",
" True if device == \"mps\" else False\n",
Expand All @@ -166,7 +166,7 @@
" model=model,\n",
" args=sft_config,\n",
" train_dataset=ds[\"train\"],\n",
" tokenizer=tokenizer,\n",
" processing_class=tokenizer,\n",
" eval_dataset=ds[\"test\"],\n",
")\n",
"\n",
Expand Down