{"data":{"slug":"lightning-ai-pytorch-lightning","name":"pytorch-lightning","tagline":"Pretrain, finetune ANY AI model of ANY size on 1 or 10,000+ GPUs with zero code changes.","github_url":"https://github.com/Lightning-AI/pytorch-lightning","owner":"Lightning-AI","repo":"pytorch-lightning","owner_avatar_url":"https://avatars.githubusercontent.com/u/58386951?v=4","primary_language":"Python","stars":31267,"forks":3768,"topics":["ai","artificial-intelligence","data-science","deep-learning","machine-learning","python","pytorch"],"archived":false,"github_pushed_at":"2026-08-03T01:13:09+00:00","maintenance_label":"Very active","url":"https://www.graphcanon.com/tools/lightning-ai-pytorch-lightning","markdown_url":"https://www.graphcanon.com/tools/lightning-ai-pytorch-lightning.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/lightning-ai-pytorch-lightning","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=lightning-ai-pytorch-lightning","description":"Pretrain, finetune ANY AI model of ANY size on 1 or 10,000+ GPUs with zero code changes.","homepage_url":"https://lightning.ai/pytorch-lightning/?utm_source=ptl_readme&utm_medium=referral&utm_campaign=ptl_readme","license":"Apache-2.0","open_issues":1060,"watchers":256,"ai_summary":"A framework for training and serving machine learning models, supporting PyTorch models to scale with ease on multiple GPUs.","readme_excerpt":"# Quick start\nInstall Lightning:\n\n```bash\npip install lightning\n```\n\n\n\n<details>\n  <summary>Advanced install options</summary>\n    \n\n#### Install with optional dependencies\n\n```bash\npip install lightning['extra']\n```\n\n#### Conda\n\n```bash\nconda install lightning -c conda-forge\n```\n\n#### Install stable version\n\nInstall future release from the source\n\n```bash\npip install https://github.com/Lightning-AI/lightning/archive/refs/heads/release/stable.zip -U\n```\n\n#### Install bleeding-edge\n\nInstall nightly from the source (no guarantees)\n\n```bash\npip install https://github.com/Lightning-AI/lightning/archive/refs/heads/master.zip -U\n```\n\nor from testing PyPI\n\n```bash\npip install -iU https://test.pypi.org/simple/ pytorch-lightning\n```\n\n</details>\n\n---\n\n# ! pip install torchvision\nimport torch, torch.nn as nn, torch.utils.data as data, torchvision as tv, torch.nn.functional as F\nimport lightning as L","github_created_at":"2019-03-31T00:45:57+00:00","created_at":"2026-07-11T23:24:40.715404+00:00","updated_at":"2026-08-03T06:01:47.270231+00:00","categories":[{"slug":"inference-serving","name":"Inference & Serving","url":"https://www.graphcanon.com/categories/inference-serving","markdown_url":"https://www.graphcanon.com/categories/inference-serving.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/inference-serving"},{"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":"ai","name":"ai"},{"slug":"artificial-intelligence","name":"artificial-intelligence"},{"slug":"data-science","name":"data-science"},{"slug":"deep-learning","name":"deep-learning"},{"slug":"machine-learning","name":"machine-learning"},{"slug":"python","name":"python"},{"slug":"pytorch","name":"pytorch"}],"trust":{"provenance":{"is_fork":false,"github_id":178626720,"owner_type":"Organization","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-08-03T06:01:46.529Z","maintenance":{"label":"Very active","score":96,"methodology":"github_public_v1","releases_90d":2,"days_since_push":0,"last_release_at":"2026-05-27T14:32:15Z"},"security_summary":{"status":"ok","scanner":"osv@v1","low_count":0,"high_count":0,"last_scan_at":"2026-07-11T23:24:47.282Z","medium_count":0,"scan_profile":"deps","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-08-03T06:01:46.987Z"},"languages":{"value":["python"],"source":"github.language+pyproject.toml","observed_at":"2026-08-03T06:01:46.987Z"},"license_spdx":{"value":"Apache-2.0","source":"github.license","observed_at":"2026-08-03T06:01:46.987Z"}},"decision_facts":{"hosting":null,"pricing":null,"requirements":null,"constraints":null,"when_to_use":["Scalable ML model training with consistent API across single to multiple GPUs","Zero-code-change requirement when expanding from one GPU to many, including up to 10,000+ GPUs"],"when_not_to_use":["For lightweight models requiring minimal configuration or manual control over model distribution","Projects that target environments without access to multi-GPU setups and do not require scalability features"],"source":"enrich:decision_facts","observed_at":"2026-07-12T14:20:30.627Z"},"constraint_facets":null,"decision_summary":[{"label":"Adopt for","value":"PyTorch Lightning scales PyTorch models across GPUs with minimal code changes."}]}}