Skip to content

Commit

Permalink
distinguish CPU and GPU setups
Browse files Browse the repository at this point in the history
  • Loading branch information
eringrant committed Sep 11, 2023
1 parent d454398 commit 1cee6ad
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Conda environment from `environment.yml` with Micromamba
- name: Install Conda environment from `environment-cpu.yml` with Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
environment-file: environment-cpu.yml
init-shell: >-
bash
zsh
Expand Down
28 changes: 28 additions & 0 deletions environment-cpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: TODO_package_name

channels:
- default
- conda-forge

dependencies:
- python>=3.11
- ipython
- ipykernel
- pre-commit

- numpy
- pandas>=2.0
- pytables
- submitit

# PyTorch:
# - pytorch::pytorch
# - pytorch::torchvision
# - huggingface::transformers

# JAX:
# - conda-forge::jax

- pip
- pip:
- -e .
37 changes: 37 additions & 0 deletions environment-gpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: TODO_package_name

channels:
- default
- conda-forge

dependencies:
- python>=3.11
- ipython
- ipykernel
- pre-commit

- numpy
- pandas>=2.0.0
- pytables
- submitit

# NOTE: The following requires a GPU node available
# at the time of creating the environment.
# CUDA:
# - conda-forge::cudatoolkit>=11.8
# - nvidia::cuda>=11.8

# PyTorch:
# - pytorch::pytorch-cuda>=12.0
# - pytorch::pytorch
# - pytorch::torchvision
# - huggingface::transformers

# JAX:
# - nvidia::cuda-nvcc>=12.0
# - conda-forge::jaxlib=*=*cuda*
# - conda-forge::jax

- pip
- pip:
- -e .
20 changes: 0 additions & 20 deletions environment.yml

This file was deleted.

0 comments on commit 1cee6ad

Please sign in to comment.