Skip to content

Commit aedfa53

Browse files
committed
update pyproject.toml
1 parent eea4d85 commit aedfa53

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,11 @@ pip install -e .\[dev\]
148148

149149
# Install flash-attn after all dependencies are installed
150150
# Note: flash-attn will take a long time to compile, please be patient.
151-
pip install flash-attn -v
152-
# Try the following command if you encounter errors during installation
151+
# for bash
152+
pip install -e .[flash_attn]
153+
# for zsh
154+
pip install -e .\[flash_attn\]
155+
# Try the following command if you encounter errors during flash-attn installation
153156
# pip install flash-attn -v --no-build-isolation
154157
```
155158

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ dependencies = [
2525
"ray[default]>=2.45.0",
2626
"vllm==0.9.1",
2727
"tensordict==0.6.2",
28-
"flash-attn==2.8.0.post2",
2928
"wandb",
3029
"omegaconf",
3130
"sqlalchemy",
@@ -70,6 +69,10 @@ doc = [
7069
"myst-parser",
7170
]
7271

72+
flash_attn = [
73+
"flash-attn==2.8.0.post2"
74+
]
75+
7376
[tool.setuptools.packages.find]
7477
where = ["."]
7578
include = ["trinity*"]

0 commit comments

Comments
 (0)