# miracleyoo/pytorch-lightning-template

An easy/swift-to-adapt PyTorch-Lighting template. 套壳模板，简单易用，稍改原来Pytorch代码，即可适配Lightning。You can translate your previous Pytorch code much easier using this template, and keep your freedom to edit all the functions as well. Big-project-friendly as well. No need to rewrite your config in hydra.

Repository: https://github.com/miracleyoo/pytorch-lightning-template
Canonical: https://ross.abutalabs.com/products/pytorch-lightning-template
Language: Jupyter Notebook
License: Apache-2.0
License Family: permissive
Topics: pytorch, pytorch-lightning, pytorch-lightning-template, best-practices, config, deep-learning, template
Last push: 2023-08-06T19:43:34+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2010, "days_push": 1123, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1541, forks 188 (observed 2026-08-28T04:05:00.637565+00:00)

## What it is
A PyTorch Lightning project template that lets developers adapt existing PyTorch code to Lightning with minimal changes while keeping full freedom to edit functions. It provides specialized templates (e.g., classification, super-resolution) with a structured layout separating data and model code, without requiring Hydra-style configs.

## Use cases
- convert my existing pytorch code to pytorch lightning
- start a new deep learning project with a clean structure
- organize multiple models and datasets in one lightning project
- avoid rewriting configs in hydra for lightning projects
- find a pytorch lightning boilerplate for classification tasks
- set up a reusable training pipeline template

## When to choose
- you want to migrate existing PyTorch code to Lightning quickly
- you need a multi-model, multi-dataset project structure
- you prefer editable, plain-Python configs over Hydra/YAML
- you want task-specific starting templates like classification or super-resolution

## When to avoid
- you want a fully maintained library with package installation and releases
- you need templates for NLP, GAN, or speech tasks not yet included
- you prefer opinionated frameworks like Hydra-based Lightning templates
- you need guaranteed long-term support - the project updates sporadically

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: deep-learning, machine-learning, developer-tools, boilerplate
- domain: deep-learning, machine-learning, developer-tools, tutorials
- platform: python, cross-platform
- tags: pytorch, pytorch-lightning, project-template, boilerplate, config-management, best-practices

## Member repositories
- miracleyoo/pytorch-lightning-template (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:00.637565+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:30:48.493923+00:00, confidence not recorded.
  - readme: https://github.com/miracleyoo/pytorch-lightning-template (fetched 2026-08-28T04:05:00.637565+00:00, sha 7d407021c23c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
