Skip to content

Commit

Permalink
Had to swtich to conda env override for gantry due to cu118 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jakep-allenai committed Sep 23, 2024
1 parent cb0b97a commit 1cf3cd8
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 36 deletions.
58 changes: 58 additions & 0 deletions gantry-environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: my_environment
channels:
- defaults
- conda-forge
- pytorch
- nvidia

dependencies:
- python=3.10
- pip
- pytorch
- torchvision
- accelerate
- datasets
- peft
- wandb
- omegaconf
- s3fs
- cached-path
- smart_open
- Pillow
- setuptools
- wheel
- packaging
- pytest
- pytest-cov
- pytest-sphinx
- mypy>=1.0,<1.5
- black>=23.0,<24.0
- isort>=5.12,<5.13
- twine>=1.11.0
- build
- Sphinx>=4.3.0,<7.1.0
- ruff
- furo==2023.7.26
- myst-parser>=1.0,<2.1
- sphinx-copybutton==0.5.2
- sphinx-autobuild==2021.3.14
- sphinx-autodoc-typehints==1.23.3

# CUDA 11.8 specific installation for PyTorch
- cudatoolkit=11.8

# Additional dependencies to be installed via pip
pip:
- pymupdf
- pypdf
- pypdfium2
- transformers @ git+https://github.com/huggingface/transformers.git@f9b44097261270377199bb0fcbceb01fd9f7d0c0
- lingua-language-detector
- necessary

# CUDA PyTorch package with index URL
- pip:
- --index-url https://download.pytorch.org/whl/cu118
- torch
- torchvision

35 changes: 0 additions & 35 deletions gantry-requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/qwen2vl-2b-gantry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ gantry run \
--workspace ai2/oe-data-pdf \
--beaker-image 'lucas/refine-axelot-vllm' \
--venv 'base' \
--pip gantry-requirements.txt \
--conda gantry-environment.yaml \
--priority normal \
--gpus 4 \
--preemptible \
Expand Down

0 comments on commit 1cf3cd8

Please sign in to comment.