This commit is contained in:
rasbt
2024-05-13 20:06:38 -05:00
parent cd7ea15e8d
commit 16d19751b0

View File

@@ -32,7 +32,7 @@
"id": "5860ba9f-2db3-4480-b96b-4be1c68981eb",
"metadata": {},
"source": [
"We can pad the inputs to the maximum number of tokens to the maximum the model supports by setting the max length to\n",
"We can pad the inputs to the maximum number of tokens the model supports by setting the max length to 1024:\n",
"\n",
"```python\n",
"max_length = 1024\n",
@@ -112,7 +112,7 @@
"id": "7418a629-51b6-4aa2-83b7-bc0261bc370f",
"metadata": {},
"source": [
"ther than finetuning the last output token, we can finetune the first output token by changing \n",
"Rather than finetuning the last output token, we can finetune the first output token by changing \n",
"\n",
"```python\n",
"model(input_batch)[:, -1, :]\n",