Pytorch Lightning
Deep learning framework that organizes PyTorch code into LightningModules and scales training across devices.
- CCM score
- 67 of 100
- skills.sh installs
- 2.3K
- GitHub stars
- 58.9K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers LightningModule structure, Trainer configuration, LightningDataModule pipelines, callbacks, and experiment logging
- Includes scripts
template_lightning_module.py,template_datamodule.py, andquick_trainer_setup.pyplus per-topic reference docs - Pins Lightning 2.6.6 and requires explicit
sync_dist=Truefor cross-device scalar metric reduction - Designed for teams scaling neural network training with DDP, FSDP, or DeepSpeed on multi-GPU or TPU hardware
Install
$ npx -y skills add k-dense-ai/scientific-agent-skills --skill pytorch-lightning -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
PyTorch Lightning
Overview
PyTorch Lightning is a deep learning framework that organizes PyTorch code to eliminate boilerplate while maintaining full flexibility. Automate training workflows, multi-device orchestration, and implement best practices for neural network training and scaling across multiple GPUs/TPUs.
Reviewed release: Lightning 2.6.6, including its checkpoint-loading security fixes. CPU tests use Python 3.11, Torch 2.14.1 and Lightning 2.6.6. Use import lightning as L with the lightning distribution. The alternative pytorch-lightning distribution exposes import pytorch_lightning as pl; do not mix class namespaces within one application. GPU, TPU, multi-node and online logger examples are source-verified illustrations, not executed training validation.
Installation
uv pip install "lightning==2.6.6"
Optional extras:
uv pip install "lightning[extra]==2.6.6" # loggers, strategies, etc.
uv pip install wandb mlflow # specific loggers as needed
When to Use This Skill
Details
- Repository
- github.com/k-dense-ai/scientific-agent-skills
- Categories
- Data Science & Analytics, Python
- First seen
- Jun 3, 2026
Questions
What does the pytorch-lightning skill help an agent do?
The pytorch-lightning skill guides an agent to organize PyTorch code into LightningModules and configure Trainers for multi-GPU or TPU training. It also covers data pipelines, callbacks, logging to Weights and Biases, TensorBoard or MLflow, and distributed training with DDP, FSDP or DeepSpeed.
How do I install the pytorch-lightning skill?
Run npx -y skills add k-dense-ai/scientific-agent-skills --skill pytorch-lightning -y in your project. Once installed, pytorch-lightning lets the agent write and run neural network training code that uses the lightning package.
What does pytorch-lightning need before it works?
pytorch-lightning requires Python 3.10 or newer with the lightning 2.6.6 package and a compatible PyTorch version. CUDA, DDP, FSDP and DeepSpeed runs need suitable GPU hardware, and online loggers need their own packages and credentials.
Where does pytorch-lightning sit in its category?
pytorch-lightning is listed under Data Science & Analytics on Claude Marketplaces. The other skills in that category include azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation.
More from k-dense-ai/scientific-agent-skills
All 132- Networkx2.3K
- Aeon2.3K
- Transformers2.3K
- Shap2.3K
- Pyzotero2.3K
- Generate Image2.3K
- Infographics2.3K
- Matlab2.3K
- Dask2.3K
- Market Research Reports2.3K
- Get Available Resources2.3K
- Optimize For Gpu2.2K
- Pymc2.2K
- Venue Templates2.2K
- Research Lookup2.2K
- Umap Learn2.2K
- Parallel Web2.2K
- Scikit Survival2.2K
- Biopython2.2K
- Open Notebook2.2K
- Torch Geometric2.2K
- Timesfm Forecasting2.2K
- Geopandas2.2K
- Stable Baselines32.2K
Similar to Pytorch Lightning
More Data Science & Analyticsdistributed-trainingPluginOrchestra-Research/AI-Research-SKILLs14.8K starsMulti-GPU and multi-node training including DeepSpeed, PyTorch FSDP, Accelerate, Megatron-Core, PyTorch Lightning, and Ray Train. Use when training large models
huggingface-accelerateSkillorchestra-research/ai-research-skills1.1K installsUnified distributed training API that adds multi-GPU support to PyTorch scripts in about four lines.
deep-learningSkillmindrally/skills995 installsPractical guidelines for neural network design, training, multi-GPU scaling, and memory optimization in PyTorch-style workflows.
pytorch-patternsSkillaffaan-m/ecc12.3K installsPyTorch training, architecture, and data loading patterns covering device handling, reproducibility, and efficient pipelines.
pytorchSkillmindrally/skills884 installsDeep learning guidance for PyTorch models covering transformers, diffusion pipelines, and GPU training optimization.
pytorch-fsdpSkilldavila7/claude-code-templates395 installsExpert guidance for PyTorch FSDP training covering parameter sharding, mixed precision, CPU offloading, and FSDP2.