{"id":3786,"name":"llms-from-scratch","description":"Build your own Large Language Model from scratch with this code repository. Learn the ins and outs of LLMs like GPT. 🚀💻","url":"https://github.com/quin12124223/llms-from-scratch","last_synced_at":"2025-09-04T17:08:15.034Z","repository":{"id":300547391,"uuid":"1006404138","full_name":"quin12124223/LLMs-from-scratch","owner":"quin12124223","description":"Build your own Large Language Model from scratch with this code repository. Learn the ins and outs of LLMs like GPT. 🚀💻","archived":false,"fork":false,"pushed_at":"2025-06-22T09:45:53.000Z","size":11671,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T10:31:46.851Z","etag":null,"topics":["bert","book","chatgpt","deberta","flan-t5","from-scratch","language-model","large-language-models","llm","llms-book","machine-learning","mcp","neural-networks","nlp","prompt-engineering","python","pytorch","roberta"],"latest_commit_sha":null,"homepage":"https://quin12124223.github.io","language":"Jupyter Notebook","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quin12124223.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-22T07:29:38.000Z","updated_at":"2025-06-22T09:45:57.000Z","dependencies_parsed_at":"2025-06-22T10:41:58.193Z","dependency_job_id":null,"html_url":"https://github.com/quin12124223/LLMs-from-scratch","commit_stats":null,"previous_names":["quin12124223/llms-from-scratch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/quin12124223/LLMs-from-scratch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quin12124223%2FLLMs-from-scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quin12124223%2FLLMs-from-scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quin12124223%2FLLMs-from-scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quin12124223%2FLLMs-from-scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quin12124223","download_url":"https://codeload.github.com/quin12124223/LLMs-from-scratch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quin12124223%2FLLMs-from-scratch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273641897,"owners_count":25142248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"owner":{"login":"quin12124223","name":null,"uuid":"211773736","kind":"user","description":null,"email":"","website":null,"location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/211773736?v=4","repositories_count":1,"last_synced_at":"2025-05-18T16:44:03.474Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/quin12124223","funding_links":[],"total_stars":0,"followers":0,"following":0,"created_at":"2025-05-18T16:44:03.498Z","updated_at":"2025-05-18T16:44:03.498Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quin12124223","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quin12124223/repositories"},"packages":[],"commits":{"message":"Repository syncing started."},"issues_stats":{"full_name":"quin12124223/llms-from-scratch","html_url":"https://github.com/quin12124223/llms-from-scratch","last_synced_at":null,"status":null,"issues_count":null,"pull_requests_count":null,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":null,"pull_requests_closed_count":null,"pull_request_authors_count":null,"issue_authors_count":null,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":null,"bot_issues_count":null,"bot_pull_requests_count":null,"past_year_issues_count":null,"past_year_pull_requests_count":null,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":null,"past_year_pull_requests_closed_count":null,"past_year_pull_request_authors_count":null,"past_year_issue_authors_count":null,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":null,"past_year_bot_pull_requests_count":null,"past_year_merged_pull_requests_count":null,"created_at":"2025-09-04T17:08:09.827Z","updated_at":"2025-09-04T17:08:09.827Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/quin12124223%2Fllms-from-scratch","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/quin12124223%2Fllms-from-scratch/issues","issue_labels_count":{},"pull_request_labels_count":{},"issue_author_associations_count":{},"pull_request_author_associations_count":{},"issue_authors":{},"pull_request_authors":{},"host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2025-09-04T00:00:25.939Z","repositories_count":10079947,"issues_count":31294689,"pull_requests_count":96077738,"authors_count":10693120,"icon_url":"https://github.com/github.png","host_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories","owners_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/owners","authors_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors"},"past_year_issue_labels_count":{},"past_year_pull_request_labels_count":{},"past_year_issue_author_associations_count":{},"past_year_pull_request_author_associations_count":{},"past_year_issue_authors":{},"past_year_pull_request_authors":{},"maintainers":[],"active_maintainers":[]},"events":{"total":{"PushEvent":12,"CreateEvent":1},"last_year":{"PushEvent":12,"CreateEvent":1}},"keywords":["bert","book","chatgpt","deberta","flan-t5","from-scratch","language-model","large-language-models","llm","llms-book","machine-learning","mcp","neural-networks","nlp","prompt-engineering","python","pytorch","roberta"],"dependencies":[{"ecosystem":"docker","filepath":"setup/03_optional-docker-environment/.devcontainer/Dockerfile","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:56.373Z","updated_at":"2025-06-22T10:41:56.373Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/setup/03_optional-docker-environment/.devcontainer/Dockerfile","dependencies":[{"id":23753345273,"package_name":"pytorch/pytorch","ecosystem":"docker","requirements":"2.5.0-cuda12.4-cudnn9-runtime","direct":true,"kind":"build","optional":false}]},{"ecosystem":"pypi","filepath":"ch02/02_bonus_bytepair-encoder/requirements-extra.txt","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:56.438Z","updated_at":"2025-06-22T10:41:56.438Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/ch02/02_bonus_bytepair-encoder/requirements-extra.txt","dependencies":[{"id":23753346278,"package_name":"requests","ecosystem":"pypi","requirements":"*","direct":true,"kind":"runtime","optional":false},{"id":23753346281,"package_name":"tqdm","ecosystem":"pypi","requirements":"*","direct":true,"kind":"runtime","optional":false},{"id":23753346283,"package_name":"transformers","ecosystem":"pypi","requirements":"\u003e=4.33.2","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"ch04/02_performance-analysis/requirements-extra.txt","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:56.518Z","updated_at":"2025-06-22T10:41:56.518Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/ch04/02_performance-analysis/requirements-extra.txt","dependencies":[{"id":23753346572,"package_name":"thop","ecosystem":"pypi","requirements":"*","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"ch05/06_user_interface/requirements-extra.txt","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:56.576Z","updated_at":"2025-06-22T10:41:56.576Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/ch05/06_user_interface/requirements-extra.txt","dependencies":[{"id":23753346615,"package_name":"chainlit","ecosystem":"pypi","requirements":"\u003e=1.2.0","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"ch05/07_gpt_to_llama/requirements-extra.txt","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:56.630Z","updated_at":"2025-06-22T10:41:56.630Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/ch05/07_gpt_to_llama/requirements-extra.txt","dependencies":[{"id":23753346631,"package_name":"blobfile","ecosystem":"pypi","requirements":"\u003e=3.0.0","direct":true,"kind":"runtime","optional":false},{"id":23753348912,"package_name":"huggingface_hub","ecosystem":"pypi","requirements":"\u003e=0.24.7","direct":true,"kind":"runtime","optional":false},{"id":23753348918,"package_name":"ipywidgets","ecosystem":"pypi","requirements":"\u003e=8.1.2","direct":true,"kind":"runtime","optional":false},{"id":23753348922,"package_name":"safetensors","ecosystem":"pypi","requirements":"\u003e=0.4.4","direct":true,"kind":"runtime","optional":false},{"id":23753348926,"package_name":"sentencepiece","ecosystem":"pypi","requirements":"\u003e=0.1.99","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"ch05/07_gpt_to_llama/tests/test-requirements-extra.txt","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:57.517Z","updated_at":"2025-06-22T10:41:57.517Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/ch05/07_gpt_to_llama/tests/test-requirements-extra.txt","dependencies":[{"id":23753349735,"package_name":"pytest","ecosystem":"pypi","requirements":"\u003e=8.1.1","direct":true,"kind":"test","optional":false},{"id":23753349738,"package_name":"transformers","ecosystem":"pypi","requirements":"\u003e=4.44.2","direct":true,"kind":"test","optional":false}]},{"ecosystem":"pypi","filepath":"ch06/03_bonus_imdb-classification/requirements-extra.txt","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:57.578Z","updated_at":"2025-06-22T10:41:57.578Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/ch06/03_bonus_imdb-classification/requirements-extra.txt","dependencies":[{"id":23753349817,"package_name":"transformers","ecosystem":"pypi","requirements":"\u003e=4.33.2","direct":true,"kind":"runtime","optional":false},{"id":23753349818,"package_name":"scikit-learn","ecosystem":"pypi","requirements":"\u003e=1.3.0","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"ch06/04_user_interface/requirements-extra.txt","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:57.728Z","updated_at":"2025-06-22T10:41:57.728Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/ch06/04_user_interface/requirements-extra.txt","dependencies":[{"id":23753349907,"package_name":"chainlit","ecosystem":"pypi","requirements":"\u003e=1.2.0","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"ch07/02_dataset-utilities/requirements-extra.txt","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:57.790Z","updated_at":"2025-06-22T10:41:57.790Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/ch07/02_dataset-utilities/requirements-extra.txt","dependencies":[{"id":23753349915,"package_name":"openai","ecosystem":"pypi","requirements":"\u003e=1.30.3","direct":true,"kind":"runtime","optional":false},{"id":23753349916,"package_name":"scikit-learn","ecosystem":"pypi","requirements":"\u003e=1.3.1","direct":true,"kind":"runtime","optional":false},{"id":23753349917,"package_name":"tqdm","ecosystem":"pypi","requirements":"\u003e=4.65.0","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"ch07/03_model-evaluation/requirements-extra.txt","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:57.849Z","updated_at":"2025-06-22T10:41:57.849Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/ch07/03_model-evaluation/requirements-extra.txt","dependencies":[{"id":23753349941,"package_name":"openai","ecosystem":"pypi","requirements":"\u003e=1.30.3","direct":true,"kind":"runtime","optional":false},{"id":23753349942,"package_name":"tqdm","ecosystem":"pypi","requirements":"\u003e=4.65.0","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"ch07/05_dataset-generation/requirements-extra.txt","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:57.908Z","updated_at":"2025-06-22T10:41:57.908Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/ch07/05_dataset-generation/requirements-extra.txt","dependencies":[{"id":23753349980,"package_name":"openai","ecosystem":"pypi","requirements":"\u003e=1.30.3","direct":true,"kind":"runtime","optional":false},{"id":23753349981,"package_name":"tqdm","ecosystem":"pypi","requirements":"\u003e=4.65.0","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"ch07/06_user_interface/requirements-extra.txt","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:57.978Z","updated_at":"2025-06-22T10:41:57.978Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/ch07/06_user_interface/requirements-extra.txt","dependencies":[{"id":23753350023,"package_name":"chainlit","ecosystem":"pypi","requirements":"\u003e=1.2.0","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"pyproject.toml","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:58.051Z","updated_at":"2025-06-22T10:41:58.051Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/pyproject.toml","dependencies":[{"id":23753350070,"package_name":"torch","ecosystem":"pypi","requirements":"\u003e=2.3.0","direct":true,"kind":"runtime","optional":false},{"id":23753350071,"package_name":"jupyterlab","ecosystem":"pypi","requirements":"\u003e=4.0","direct":true,"kind":"runtime","optional":false},{"id":23753350072,"package_name":"tiktoken","ecosystem":"pypi","requirements":"\u003e=0.5.1","direct":true,"kind":"runtime","optional":false},{"id":23753350073,"package_name":"matplotlib","ecosystem":"pypi","requirements":"\u003e=3.7.1","direct":true,"kind":"runtime","optional":false},{"id":23753350074,"package_name":"tensorflow","ecosystem":"pypi","requirements":"\u003e=2.18.0","direct":true,"kind":"runtime","optional":false},{"id":23753350075,"package_name":"tqdm","ecosystem":"pypi","requirements":"\u003e=4.66.1","direct":true,"kind":"runtime","optional":false},{"id":23753350076,"package_name":"numpy","ecosystem":"pypi","requirements":"\u003e=1.26,\u003c2.1","direct":true,"kind":"runtime","optional":false},{"id":23753350077,"package_name":"pandas","ecosystem":"pypi","requirements":"\u003e=2.2.1","direct":true,"kind":"runtime","optional":false},{"id":23753350078,"package_name":"pip","ecosystem":"pypi","requirements":"\u003e=25.0.1","direct":true,"kind":"runtime","optional":false},{"id":23753350079,"package_name":"pytest","ecosystem":"pypi","requirements":"\u003e=8.3.5","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"requirements.txt","sha":null,"kind":"manifest","created_at":"2025-06-22T10:41:58.114Z","updated_at":"2025-06-22T10:41:58.114Z","repository_link":"https://github.com/quin12124223/LLMs-from-scratch/blob/main/requirements.txt","dependencies":[{"id":23753350115,"package_name":"torch","ecosystem":"pypi","requirements":"\u003e=2.3.0","direct":true,"kind":"runtime","optional":false},{"id":23753350116,"package_name":"jupyterlab","ecosystem":"pypi","requirements":"\u003e=4.0","direct":true,"kind":"runtime","optional":false},{"id":23753350117,"package_name":"tiktoken","ecosystem":"pypi","requirements":"\u003e=0.5.1","direct":true,"kind":"runtime","optional":false},{"id":23753350118,"package_name":"matplotlib","ecosystem":"pypi","requirements":"\u003e=3.7.1","direct":true,"kind":"runtime","optional":false},{"id":23753350119,"package_name":"tensorflow","ecosystem":"pypi","requirements":"\u003e=2.18.0","direct":true,"kind":"runtime","optional":false},{"id":23753350120,"package_name":"tqdm","ecosystem":"pypi","requirements":"\u003e=4.66.1","direct":true,"kind":"runtime","optional":false},{"id":23753350121,"package_name":"numpy","ecosystem":"pypi","requirements":"\u003e=1.26,\u003c2.1","direct":true,"kind":"runtime","optional":false},{"id":23753350122,"package_name":"pandas","ecosystem":"pypi","requirements":"\u003e=2.2.1","direct":true,"kind":"runtime","optional":false},{"id":23753350123,"package_name":"psutil","ecosystem":"pypi","requirements":"\u003e=5.9.5","direct":true,"kind":"runtime","optional":false}]}],"score":null,"created_at":"2025-09-04T15:50:09.204Z","updated_at":"2025-10-07T08:04:51.493Z","avatar_url":"https://github.com/quin12124223.png","language":"Jupyter Notebook","category":null,"sub_category":null,"monthly_downloads":0,"funding_links":[],"readme_doi_urls":[],"works":{},"citation_counts":{},"total_citations":0,"keywords_from_contributors":[],"project_url":"https://science.ecosyste.ms/api/v1/projects/3786","html_url":"https://science.ecosyste.ms/projects/3786"}