Build a modern LLM from scratch. Every line commented. Explained like we are five.
Python attention-mechanismdeep-learningeducationalfrom-scratchgptlanguage-modelllamallmmachine-learningnatural-language-processingpythonpytorchtokenisationtransformerstutorial
fix emoji test in tokenization notebook
raiyanyahya0d59889d527f
diff --git a/notebooks/02_tokenization.ipynb b/notebooks/02_tokenization.ipynbindex 09b5a9d..df97c0c 100644--- a/notebooks/02_tokenization.ipynb+++ b/notebooks/02_tokenization.ipynb@@ -161,8 +161,11 @@"print(f\"Decoded: '{tokenizer.decode(rare)}'\")\n","print()\n","\n",- "emoji = tokenizer.encode(\"Hello world!\")\n",- "print(f\"Emoji test: {tokenizer.decode(emoji)}\")"+"text = tokenizer.encode(\"Hello world!\")\n",+"print(f\"Decoded: {tokenizer.decode(text)}\")\n",+"print()\n",+"emoji = tokenizer.encode(\"Hello \\U0001f60a world\")\n",+"print(f\"Emoji test: {tokenizer.decode(emoji)}\")"]},{