Development Setup¶
Quick Start
If you're just getting started with TorchEBM development, this guide will help you set up your environment properly.
Prerequisites¶
Before setting up the TorchEBM development environment, make sure you have the following:
- 
Python 3.9+ 
 TorchEBM requires Python 3.9 or higher. 
- 
Git 
 You'll need Git for version control. 
- 
GitHub Account 
 For contributing to the repository. 
Setting Up Your Environment¶
1. Fork and Clone the Repository¶
- Navigate to TorchEBM repository
- Click the Fork button in the top-right corner
- Clone your fork to your local machine:
2. Set Up Virtual Environment¶
It's recommended to use a virtual environment to manage dependencies:
3. Install Development Dependencies¶
This will install TorchEBM in development mode along with all development dependencies.
Development Workflow¶
5. Push Changes and Create a Pull Request¶
Then go to GitHub and create a pull request.
Documentation Development¶
To preview documentation locally:
This will start a local server at http://127.0.0.1:8000/.
Common Issues¶
Missing CUDA?
If you're developing CUDA extensions, ensure you have the right CUDA toolkit installed:
Next Steps¶
- 
Code Style 
 Learn about our coding standards. 
- 
Testing Guide 
 Learn how to write effective tests. 
- 
API Design 
 Understand our API design principles.