Agent skill · Data & Analytics

pytorch-lightning

Deep learning framework (PyTorch Lightning / lightning package). Organize PyTorch code into LightningModules, configure Trainers for multi-GPU/TPU, implement data pipelines, callbacks, logging (W&B, TensorBoard, MLflow), distributed training (DDP, FSDP, DeepSpeed), for scalable neural network training.

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codecan modify filesships scriptsMIT
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill pytorch-lightning --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 11
SKILL.md size: 7 KB
Bundled scripts: yes
Version: 1.1
Allowed tools: ReadWriteEditBash
Requires: Requires Python 3.10+ and lightning 2.6+ (or pytorch-lightning 2.6+). GPU training needs CUDA-capable PyTorch. Optional…
Path: skills/pytorch-lightning/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 32,619
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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. **Current upstream:** lightning 2.6.4 (PyPI, May 2026). Docs: [lightning.ai/docs/pytorch/stable](https://lightning.ai/docs/pytorch/stable/). Use `import lightning as L` (the `pytorch-lightning` package name still installs the same library). ## Installation ```bash uv pip install lightning ``` Optional extras: ```bash uv pip install lightning[extra] # loggers, strategies, etc. uv pip install wandb mlflow # specific loggers as needed ``` ## When to Use This Skill This skill should be used when: - Building, training, or deploying neural networks using PyTorch Lightning - Organizing PyTorch code into LightningModules - Configuring Trainers for multi-GPU/TPU training - Implementing data pipelines with LightningDataModules - Working with callbacks, logging, and distributed training strategies (DDP, FSDP, DeepSpeed) - Structuring deep learning projects professionally ## Cor

What's inside
Steps it walks through
  1. Overview
  2. Installation
  3. When to Use This Skill
  4. Core Capabilities
  5. 1. LightningModule - Model Definition
  6. 2. Trainer - Training Automation
  7. 3. LightningDataModule - Data Pipeline Organization
  8. 4. Callbacks - Extensible Training Logic
  9. 5. Logging - Experiment Tracking
  10. 6. Distributed Training - Scale to Multiple Devices
  11. 7. Best Practices
  12. Quick Workflow
  13. Resources
  14. scripts/
Ships with 10 files
  • references/best_practices.md
  • references/callbacks.md
  • references/data_module.md
  • references/distributed_training.md
  • references/lightning_module.md
  • references/logging.md
  • references/trainer.md
  • scripts/quick_trainer_setup.py
  • scripts/template_datamodule.py
  • scripts/template_lightning_module.py
Commands it runs
uv pip install lightning
uv pip install lightning[extra]    # loggers, strategies, etc.
uv pip install wandb mlflow        # specific loggers as needed
More from scientific-agent-skills
All skills →
About this skill
What does the pytorch-lightning skill do?

Deep learning framework (PyTorch Lightning / lightning package). Organize PyTorch code into LightningModules, configure Trainers for multi-GPU/TPU, implement data pipelines, callbacks, logging (W&B, TensorBoard, MLflow), distributed training (DDP, FSDP, DeepSpeed), for scalable neural network training.

How do I install it?

Run `npx skills add K-Dense-AI/scientific-agent-skills --skill pytorch-lightning --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From K-Dense-AI/scientific-agent-skills, a repository with 32,619 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going