| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:45d81ede-b30b-53ef-2b55-a2c9639a8392 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | C60E:19A3F7:7B2B9:9F566:6AEBCDEC |
| html-safe-nonce | 62daa621cf251c617a690e44c30afcbd8b013fcfec1d30c074bfe1adb7c7ad0b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjBFOjE5QTNGNzo3QjJCOTo5RjU2Njo2QUVCQ0RFQyIsInZpc2l0b3JfaWQiOiI3NjAxNjMyMDczMTc2ODI5NDIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5807f241ef23f9f7918dfa3e06ca63ef30b5de2e2e428ff23683c5797cb43659 |
| hovercard-subject-tag | repository:915520679 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | // |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/FareedKhan-dev/train-llm-from-scratch |
| twitter:image | https://repository-images.githubusercontent.com/915520679/9a2fcbc3-4753-4550-ab10-dfdc4ec676bf |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/915520679/9a2fcbc3-4753-4550-ab10-dfdc4ec676bf |
| og:image:alt | A straightforward method for training your LLM, from downloading data to generating text. - FareedKhan-dev/train-llm-from-scratch |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97b204e1babd5581d0c4d4f3dc7d4a484f3d9fef013d4bc1be57692ba0aeb6f5 |
| turbo-cache-control | no-cache |
| go-import | github.com/FareedKhan-dev/train-llm-from-scratch git https://github.com/FareedKhan-dev/train-llm-from-scratch.git |
| octolytics-dimension-user_id | 63067900 |
| octolytics-dimension-user_login | FareedKhan-dev |
| octolytics-dimension-repository_id | 915520679 |
| octolytics-dimension-repository_nwo | FareedKhan-dev/train-llm-from-scratch |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 915520679 |
| octolytics-dimension-repository_network_root_nwo | FareedKhan-dev/train-llm-from-scratch |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0db06f04e3c3742e55bab37911eaff199d365087 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/FareedKhan-dev/train-llm-from-scratch#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FFareedKhan-dev%2Ftrain-llm-from-scratch |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FFareedKhan-dev%2Ftrain-llm-from-scratch |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=FareedKhan-dev%2Ftrain-llm-from-scratch |
| Reload | https://github.com/FareedKhan-dev/train-llm-from-scratch |
| Reload | https://github.com/FareedKhan-dev/train-llm-from-scratch |
| Reload | https://github.com/FareedKhan-dev/train-llm-from-scratch |
| FareedKhan-dev | https://github.com/FareedKhan-dev |
| train-llm-from-scratch | https://github.com/FareedKhan-dev/train-llm-from-scratch |
| Code | https://github.com/FareedKhan-dev/train-llm-from-scratch |
| Issues1 (1) | https://github.com/FareedKhan-dev/train-llm-from-scratch/issues |
| Pull requests1 (1) | https://github.com/FareedKhan-dev/train-llm-from-scratch/pulls |
| Actions | https://github.com/FareedKhan-dev/train-llm-from-scratch/actions |
| Projects | https://github.com/FareedKhan-dev/train-llm-from-scratch/projects |
| Security and quality | https://github.com/FareedKhan-dev/train-llm-from-scratch/security |
| Insights | https://github.com/FareedKhan-dev/train-llm-from-scratch/pulse |
| https://github.com/FareedKhan-dev/train-llm-from-scratch |
| train-llm-from-scratch | https://github.com/FareedKhan-dev/train-llm-from-scratch |
| Notifications | https://github.com/login?return_to=%2FFareedKhan-dev%2Ftrain-llm-from-scratch |
| Fork1.8k (1.8k) | https://github.com/login?return_to=%2FFareedKhan-dev%2Ftrain-llm-from-scratch |
| Star13.1k (13.1k) | https://github.com/login?return_to=%2FFareedKhan-dev%2Ftrain-llm-from-scratch |
| fareedkhan-dev.github.io/train-llm-from-scratch/ | https://fareedkhan-dev.github.io/train-llm-from-scratch/ |
| gemini | https://github.com/topics/gemini |
| large-language-models | https://github.com/topics/large-language-models |
| llm | https://github.com/topics/llm |
| openai | https://github.com/topics/openai |
| training | https://github.com/topics/training |
| transformers | https://github.com/topics/transformers |
| Readme | https://github.com/FareedKhan-dev/train-llm-from-scratch#readme-ov-file |
| MIT license | https://github.com/FareedKhan-dev/train-llm-from-scratch#MIT-1-ov-file |
| Contributing | https://github.com/FareedKhan-dev/train-llm-from-scratch#contributing-ov-file |
| Activity | https://github.com/FareedKhan-dev/train-llm-from-scratch/activity |
| 1.8k forks | https://github.com/FareedKhan-dev/train-llm-from-scratch/forks |
| Report repository | https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FFareedKhan-dev%2Ftrain-llm-from-scratch&report=FareedKhan-dev+%28user%29 |
| Branches | https://github.com/FareedKhan-dev/train-llm-from-scratch/branches |
| Tags | https://github.com/FareedKhan-dev/train-llm-from-scratch/tags |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/branches |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/tags |
| 175 Commits | https://github.com/FareedKhan-dev/train-llm-from-scratch/commits/main/ |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/commits/main/ |
| .github | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/.github |
| .github | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/.github |
| .streamlit | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/.streamlit |
| .streamlit | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/.streamlit |
| config | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/config |
| config | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/config |
| configs | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/configs |
| configs | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/configs |
| data_loader | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/data_loader |
| data_loader | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/data_loader |
| docs | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/docs |
| docs | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/docs |
| images | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/images |
| images | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/images |
| scripts | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/scripts |
| scripts | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/scripts |
| src | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/src |
| src | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/src |
| tests | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/tests |
| tests | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/tests |
| ui | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/ui |
| ui | https://github.com/FareedKhan-dev/train-llm-from-scratch/tree/main/ui |
| .gitattributes | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/.gitattributes |
| .gitattributes | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/.gitattributes |
| .gitignore | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/.gitignore |
| .gitignore | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/.gitignore |
| .pre-commit-config.yaml | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/.pre-commit-config.yaml |
| .pre-commit-config.yaml | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/.pre-commit-config.yaml |
| CHANGELOG.md | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/CHANGELOG.md |
| CHANGELOG.md | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/CHANGELOG.md |
| CONTRIBUTING.md | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/CONTRIBUTING.md |
| CONTRIBUTING.md | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/CONTRIBUTING.md |
| LICENSE | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/LICENSE |
| LICENSE | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/LICENSE |
| POST_TRAINING.md | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/POST_TRAINING.md |
| POST_TRAINING.md | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/POST_TRAINING.md |
| README.md | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/README.md |
| README.md | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/README.md |
| mkdocs.yml | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/mkdocs.yml |
| mkdocs.yml | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/mkdocs.yml |
| pyproject.toml | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/pyproject.toml |
| pyproject.toml | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/pyproject.toml |
| requirements-post.txt | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/requirements-post.txt |
| requirements-post.txt | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/requirements-post.txt |
| requirements.txt | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/requirements.txt |
| requirements.txt | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/requirements.txt |
| sft_rlhf_guide.ipynb | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/sft_rlhf_guide.ipynb |
| sft_rlhf_guide.ipynb | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/sft_rlhf_guide.ipynb |
| README | https://github.com/FareedKhan-dev/train-llm-from-scratch |
| Contributing | https://github.com/FareedKhan-dev/train-llm-from-scratch |
| MIT license | https://github.com/FareedKhan-dev/train-llm-from-scratch |
| https://camo.githubusercontent.com/6dd442ce2caa3bfa8b272aa3e0cb5b354a8f864745e92aa4ff7a0437cb41f181/68747470733a2f2f63646e2d696d616765732d312e6d656469756d2e636f6d2f6d61782f353230302f312a72393948713359426435465454574c4e594b4b7650772e706e67 |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#train-llm-from-scratch |
| https://camo.githubusercontent.com/ac095efffec6ac483a78a54200d72e16c1eeeb3c29542653715e7dd2eb56ef00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507974686f6e2d332e31302532422d626c7565 |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/actions/workflows/ci.yml |
| https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e |
| https://camo.githubusercontent.com/3b47ed255824e64bce4ea8a068e2ac8e2c685bbac88c2ad7d75a788b429272da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6e747269627574696f6e732d57656c636f6d652d626c7565 |
| https://fareedkhan-dev.github.io/train-llm-from-scratch/ |
| GitHub | https://github.com/FareedKhan-dev |
| Attention is All You Need | https://arxiv.org/abs/1706.03762 |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/00_pipeline.png |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#table-of-contents |
| Who this is for | https://github.com/FareedKhan-dev/train-llm-from-scratch#who-this-is-for |
| Prerequisites and Training Time | https://github.com/FareedKhan-dev/train-llm-from-scratch#prerequisites-and-training-time |
| Setup | https://github.com/FareedKhan-dev/train-llm-from-scratch#setup |
| No GPU? Train on Your Laptop | https://github.com/FareedKhan-dev/train-llm-from-scratch#no-gpu-train-on-your-laptop |
| Code Structure | https://github.com/FareedKhan-dev/train-llm-from-scratch#code-structure |
| Step 1: Preparing the Data | https://github.com/FareedKhan-dev/train-llm-from-scratch#step-1-preparing-the-data |
| Step 2: The Model, Built From Small Pieces | https://github.com/FareedKhan-dev/train-llm-from-scratch#step-2-the-model-built-from-small-pieces |
| Multi Layer Perceptron (MLP) | https://github.com/FareedKhan-dev/train-llm-from-scratch#multi-layer-perceptron-mlp |
| Single Head Attention | https://github.com/FareedKhan-dev/train-llm-from-scratch#single-head-attention |
| Multi Head Attention | https://github.com/FareedKhan-dev/train-llm-from-scratch#multi-head-attention |
| The Transformer Block | https://github.com/FareedKhan-dev/train-llm-from-scratch#the-transformer-block |
| The Full Transformer | https://github.com/FareedKhan-dev/train-llm-from-scratch#the-full-transformer |
| The Modern Version of the Same Model | https://github.com/FareedKhan-dev/train-llm-from-scratch#the-modern-version-of-the-same-model |
| Step 3: Pretraining the Base Model | https://github.com/FareedKhan-dev/train-llm-from-scratch#step-3-pretraining-the-base-model |
| Step 4: Generating Text | https://github.com/FareedKhan-dev/train-llm-from-scratch#step-4-generating-text |
| Step 5: Post-Training, Turning a Base Model Into an Assistant | https://github.com/FareedKhan-dev/train-llm-from-scratch#step-5-post-training-turning-a-base-model-into-an-assistant |
| SFT (Supervised Fine-Tuning) | https://github.com/FareedKhan-dev/train-llm-from-scratch#sft-supervised-fine-tuning |
| The Reward Model | https://github.com/FareedKhan-dev/train-llm-from-scratch#the-reward-model |
| DPO, ORPO and KTO | https://github.com/FareedKhan-dev/train-llm-from-scratch#dpo-orpo-and-kto |
| PPO | https://github.com/FareedKhan-dev/train-llm-from-scratch#ppo |
| GRPO / RLVR | https://github.com/FareedKhan-dev/train-llm-from-scratch#grpo--rlvr |
| Step 6: Evaluation | https://github.com/FareedKhan-dev/train-llm-from-scratch#step-6-evaluation |
| Step 7: Talking to the Model | https://github.com/FareedKhan-dev/train-llm-from-scratch#step-7-talking-to-the-model |
| The Streamlit Control Panel | https://github.com/FareedKhan-dev/train-llm-from-scratch#the-streamlit-control-panel |
| The Documentation Site | https://github.com/FareedKhan-dev/train-llm-from-scratch#the-documentation-site |
| Run the Whole Thing | https://github.com/FareedKhan-dev/train-llm-from-scratch#run-the-whole-thing |
| Type Safety and Tests | https://github.com/FareedKhan-dev/train-llm-from-scratch#type-safety-and-tests |
| What's Next | https://github.com/FareedKhan-dev/train-llm-from-scratch#whats-next |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#who-this-is-for |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#prerequisites-and-training-time |
| OOP Video | https://www.youtube.com/watch?v=Ej_02ICOIgs |
| Neural Network Video | https://www.youtube.com/watch?v=Jy4wM2X21u0 |
| Pytorch Video | https://www.youtube.com/watch?v=V_xro1bcAuA |
| laptop track | https://github.com/FareedKhan-dev/train-llm-from-scratch#no-gpu-train-on-your-laptop |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#setup |
| uv | https://docs.astral.sh/uv/ |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#no-gpu-train-on-your-laptop |
| TinyStories | https://arxiv.org/abs/2305.07759 |
| docs/student | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/docs/student/README.md |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#code-structure |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#step-1-preparing-the-data |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/01_data.png |
| The Pile | https://huggingface.co/datasets/monology/pile-uncopyrighted |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#tokenization |
| BPE from scratch | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/docs/foundations/bpe.md |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/02_tokenization.png |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#the-chat-format-and-loss-mask |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#step-2-the-model-built-from-small-pieces |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#multi-layer-perceptron-mlp |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/03_mlp.png |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#single-head-attention |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/04_attention_head.png |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#multi-head-attention |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/05_multi_head_attention.png |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#the-transformer-block |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/06_transformer_block.png |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#the-full-transformer |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/07_transformer.png |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#the-modern-version-of-the-same-model |
| modern model docs | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/docs/modern/README.md |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#step-3-pretraining-the-base-model |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/08_training_loop.png |
| Muon | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/docs/modern/optimizers.md |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#the-loss-curve |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/loss_curve.png |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#step-4-generating-text |
| inference docs | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/docs/modern/inference.md |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#step-5-post-training-turning-a-base-model-into-an-assistant |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/00_pipeline.png |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#sft-supervised-fine-tuning |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/09_sft.png |
| LoRA | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/docs/modern/lora.md |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#the-reward-model |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/10_reward_model.png |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#dpo-orpo-and-kto |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/11_dpo.png |
| this page | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/docs/modern/preference.md |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#ppo |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/12_ppo.png |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#grpo--rlvr |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/13_grpo.png |
| RL for reasoning | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/docs/modern/rl_reasoning.md |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#step-6-evaluation |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/14_evaluation.png |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#what-changes-after-sft |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#step-7-talking-to-the-model |
| https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/images/15_inference.png |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#the-streamlit-control-panel |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#the-documentation-site |
| https://fareedkhan-dev.github.io/train-llm-from-scratch/ | https://fareedkhan-dev.github.io/train-llm-from-scratch/ |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#run-the-whole-thing |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#type-safety-and-tests |
| jaxtyping | https://github.com/patrick-kidger/jaxtyping |
| type safety guide | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/docs/howto/type_safety.md |
| CONTRIBUTING.md | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/CONTRIBUTING.md |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#whats-next |
| CHANGELOG.md | https://github.com/FareedKhan-dev/train-llm-from-scratch/blob/main/CHANGELOG.md |
| My Linkedin | https://www.linkedin.com/in/fareed-khan-dev/ |
| https://github.com/FareedKhan-dev/train-llm-from-scratch#star-history |
| https://star-history.dera.page/#FareedKhan-dev/train-llm-from-scratch&Date |
| fareedkhan-dev.github.io/train-llm-from-scratch/ | https://fareedkhan-dev.github.io/train-llm-from-scratch/ |
| gemini | https://github.com/topics/gemini |
| large-language-models | https://github.com/topics/large-language-models |
| llm | https://github.com/topics/llm |
| openai | https://github.com/topics/openai |
| training | https://github.com/topics/training |
| transformers | https://github.com/topics/transformers |
| Readme | https://github.com/FareedKhan-dev/train-llm-from-scratch#readme-ov-file |
| MIT license | https://github.com/FareedKhan-dev/train-llm-from-scratch#MIT-1-ov-file |
| Contributing | https://github.com/FareedKhan-dev/train-llm-from-scratch#contributing-ov-file |
| Activity | https://github.com/FareedKhan-dev/train-llm-from-scratch/activity |
| 1.8k forks | https://github.com/FareedKhan-dev/train-llm-from-scratch/forks |
| Report repository | https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FFareedKhan-dev%2Ftrain-llm-from-scratch&report=FareedKhan-dev+%28user%29 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |