Skip to content

Commit

Permalink
adapt finetuning and add requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
lisa-sousa committed Sep 23, 2024
1 parent be36fa4 commit 9c7eb8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ utils==1.0.1
torch
torchvision
opencv-python
transformers[torch]
transformers[torch]
evaluate
8 changes: 4 additions & 4 deletions xai-for-transformer/1-Tutorial_Transformer_Model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -574,14 +574,14 @@
"outputs": [],
"source": [
"training_args = Seq2SeqTrainingArguments(\n",
" output_dir=\"my_awesome_opus_books_model\",\n",
" output_dir=\"german-english\",\n",
" evaluation_strategy=\"epoch\",\n",
" learning_rate=2e-3,\n",
" per_device_train_batch_size=16,\n",
" per_device_eval_batch_size=16,\n",
" per_device_train_batch_size=128,\n",
" per_device_eval_batch_size=128,\n",
" weight_decay=0.01,\n",
" save_total_limit=3,\n",
" num_train_epochs=10,\n",
" num_train_epochs=40,\n",
" predict_with_generate=True,\n",
" fp16=False, \n",
" push_to_hub=False,\n",
Expand Down

0 comments on commit 9c7eb8d

Please sign in to comment.