Installation¶
Install Eggroll Trainer using your preferred package manager.
Using pip¶
Using uv¶
From Source (Development)¶
For development and contributions, clone the repository:
git clone https://github.com/JacobFV/eggroll-trainer.git
cd eggroll-trainer
uv sync
# or
pip install -e .
See the Contributing Guide for more details.
Optional Dependencies¶
Examples with Plotting¶
For examples that generate plots (like mnist_comparison.py):
Development Dependencies¶
For development and testing:
Verify Installation¶
Test that everything works:
import torch
from eggroll_trainer import EGGROLLTrainer, ESTrainer, VanillaESTrainer
print("Eggroll Trainer installed successfully!")
Platform-Specific Notes¶
macOS (M3/Apple Silicon)¶
PyTorch should automatically detect and use MPS (Metal Performance Shaders) for GPU acceleration. If you encounter issues, ensure you have the latest PyTorch version:
CUDA Support¶
For CUDA support, install PyTorch with CUDA:
Troubleshooting¶
Import Errors¶
If you see import errors, ensure you're using Python 3.12+:
PyTorch Not Found¶
Install PyTorch separately if needed:
Next Steps¶
Once installed, check out the Quick Start Guide to run your first example!