Skip to content

Commit

Permalink
fix(github actions): pin torch version to 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
flxst committed Nov 12, 2024
1 parent 787099d commit da5862e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
sudo apt-get update
sudo apt-get install curl -y # required by coveralls
sudo apt-get install git -y
python -m pip install torch
python -m pip install torch~=2.4.1
python -m pip install --upgrade pip setuptools wheel
export FLASH_ATTENTION_SKIP_CUDA_BUILD=TRUE
python -m pip install -e .[tests]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Currently, the flash attention dependency cannot be installed without torch bein
Until the flash attention developers fix this, we have to run

```sh
pip install torch
pip install torch~=2.4.1
```
beforehand.

Expand All @@ -75,7 +75,7 @@ pip install -e .
To install Modalities via pip, run

```sh
pip install torch
pip install torch~=2.4.1
pip install modalities
```

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description = "Modalities, a PyTorch-native framework for distributed and reprod
readme = "README.md"
dependencies = [
"numpy<2.0",
"torch>=2.3",
"torch~=2.4.1",
"packaging",
"tqdm",
"pyyaml",
Expand Down

0 comments on commit da5862e

Please sign in to comment.