Skip to content

Build a modern LLM from scratch. Every line commented. Explained like we are five.

adding license and contributing md also added the intention in the readme

raiyanyahyadd691f55dd10
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..12287ec
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,20 @@
+# Contributing
+
+This project is a personal learning exercise I'm sharing publicly. If you find a bug, a typo, or something unclear in the code or the chapters, I'd welcome your help.
+
+## Ways to contribute
+
+- Fix typos or unclear explanations in the chapter files
+- Fix bugs in the notebook code
+- Add more worked examples or visualizations
+- Improve the README or documentation
+- Suggest a better analogy for a concept that feels confusing
+
+## Before you open a PR
+
+- Keep the tone simple and human. No jargon. No buzzwords. Write like you're explaining to a friend.
+- Make sure any code you add runs without errors
+- Notebooks should stay self-contained. Each one should run top to bottom
+- If you're unsure about something, open an issue first and we can talk about it
+
+Thanks for reading this far. This project started because I wanted to understand attention. If it helps you understand it too, that's the whole point.
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..5be86b3
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 Raiyan Yahya
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
index 15dbca5..32a1388 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,8 @@
# 🧠 How to Train Your GPT
> *A guide to building a world-class language model from absolute scratch. Taught like you're five. Built like you're an engineer.*
+>
+> *I made this with the goal of learning something I didn't understand completely. Specifically the attention part. I use AI a lot to understand key concepts and verifying them.*
<p align="center">
<img src="https://img.shields.io/badge/chapters-12-blue" alt="12 chapters">