ashleve/lightning-hydra-template

PyTorch Lightning + Hydra. A very user-friendly template for ML experimentation. ⚡🔥⚡

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 45 minutes ago
Added to GitGenius on September 12th, 2026
Created on November 4th, 2020
Open Issues & Pull Requests: 82 (+0)
GitHub issues: Enabled
Number of forks: 755
Total Stargazers: 5,345 (+0)
Total Subscribers: 30 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.2 days
Mean response time: 141.3 days
90th percentile: 974.2 days
Tracked items: 7

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 8
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 929 days
Stale 30+ days: 8
Stale 90+ days: 8

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • question (2)
  • bug (1)
  • documentation (1)
  • enhancement (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Lightning-Hydra-Template is a project template for PyTorch deep learning research that combines PyTorch Lightning and Hydra to streamline experimentation and configuration management.

The template addresses the challenge of organizing machine learning projects by reducing boilerplate code and providing a structured approach to model training. It uses PyTorch Lightning to wrap PyTorch code with high-level training abstractions and Hydra to manage complex configurations through hierarchical composition and command-line overrides. This combination enables rapid experimentation where hyperparameters and experiment variants can be specified through configuration files and command-line arguments without modifying code.

The template suits researchers and practitioners prototyping models on prepared datasets who value quick iteration and reproducibility. It works well for straightforward supervised learning workflows with PyTorch Lightning's standard training loop. However, it is not designed for complex data engineering pipelines with interdependent stages, and adapting it to non-standard workflows like Lightning Fabric requires additional effort. The template also does not support resuming Hydra-based multiruns or hyperparameter searches. It includes integrations with multiple experiment tracking systems including Tensorboard, Weights & Biases, Neptune, Comet, and MLFlow, along with utilities for hyperparameter search via Hydra plugins like Optuna Sweeper, smoke testing, and continuous integration through GitHub Actions.

Development activity shows ongoing maintenance with known issues tracked in the repository, though the template's reliance on rapidly evolving dependencies means compatibility problems occasionally arise. The project is maintained as an unofficial community effort and includes thorough code comments intended to serve as a learning resource alongside its practical utility as a starting point for new projects.