{"id":20464279,"url":"https://github.com/endlessreform/nanogpt-candle","last_synced_at":"2026-06-04T12:31:09.713Z","repository":{"id":221916922,"uuid":"754912596","full_name":"EndlessReform/nanogpt-candle","owner":"EndlessReform","description":"Exercise: implementing Karpathy's nanoGPT in Candle","archived":false,"fork":false,"pushed_at":"2024-03-15T01:32:26.000Z","size":366,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T12:22:20.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EndlessReform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-09T02:14:34.000Z","updated_at":"2024-04-28T06:51:58.000Z","dependencies_parsed_at":"2025-01-16T01:12:09.438Z","dependency_job_id":"0f3aaebb-b839-4837-af6a-f850f2a910e5","html_url":"https://github.com/EndlessReform/nanogpt-candle","commit_stats":null,"previous_names":["endlessreform/nanogpt-candle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EndlessReform/nanogpt-candle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndlessReform%2Fnanogpt-candle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndlessReform%2Fnanogpt-candle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndlessReform%2Fnanogpt-candle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndlessReform%2Fnanogpt-candle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EndlessReform","download_url":"https://codeload.github.com/EndlessReform/nanogpt-candle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndlessReform%2Fnanogpt-candle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33905358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"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"}},"keywords":[],"created_at":"2024-11-15T13:14:32.012Z","updated_at":"2026-06-04T12:31:09.694Z","avatar_url":"https://github.com/EndlessReform.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## NanoGPT, in Candle, spelled out\n\n\u003cimg src=\"./docs/candle.png\" width=\"400px\" /\u003e\n\nThis repo is an implementation of [nanoGPT](https://github.com/karpathy/nanoGPT) in [Candle](https://github.com/huggingface/candle), a Rust-based PyTorch alternative.\n\nIf you use this in production, well, that's on you buddy.\n\n## Installation\n\nInstall Rust if you haven't already done so. Then in root:\n\n```bash\ncargo build\n# If on Nvidia platform\ncargo build --features cuda\n# If on Apple Silicon\ncargo build --features metal\n```\n\nAdd TinyShakespeare dataset:\n\n```bash\nmkdir corpus\ncurl 'https://raw.githubusercontent.com/karpathy/char-rnn/master/data/tinyshakespeare/input.txt' -o corpus/shakespeare.txt\n```\n\n## Usage\n\nTrain TinyShakespeare tokenizer:\n\n```bash\ncargo run --bin train_tokenizer -- -i corpus/shakespeare.txt -o models\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendlessreform%2Fnanogpt-candle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendlessreform%2Fnanogpt-candle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendlessreform%2Fnanogpt-candle/lists"}