{"id":16590,"name":"building-an-llm-from-scratch","description":null,"url":"https://github.com/sangwan70/building-an-llm-from-scratch","last_synced_at":"2025-09-04T23:17:19.539Z","repository":{"id":264357335,"uuid":"893136776","full_name":"Sangwan70/Building-an-LLM-From-Scratch","owner":"Sangwan70","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-27T05:54:40.000Z","size":12574,"stargazers_count":9,"open_issues_count":0,"forks_count":31,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T07:22:13.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.theskillpedia.com","language":"Jupyter Notebook","has_issues":true,"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/Sangwan70.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":"2024-11-23T16:23:59.000Z","updated_at":"2025-07-27T05:54:43.000Z","dependencies_parsed_at":"2024-11-23T17:27:39.135Z","dependency_job_id":"72251968-2b22-4fa8-97c4-116af93f01ca","html_url":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch","commit_stats":null,"previous_names":["sangwan70/building-an-llm-from-scratch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sangwan70/Building-an-LLM-From-Scratch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sangwan70%2FBuilding-an-LLM-From-Scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sangwan70%2FBuilding-an-LLM-From-Scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sangwan70%2FBuilding-an-LLM-From-Scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sangwan70%2FBuilding-an-LLM-From-Scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sangwan70","download_url":"https://codeload.github.com/Sangwan70/Building-an-LLM-From-Scratch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sangwan70%2FBuilding-an-LLM-From-Scratch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273685642,"owners_count":25149729,"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":"Sangwan70","name":"Ram Niwas Sangwan","uuid":"23374234","kind":"user","description":"","email":"","website":"https://www.rnsangwan.com","location":null,"twitter":null,"company":"Alliance Softech Pvt Ltd","icon_url":"https://avatars.githubusercontent.com/u/23374234?u=b0a361d713993fd8f66519296741269429662a97\u0026v=4","repositories_count":57,"last_synced_at":"2024-05-06T17:21:29.915Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/Sangwan70","funding_links":[],"total_stars":24,"followers":12,"following":1,"created_at":"2023-04-09T19:22:17.263Z","updated_at":"2024-05-06T17:21:39.530Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sangwan70","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sangwan70/repositories"},"packages":[],"commits":{"message":"Repository syncing started."},"issues_stats":{"full_name":"sangwan70/building-an-llm-from-scratch","html_url":"https://github.com/sangwan70/building-an-llm-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-04T23:15:58.799Z","updated_at":"2025-09-04T23:15:58.799Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangwan70%2Fbuilding-an-llm-from-scratch","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangwan70%2Fbuilding-an-llm-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":10082413,"issues_count":31239894,"pull_requests_count":96112510,"authors_count":10694151,"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":{"WatchEvent":11,"PushEvent":81,"ForkEvent":33,"CreateEvent":2},"last_year":{"WatchEvent":11,"PushEvent":81,"ForkEvent":33,"CreateEvent":2}},"keywords":[],"dependencies":[{"ecosystem":"docker","filepath":"setup/03_optional-docker-environment/.devcontainer/Dockerfile","sha":null,"kind":"manifest","created_at":"2024-11-23T17:27:37.940Z","updated_at":"2024-11-23T17:27:37.940Z","repository_link":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch/blob/main/setup/03_optional-docker-environment/.devcontainer/Dockerfile","dependencies":[{"id":20867104473,"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":"2024-11-23T17:27:38.239Z","updated_at":"2024-11-23T17:27:38.239Z","repository_link":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch/blob/main/ch02/02_bonus_bytepair-encoder/requirements-extra.txt","dependencies":[{"id":20867104474,"package_name":"requests","ecosystem":"pypi","requirements":"*","direct":true,"kind":"runtime","optional":false},{"id":20867104475,"package_name":"tqdm","ecosystem":"pypi","requirements":"*","direct":true,"kind":"runtime","optional":false},{"id":20867104476,"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":"2024-11-23T17:27:38.315Z","updated_at":"2024-11-23T17:27:38.315Z","repository_link":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch/blob/main/ch04/02_performance-analysis/requirements-extra.txt","dependencies":[{"id":20867104477,"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":"2024-11-23T17:27:38.395Z","updated_at":"2024-11-23T17:27:38.395Z","repository_link":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch/blob/main/ch05/06_user_interface/requirements-extra.txt","dependencies":[{"id":20867104478,"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":"2024-11-23T17:27:38.463Z","updated_at":"2024-11-23T17:27:38.463Z","repository_link":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch/blob/main/ch05/07_gpt_to_llama/requirements-extra.txt","dependencies":[{"id":20867104479,"package_name":"blobfile","ecosystem":"pypi","requirements":"\u003e=3.0.0","direct":true,"kind":"runtime","optional":false},{"id":20867104480,"package_name":"huggingface_hub","ecosystem":"pypi","requirements":"\u003e=0.24.7","direct":true,"kind":"runtime","optional":false},{"id":20867104481,"package_name":"ipywidgets","ecosystem":"pypi","requirements":"\u003e=8.1.2","direct":true,"kind":"runtime","optional":false},{"id":20867104482,"package_name":"safetensors","ecosystem":"pypi","requirements":"\u003e=0.4.4","direct":true,"kind":"runtime","optional":false},{"id":20867104483,"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":"2024-11-23T17:27:38.533Z","updated_at":"2024-11-23T17:27:38.533Z","repository_link":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch/blob/main/ch05/07_gpt_to_llama/tests/test-requirements-extra.txt","dependencies":[{"id":20867104484,"package_name":"pytest","ecosystem":"pypi","requirements":"\u003e=8.1.1","direct":true,"kind":"test","optional":false},{"id":20867104485,"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":"2024-11-23T17:27:38.597Z","updated_at":"2024-11-23T17:27:38.597Z","repository_link":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch/blob/main/ch06/03_bonus_imdb-classification/requirements-extra.txt","dependencies":[{"id":20867104486,"package_name":"transformers","ecosystem":"pypi","requirements":"\u003e=4.33.2","direct":true,"kind":"runtime","optional":false},{"id":20867104487,"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":"2024-11-23T17:27:38.661Z","updated_at":"2024-11-23T17:27:38.661Z","repository_link":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch/blob/main/ch06/04_user_interface/requirements-extra.txt","dependencies":[{"id":20867104488,"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":"2024-11-23T17:27:38.725Z","updated_at":"2024-11-23T17:27:38.725Z","repository_link":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch/blob/main/ch07/02_dataset-utilities/requirements-extra.txt","dependencies":[{"id":20867104489,"package_name":"openai","ecosystem":"pypi","requirements":"\u003e=1.30.3","direct":true,"kind":"runtime","optional":false},{"id":20867104490,"package_name":"scikit-learn","ecosystem":"pypi","requirements":"\u003e=1.3.1","direct":true,"kind":"runtime","optional":false},{"id":20867104491,"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":"2024-11-23T17:27:38.790Z","updated_at":"2024-11-23T17:27:38.790Z","repository_link":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch/blob/main/ch07/03_model-evaluation/requirements-extra.txt","dependencies":[{"id":20867104492,"package_name":"openai","ecosystem":"pypi","requirements":"\u003e=1.30.3","direct":true,"kind":"runtime","optional":false},{"id":20867104493,"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":"2024-11-23T17:27:38.854Z","updated_at":"2024-11-23T17:27:38.854Z","repository_link":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch/blob/main/ch07/05_dataset-generation/requirements-extra.txt","dependencies":[{"id":20867104494,"package_name":"openai","ecosystem":"pypi","requirements":"\u003e=1.30.3","direct":true,"kind":"runtime","optional":false},{"id":20867104495,"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":"2024-11-23T17:27:38.923Z","updated_at":"2024-11-23T17:27:38.923Z","repository_link":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch/blob/main/ch07/06_user_interface/requirements-extra.txt","dependencies":[{"id":20867104496,"package_name":"chainlit","ecosystem":"pypi","requirements":"\u003e=1.2.0","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"requirements.txt","sha":null,"kind":"manifest","created_at":"2024-11-23T17:27:39.017Z","updated_at":"2024-11-23T17:27:39.017Z","repository_link":"https://github.com/Sangwan70/Building-an-LLM-From-Scratch/blob/main/requirements.txt","dependencies":[{"id":20867104497,"package_name":"torch","ecosystem":"pypi","requirements":"\u003e=2.0.1","direct":true,"kind":"runtime","optional":false},{"id":20867104498,"package_name":"jupyterlab","ecosystem":"pypi","requirements":"\u003e=4.0","direct":true,"kind":"runtime","optional":false},{"id":20867104499,"package_name":"tiktoken","ecosystem":"pypi","requirements":"\u003e=0.5.1","direct":true,"kind":"runtime","optional":false},{"id":20867104500,"package_name":"matplotlib","ecosystem":"pypi","requirements":"\u003e=3.7.1","direct":true,"kind":"runtime","optional":false},{"id":20867104501,"package_name":"tensorflow","ecosystem":"pypi","requirements":"\u003e=2.15.0","direct":true,"kind":"runtime","optional":false},{"id":20867104502,"package_name":"tqdm","ecosystem":"pypi","requirements":"\u003e=4.66.1","direct":true,"kind":"runtime","optional":false},{"id":20867104503,"package_name":"numpy","ecosystem":"pypi","requirements":"\u003e=1.25,\u003c2.0","direct":true,"kind":"runtime","optional":false},{"id":20867104504,"package_name":"pandas","ecosystem":"pypi","requirements":"\u003e=2.2.1","direct":true,"kind":"runtime","optional":false},{"id":20867104505,"package_name":"psutil","ecosystem":"pypi","requirements":"\u003e=5.9.5","direct":true,"kind":"runtime","optional":false}]}],"score":null,"created_at":"2025-09-04T15:50:47.617Z","updated_at":"2025-10-07T08:08:47.478Z","avatar_url":"https://github.com/Sangwan70.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/16590","html_url":"https://science.ecosyste.ms/projects/16590"}