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

fix LM tutorial bug #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,8 @@
"trainer = Trainer(\n",
" model=model,\n",
" args=training_args,\n",
" train_dataset=lm_datasets[\"train\"][:1000],\n",
" eval_dataset=lm_datasets[\"validation\"][:1000],\n",
" train_dataset=lm_datasets[\"train\"][:1000],#建议在本地运行时将[:1000]删除\n",
" eval_dataset=lm_datasets[\"validation\"][:1000],#建议在本地运行时将[:1000]删除\n",
")"
]
},
Expand All @@ -732,7 +732,7 @@
"id": "UDn2o1gSWdCF"
},
"source": [
"然后就可以训练我们的模型🌶:"
"然后就可以训练我们的模型🌶(建议在本地运行,而非jupyter笔记本):"
]
},
{
Expand Down Expand Up @@ -1238,4 +1238,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,12 @@ training_args = TrainingArguments(
trainer = Trainer(
model=model,
args=training_args,
train_dataset=lm_datasets["train"][:1000],
eval_dataset=lm_datasets["validation"][:1000],
train_dataset=lm_datasets["train"][:1000],#建议在本地运行时将[:1000]删除
eval_dataset=lm_datasets["validation"][:1000],#建议在本地运行时将[:1000]删除
)
```

然后就可以训练我们的模型🌶:
然后就可以训练我们的模型🌶(建议在本地运行,而非jupyter笔记本):


```python
Expand Down