mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-10-29 08:50:34 +00:00
minor markdown fixes (#236)
This commit is contained in:
parent
7e0c5c0975
commit
e387742b77
@ -49,7 +49,6 @@
|
|||||||
"train_dataset = SpamDataset(base_path / \"train.csv\", max_length=max_length, tokenizer=tokenizer)\n",
|
"train_dataset = SpamDataset(base_path / \"train.csv\", max_length=max_length, tokenizer=tokenizer)\n",
|
||||||
"val_dataset = SpamDataset(base_path / \"validation.csv\", max_length=max_length, tokenizer=tokenizer)\n",
|
"val_dataset = SpamDataset(base_path / \"validation.csv\", max_length=max_length, tokenizer=tokenizer)\n",
|
||||||
"test_dataset = SpamDataset(base_path / \"test.csv\", max_length=max_length, tokenizer=tokenizer)\n",
|
"test_dataset = SpamDataset(base_path / \"test.csv\", max_length=max_length, tokenizer=tokenizer)\n",
|
||||||
"\n",
|
|
||||||
"```\n",
|
"```\n",
|
||||||
"\n",
|
"\n",
|
||||||
"or, equivalently, we can define the `max_length` via:\n",
|
"or, equivalently, we can define the `max_length` via:\n",
|
||||||
@ -72,7 +71,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"For convenience, you can run this experiment via\n",
|
"For convenience, you can run this experiment via\n",
|
||||||
"\n",
|
"\n",
|
||||||
"```\n",
|
"```bash\n",
|
||||||
"python additional-experiments.py --context_length \"model_context_length\"\n",
|
"python additional-experiments.py --context_length \"model_context_length\"\n",
|
||||||
"```\n",
|
"```\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -101,7 +100,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"For convenience, you can run this experiment via\n",
|
"For convenience, you can run this experiment via\n",
|
||||||
"\n",
|
"\n",
|
||||||
"```\n",
|
"```bash\n",
|
||||||
"python additional-experiments.py --trainable_layers all\n",
|
"python additional-experiments.py --trainable_layers all\n",
|
||||||
"```\n",
|
"```\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -143,14 +142,6 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"using the code in the [../02_bonus_additional-experiments](../02_bonus_additional-experiments) folder, which results in a substantially worse test accuracy of 75.00% (versus the 95.67% in the main chapter)."
|
"using the code in the [../02_bonus_additional-experiments](../02_bonus_additional-experiments) folder, which results in a substantially worse test accuracy of 75.00% (versus the 95.67% in the main chapter)."
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "e5e6188a-f182-4f26-b9e5-ccae3ecadae0",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
@ -169,7 +160,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.11.4"
|
"version": "3.10.11"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user