Add environment setup files, devcontainer configuration, and GitHub Actions CI workflow #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds comprehensive environment setup infrastructure to make it easier for contributors and users to get started with the diffusion-evolution project.
What's Added
Environment Setup Files
environment.yml: Conda environment specification targeting Python 3.10 with dependencies managed via piprequirements.txt: Core ML and scientific computing packages (numpy, scipy, pandas, matplotlib, seaborn, scikit-learn, tqdm, pillow, pyyaml, omegaconf, hydra-core, einops, tensorboard)setup.sh: Flexible bash helper script that supports:cpu,cu118(CUDA 11.8),cu121(CUDA 12.1)--method,--cuda,--env-name,--helpNote: PyTorch is intentionally installed separately via the setup script (rather than in requirements.txt) to ensure the correct CUDA-compatible version is fetched based on your target environment.
GitHub Codespaces / devcontainer Support
.devcontainer/devcontainer.json: VS Code devcontainer configuration using the official Microsoft Miniconda image.devcontainer/postCreate.sh: Automatically runs setup after container creationCI/CD Infrastructure
.github/workflows/ci.yml: GitHub Actions workflow that:Documentation
README_SETUP.md: Comprehensive setup guide covering:Usage Examples
Quick start with conda (recommended for GPU work):
Quick start with pip + venv (CPU or explicit CUDA):
./setup.sh --method pip --cuda cpu source .venv/bin/activateVerify installation:
python -c "import torch; print('torch', torch.__version__, 'cuda available', torch.cuda.is_available())"Testing
The CI workflow has been tested via simulation:
Benefits
This infrastructure complements the existing
setup.pyfor package installation while providing a complete development environment setup workflow.Original prompt
Add a new branch
setup/pytorch-cu121that adds environment setup files, a Codespaces/devcontainer configuration, and a GitHub Actions CI workflow that runs smoke tests on CPU. Files to add (paths and exact contents):