Edit example (#1147)

This commit is contained in:
pollfly 2023-11-01 10:52:58 +02:00 committed by GitHub
parent e89b2a03a7
commit 2f05a830b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@
"1. To keep track of your experiments and/or data, ClearML needs to communicate to a server. You have 2 server options:\n",
" * Sign up for free to the [ClearML Hosted Service](https://app.clear.ml/)\n",
" * Set up your own server, see [here](https://clear.ml/docs/latest/docs/deploying_clearml/clearml_server).\n",
"1. Add you ClearML credentials below. ClearML will use these credentials to connect to your server (see instructions for generating credentials [here](https://clear.ml/docs/latest/docs/getting_started/ds/ds_first_steps/#jupyter-notebook)).\n"
"1. Add your ClearML credentials below. ClearML will use these credentials to connect to your server (see instructions for generating credentials [here](https://clear.ml/docs/latest/docs/getting_started/ds/ds_first_steps/#jupyter-notebook)).\n"
],
"metadata": {
"id": "hkRlrlpoKu7X"
@ -48,10 +48,10 @@
"# Set to true so ClearML will log the models created by the trainer\n",
"%env CLEARML_LOG_MODEL=True\n",
"\n",
"# Set the ClearML task name\n",
"# Set the ClearML task name (default \"Trainer\")\n",
"# %env CLEARML_TASK=\n",
"\n",
"# Set task's prkect\n",
"# Set task's project (default \"HuggingFace Transformers\")\n",
"# %env CLEARML_PROJECT="
],
"metadata": {
@ -100,8 +100,7 @@
"id": "LG-TqpPf9_Tn"
},
"source": [
"Create a trainer, in which you'll typically pass the following parameters to [Trainer](https://huggingface.co/docs/transformers/main/en/main_classes/\n",
"trainer#transformers.Trainer):\n",
"Create a trainer, in which you'll typically pass the following parameters to [Trainer](https://huggingface.co/docs/transformers/main/en/main_classes/trainer#transformers.Trainer):\n",
"\n",
"1. A [PreTrainedModel](https://huggingface.co/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel) or a [`torch.nn.Module`](https://pytorch.org/docs/stable/nn.html#torch.nn.Module):\n",
"\n"