Skip to content

πŸ“¦ Zero-config Deep Learning template with PyTorch Lightning, UV package manager, W&B tracking, and modern Python tooling πŸš€

License

Notifications You must be signed in to change notification settings

AtticusZeller/Pytorch-Lightning-uv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ§ͺ Pytorch Lightning UV Template

A modern Deep Learning experiment template with PyTorch Lightning

python pytorch lightning Ruff license PRs

Click on Use this template to initialize new repository.

✨ Features

  • πŸš€ UV Environment Management - Fast and efficient dependency management
  • 🎯 Typer CLI - Modern command line interface
  • βš™οΈ YAML Config - Flexible experiment configuration
  • πŸ”‹ Lightning Components
    • DataModule for clean data handling
    • Model with built-in training logic
    • Trainer with all the bells and whistles
  • πŸ“Š Weights & Biases Integration
    • Experiment tracking and visualization
    • Hyperparameter optimization with sweeps
    • Dataset analysis and exploration
  • 🎨 Clean Project Structure
    • Modular and maintainable codebase
    • Easy to extend and customize

πŸ› οΈ Installation

uv sync --dev

πŸ“Š Dataset Analysis

Explore and analyze your dataset with built-in EDA tools:

python -m ailab.main -c config/resnet.yml --eda
πŸ“ˆ View EDA Example

EDA Example

πŸš€ Training

Start training your model with a single command:

python -m ailab.main -c config/resnet.yml --train
πŸ” View Training Details

Configuration Overview

Config Display

Training Progress

Training Step

Training Summary

Training Summary

W&B Dashboard

Wandb Dashboard

πŸ“Š Evaluation

Evaluate your trained model:

python -m ailab.main -c config/resnet.yml --eval --run-id n8fjnlyi
πŸ“Š View Evaluation Results

Evaluation Results

πŸŽ›οΈ Hyperparameter Tuning

Optimize your model with W&B Sweeps:

python -m ailab.main -c config/resnet.yml --sweep --sweep-config config/sweep/mlp.yml
πŸ“ˆ View Sweep Results

Sweep Results

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgements


Made with ❀️ for the ML community

About

πŸ“¦ Zero-config Deep Learning template with PyTorch Lightning, UV package manager, W&B tracking, and modern Python tooling πŸš€

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •