Skip to content

Commit 98d453b

Browse files
committed
update formatting
1 parent 8011387 commit 98d453b

File tree

22 files changed

+309
-89
lines changed

22 files changed

+309
-89
lines changed

appendix-A/01_main-chapter-code/code-part2.ipynb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"<font size=\"1\">\n",
8-
"Supplementary code for \"Build a Large Language Model From Scratch\": <a href=\"https://www.manning.com/books/build-a-large-language-model-from-scratch\">https://www.manning.com/books/build-a-large-language-model-from-scratch</a> by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
9-
"Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
10-
"</font>"
7+
"<table style=\"width:100%\">\n",
8+
"<tr>\n",
9+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
10+
"<font size=\"2\">\n",
11+
"Supplementary code for the <a href=\"http://mng.bz/orYv\">Build a Large Language Model From Scratch</a> book by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
12+
"<br>Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
13+
"</font>\n",
14+
"</td>\n",
15+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
16+
"<a href=\"http://mng.bz/orYv\"><img src=\"https://sebastianraschka.com/images/LLMs-from-scratch-images/cover-small.webp\" width=\"100px\"></a>\n",
17+
"</td>\n",
18+
"</tr>\n",
19+
"</table>\n"
1120
]
1221
},
1322
{

appendix-A/01_main-chapter-code/exercise-solutions.ipynb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"<font size=\"1\">\n",
8-
"Supplementary code for \"Build a Large Language Model From Scratch\": <a href=\"https://www.manning.com/books/build-a-large-language-model-from-scratch\">https://www.manning.com/books/build-a-large-language-model-from-scratch</a> by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
9-
"Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
10-
"</font>"
7+
"<table style=\"width:100%\">\n",
8+
"<tr>\n",
9+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
10+
"<font size=\"2\">\n",
11+
"Supplementary code for the <a href=\"http://mng.bz/orYv\">Build a Large Language Model From Scratch</a> book by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
12+
"<br>Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
13+
"</font>\n",
14+
"</td>\n",
15+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
16+
"<a href=\"http://mng.bz/orYv\"><img src=\"https://sebastianraschka.com/images/LLMs-from-scratch-images/cover-small.webp\" width=\"100px\"></a>\n",
17+
"</td>\n",
18+
"</tr>\n",
19+
"</table>\n"
1120
]
1221
},
1322
{
@@ -178,7 +187,7 @@
178187
"name": "python",
179188
"nbconvert_exporter": "python",
180189
"pygments_lexer": "ipython3",
181-
"version": "3.10.6"
190+
"version": "3.11.4"
182191
}
183192
},
184193
"nbformat": 4,

appendix-D/01_main-chapter-code/appendix-D.ipynb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@
55
"id": "9a5936bd-af17-4a7e-a4d2-e910411708ea",
66
"metadata": {},
77
"source": [
8-
"<font size=\"1\">\n",
9-
"Supplementary code for \"Build a Large Language Model From Scratch\": <a href=\"https://www.manning.com/books/build-a-large-language-model-from-scratch\">https://www.manning.com/books/build-a-large-language-model-from-scratch</a> by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
10-
"Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
11-
"</font>"
8+
"<table style=\"width:100%\">\n",
9+
"<tr>\n",
10+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
11+
"<font size=\"2\">\n",
12+
"Supplementary code for the <a href=\"http://mng.bz/orYv\">Build a Large Language Model From Scratch</a> book by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
13+
"<br>Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
14+
"</font>\n",
15+
"</td>\n",
16+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
17+
"<a href=\"http://mng.bz/orYv\"><img src=\"https://sebastianraschka.com/images/LLMs-from-scratch-images/cover-small.webp\" width=\"100px\"></a>\n",
18+
"</td>\n",
19+
"</tr>\n",
20+
"</table>\n"
1221
]
1322
},
1423
{

ch02/01_main-chapter-code/ch02.ipynb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@
55
"id": "d95f841a-63c9-41d4-aea1-496b3d2024dd",
66
"metadata": {},
77
"source": [
8-
"<font size=\"1\">\n",
9-
"Supplementary code for \"Build a Large Language Model From Scratch\": <a href=\"https://www.manning.com/books/build-a-large-language-model-from-scratch\">https://www.manning.com/books/build-a-large-language-model-from-scratch</a> by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
10-
"Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
11-
"</font>"
8+
"<table style=\"width:100%\">\n",
9+
"<tr>\n",
10+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
11+
"<font size=\"2\">\n",
12+
"Supplementary code for the <a href=\"http://mng.bz/orYv\">Build a Large Language Model From Scratch</a> book by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
13+
"<br>Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
14+
"</font>\n",
15+
"</td>\n",
16+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
17+
"<a href=\"http://mng.bz/orYv\"><img src=\"https://sebastianraschka.com/images/LLMs-from-scratch-images/cover-small.webp\" width=\"100px\"></a>\n",
18+
"</td>\n",
19+
"</tr>\n",
20+
"</table>\n"
1221
]
1322
},
1423
{

ch02/01_main-chapter-code/dataloader.ipynb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@
55
"id": "6e2a4891-c257-4d6b-afb3-e8fef39d0437",
66
"metadata": {},
77
"source": [
8-
"<font size=\"1\">\n",
9-
"Supplementary code for \"Build a Large Language Model From Scratch\": <a href=\"https://www.manning.com/books/build-a-large-language-model-from-scratch\">https://www.manning.com/books/build-a-large-language-model-from-scratch</a> by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
10-
"Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
11-
"</font>"
8+
"<table style=\"width:100%\">\n",
9+
"<tr>\n",
10+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
11+
"<font size=\"2\">\n",
12+
"Supplementary code for the <a href=\"http://mng.bz/orYv\">Build a Large Language Model From Scratch</a> book by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
13+
"<br>Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
14+
"</font>\n",
15+
"</td>\n",
16+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
17+
"<a href=\"http://mng.bz/orYv\"><img src=\"https://sebastianraschka.com/images/LLMs-from-scratch-images/cover-small.webp\" width=\"100px\"></a>\n",
18+
"</td>\n",
19+
"</tr>\n",
20+
"</table>\n"
1221
]
1322
},
1423
{

ch02/01_main-chapter-code/exercise-solutions.ipynb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@
55
"id": "99311e42-8467-458d-b918-632c8840b96f",
66
"metadata": {},
77
"source": [
8-
"<font size=\"1\">\n",
9-
"Supplementary code for \"Build a Large Language Model From Scratch\": <a href=\"https://www.manning.com/books/build-a-large-language-model-from-scratch\">https://www.manning.com/books/build-a-large-language-model-from-scratch</a> by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
10-
"Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
11-
"</font>"
8+
"<table style=\"width:100%\">\n",
9+
"<tr>\n",
10+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
11+
"<font size=\"2\">\n",
12+
"Supplementary code for the <a href=\"http://mng.bz/orYv\">Build a Large Language Model From Scratch</a> book by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
13+
"<br>Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
14+
"</font>\n",
15+
"</td>\n",
16+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
17+
"<a href=\"http://mng.bz/orYv\"><img src=\"https://sebastianraschka.com/images/LLMs-from-scratch-images/cover-small.webp\" width=\"100px\"></a>\n",
18+
"</td>\n",
19+
"</tr>\n",
20+
"</table>\n"
1221
]
1322
},
1423
{
@@ -377,7 +386,7 @@
377386
"name": "python",
378387
"nbconvert_exporter": "python",
379388
"pygments_lexer": "ipython3",
380-
"version": "3.10.10"
389+
"version": "3.11.4"
381390
}
382391
},
383392
"nbformat": 4,

ch02/02_bonus_bytepair-encoder/compare-bpe-tiktoken.ipynb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@
55
"id": "c503e5ef-6bb4-45c3-ac49-0e016cedd8d0",
66
"metadata": {},
77
"source": [
8-
"<font size=\"1\">\n",
9-
"Supplementary code for \"Build a Large Language Model From Scratch\": <a href=\"https://www.manning.com/books/build-a-large-language-model-from-scratch\">https://www.manning.com/books/build-a-large-language-model-from-scratch</a> by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
10-
"Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
11-
"</font>"
8+
"<table style=\"width:100%\">\n",
9+
"<tr>\n",
10+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
11+
"<font size=\"2\">\n",
12+
"Supplementary code for the <a href=\"http://mng.bz/orYv\">Build a Large Language Model From Scratch</a> book by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
13+
"<br>Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
14+
"</font>\n",
15+
"</td>\n",
16+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
17+
"<a href=\"http://mng.bz/orYv\"><img src=\"https://sebastianraschka.com/images/LLMs-from-scratch-images/cover-small.webp\" width=\"100px\"></a>\n",
18+
"</td>\n",
19+
"</tr>\n",
20+
"</table>\n"
1221
]
1322
},
1423
{
@@ -486,7 +495,7 @@
486495
"name": "python",
487496
"nbconvert_exporter": "python",
488497
"pygments_lexer": "ipython3",
489-
"version": "3.10.12"
498+
"version": "3.11.4"
490499
}
491500
},
492501
"nbformat": 4,

ch02/03_bonus_embedding-vs-matmul/embeddings-and-linear-layers.ipynb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "ec7488a4-2d2a-48eb-ad8c-534a2974154b",
6+
"metadata": {},
7+
"source": [
8+
"<table style=\"width:100%\">\n",
9+
"<tr>\n",
10+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
11+
"<font size=\"2\">\n",
12+
"Supplementary code for the <a href=\"http://mng.bz/orYv\">Build a Large Language Model From Scratch</a> book by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
13+
"<br>Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
14+
"</font>\n",
15+
"</td>\n",
16+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
17+
"<a href=\"http://mng.bz/orYv\"><img src=\"https://sebastianraschka.com/images/LLMs-from-scratch-images/cover-small.webp\" width=\"100px\"></a>\n",
18+
"</td>\n",
19+
"</tr>\n",
20+
"</table>\n"
21+
]
22+
},
323
{
424
"cell_type": "markdown",
525
"id": "063850ab-22b0-4838-b53a-9bb11757d9d0",
@@ -477,7 +497,7 @@
477497
"name": "python",
478498
"nbconvert_exporter": "python",
479499
"pygments_lexer": "ipython3",
480-
"version": "3.10.6"
500+
"version": "3.11.4"
481501
}
482502
},
483503
"nbformat": 4,

ch02/04_bonus_dataloader-intuition/dataloader-intuition.ipynb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@
55
"id": "d95f841a-63c9-41d4-aea1-496b3d2024dd",
66
"metadata": {},
77
"source": [
8-
"<font size=\"1\">\n",
9-
"Supplementary code for \"Build a Large Language Model From Scratch\": <a href=\"https://www.manning.com/books/build-a-large-language-model-from-scratch\">https://www.manning.com/books/build-a-large-language-model-from-scratch</a> by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
10-
"Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
11-
"</font>"
8+
"<table style=\"width:100%\">\n",
9+
"<tr>\n",
10+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
11+
"<font size=\"2\">\n",
12+
"Supplementary code for the <a href=\"http://mng.bz/orYv\">Build a Large Language Model From Scratch</a> book by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
13+
"<br>Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
14+
"</font>\n",
15+
"</td>\n",
16+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
17+
"<a href=\"http://mng.bz/orYv\"><img src=\"https://sebastianraschka.com/images/LLMs-from-scratch-images/cover-small.webp\" width=\"100px\"></a>\n",
18+
"</td>\n",
19+
"</tr>\n",
20+
"</table>"
1221
]
1322
},
1423
{

ch03/01_main-chapter-code/ch03.ipynb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@
55
"id": "1ae38945-39dd-45dc-ad4f-da7a4404241f",
66
"metadata": {},
77
"source": [
8-
"<font size=\"1\">\n",
9-
"Supplementary code for \"Build a Large Language Model From Scratch\": <a href=\"https://www.manning.com/books/build-a-large-language-model-from-scratch\">https://www.manning.com/books/build-a-large-language-model-from-scratch</a> by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
10-
"Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
11-
"</font>"
8+
"<table style=\"width:100%\">\n",
9+
"<tr>\n",
10+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
11+
"<font size=\"2\">\n",
12+
"Supplementary code for the <a href=\"http://mng.bz/orYv\">Build a Large Language Model From Scratch</a> book by <a href=\"https://sebastianraschka.com\">Sebastian Raschka</a><br>\n",
13+
"<br>Code repository: <a href=\"https://github.com/rasbt/LLMs-from-scratch\">https://github.com/rasbt/LLMs-from-scratch</a>\n",
14+
"</font>\n",
15+
"</td>\n",
16+
"<td style=\"vertical-align:middle; text-align:left;\">\n",
17+
"<a href=\"http://mng.bz/orYv\"><img src=\"https://sebastianraschka.com/images/LLMs-from-scratch-images/cover-small.webp\" width=\"100px\"></a>\n",
18+
"</td>\n",
19+
"</tr>\n",
20+
"</table>\n"
1221
]
1322
},
1423
{

0 commit comments

Comments
 (0)