Skip to content

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
View on GitHub

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, and quick_trainer_setup.py plus per-topic reference docs
  • Pins Lightning 2.6.6 and requires explicit sync_dist=True for 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 -y

Installs 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

Similar to Pytorch Lightning

More Data Science & Analytics