{"data":{"slug":"pytorch-torchtitan","name":"torchtitan","tagline":"A PyTorch native platform for training generative AI models","github_url":"https://github.com/pytorch/torchtitan","owner":"pytorch","repo":"torchtitan","owner_avatar_url":"https://avatars.githubusercontent.com/u/21003710?v=4","primary_language":"Python","stars":5802,"forks":1030,"topics":[],"archived":false,"github_pushed_at":"2026-10-13T05:59:37+00:00","maintenance_label":"Very active","stars_delta_30d":96,"url":"https://www.graphcanon.com/tools/pytorch-torchtitan","markdown_url":"https://www.graphcanon.com/tools/pytorch-torchtitan.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/pytorch-torchtitan","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=pytorch-torchtitan","description":"A PyTorch native platform for training generative AI models","homepage_url":null,"license":"BSD-3-Clause","open_issues":278,"watchers":59,"ai_summary":"Torchtitan is a tool built on top of PyTorch aimed at facilitating the training processes required for developing generative AI models.","readme_excerpt":"## Quick start\n\n**1. Install** with a PyTorch nightly (Python 3.11+). Replace `cu132` with your CUDA or ROCm build.\n\n```bash\ngit clone https://github.com/pytorch/torchtitan && cd torchtitan\npip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu132\npip install -r requirements.txt\n```\n\n**2. Train a debug model.** It uses the tokenizer bundled with the tests, so no download is needed.\n\n```bash\nNGPU=1 ./run_train.sh   # Llama 3 debug model, 10 steps\n```\n\n**3. Train a real model.** Download the tokenizer (Llama weights require\n[access on Hugging Face](https://huggingface.co/meta-llama/Llama-3.1-8B)), then\nselect a recipe by module and function name:\n\n```bash\npython scripts/download_hf_assets.py --repo_id meta-llama/Llama-3.1-8B --assets tokenizer --hf_token=...\nMODULE=torchtitan_recipes.models.llama3 CONFIG=llama3_8b ./run_train.sh   # 8 GPUs\n```\n\n**4. Make it yours.** A recipe is a Python function returning a complete config,\nso changing a run means writing a function, not passing flags:\n\n```python\n\n---\n\n## Installation\n\nThe [quick start](#quick-start) installs from source, which is the recommended\nway to get the latest features. Other options:\n\n<details>\n<summary><b>Nightly builds</b></summary>\n\n```bash\npip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu132 --force-reinstall\npip install --pre torchtitan --index-url https://download.pytorch.org/whl/nightly/cu132\n```\n\nReplace `cu132` with another CUDA version or a ROCm build (e.g. `rocm10.0`).\n\n</details>\n\n<details>\n<summary><b>Stable releases</b></summary>\n\n```bash\npip install torchtitan\n\n---\n\n## License\n\nSource code is made available under a [BSD 3 license](./LICENSE). You may have\nother legal obligations that govern your use of other content linked in this\nrepository, such as the license or terms of service for third-party data and\nmodels.","github_created_at":"2023-12-13T01:51:37+00:00","created_at":"2026-07-11T10:35:44.298358+00:00","updated_at":"2026-10-13T06:00:20.695573+00:00","categories":[{"slug":"model-training","name":"Model Training","url":"https://www.graphcanon.com/categories/model-training","markdown_url":"https://www.graphcanon.com/categories/model-training.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/model-training"}],"tags":[{"slug":"generative-models","name":"generative models"},{"slug":"pytorch","name":"pytorch"},{"slug":"training-platform","name":"training platform"}],"trust":{"provenance":{"is_fork":false,"github_id":730932260,"owner_type":"Organization","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-10-13T06:00:19.498Z","maintenance":{"label":"Very active","score":96,"methodology":"github_public_v1","releases_90d":1,"days_since_push":0,"last_release_at":"2026-09-03T03:51:16Z","stars_delta_30d":96,"open_issues_delta_30d":-422},"security_summary":{"last_scan_at":"2026-07-11T10:35:47.297254+00:00","scan_profile":"deps","status":"ok","critical_count":0,"high_count":0,"medium_count":0,"low_count":0,"scanner":"osv@v1","scan_id":"ea549d08-c519-4fd9-99d9-16986330b61b","pending_review_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-10-13T06:00:20.284Z"},"languages":{"value":["python"],"source":"github.language+pyproject.toml","observed_at":"2026-10-13T06:00:20.284Z"},"license_spdx":{"value":"BSD-3-Clause","source":"github.license","observed_at":"2026-10-13T06:00:20.284Z"}},"decision_facts":{"hosting":null,"pricing":null,"requirements":{"notes":["Facilitates training processes for generative AI models using PyTorch."],"requires_docker":false},"constraints":{"requires_docker":false},"when_to_use":[],"when_not_to_use":[],"source":"enrich:decision_facts","observed_at":"2026-07-12T03:00:26.146Z"},"constraint_facets":{"requires_docker":false},"decision_summary":[{"label":"Requirements","value":"Facilitates training processes for generative AI models using PyTorch."},{"label":"Adopt for","value":"Unverified catalog guidance: Here are critical facts about TorchTitan for decision-making:"},{"label":"License detail","value":"TorchTitan is distributed under the BSD-3-Clause license."}]}}