mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-11-01 18:30:00 +00:00
spelling
This commit is contained in:
parent
b350daaa93
commit
d9e364c04a
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user