Skip to content

Commit 7835357

Browse files
committed
Update requirements.txt
1 parent 42786d3 commit 7835357

9 files changed

+68
-17
lines changed

INSTALLATION.md

+24-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,31 @@
1919
pip install -r requirements.txt
2020
```
2121

22-
### Additional Instructions for Optional Dependencies
22+
### Additional Instructions
2323

24-
- Install `apex` (optional, if you want to use `FusedRMSNorm`):
24+
- Install `flash-attn==2.3.6`:
25+
26+
```bash
27+
pip install flash-attn==2.3.6 --no-build-isolation
28+
```
29+
30+
Alternatively you can compile from source:
31+
32+
```bash
33+
git clone https://github.com/Dao-AILab/flash-attention.git
34+
cd flash-attention
35+
git checkout v2.3.6
36+
python setup.py install
37+
```
38+
39+
- Install `mmcv-full==1.6.2` (optional, for `segmentation`):
40+
41+
```bash
42+
pip install -U openmim
43+
mim install mmcv-full==1.6.2
44+
```
45+
46+
- Install `apex` (optional, for `segmentation`):
2547

2648
```bash
2749
git clone https://github.com/NVIDIA/apex.git

requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-r requirements/internvl_chat_training.txt
2-
-r requirements/internvl_chat_eval.txt
3-
-r requirements/internvl_chat_demo.txt
4-
-r requirements/internvl_chat_deploy.txt
1+
-r requirements/internvl_chat.txt
2+
-r requirements/streamlit_demo.txt
3+
-r requirements/classification.txt
4+
-r requirements/segmentation.txt

requirements/classification.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
gdown
2+
termcolor
3+
yacs

requirements/clip_benchmark.txt

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
open_clip_torch>=0.2.1
2+
opencv-python
3+
peft>=0.6.2
4+
protobuf
5+
pycocoevalcap
6+
pyyaml
7+
scikit-learn>=1.0,<2
8+
scikit-learn
9+
scipy
10+
task_adaptation
11+
tensorflow==2.11.0
12+
termcolor
13+
tqdm>=2
14+
transformers>=4.32.0
15+
webdataset>=0.2.31
16+
yacs

requirements/internvl_chat_training.txt renamed to requirements/internvl_chat.txt

+11
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,25 @@ deepspeed==0.10.0
55
einops==0.6.1
66
einops-exts==0.0.4
77
flash_attn==2.3.6
8+
huggingface_hub
89
imageio
10+
lmdeploy
11+
numpy
912
opencv-python
1013
orjson
1114
peft>=0.4.0
15+
pycocoevalcap
16+
pyyaml
17+
scikit-learn>=1.2.2
18+
scipy
1219
sentencepiece==0.1.99
20+
shortuuid
1321
tensorboardX
22+
termcolor
1423
timm==0.9.12
1524
tokenizers==0.15.1
1625
torch>=2
1726
torchvision>=0.15
27+
tqdm
1828
transformers==4.37.2
29+
yacs

requirements/internvl_chat_deploy.txt

-2
This file was deleted.

requirements/internvl_chat_eval.txt

-9
This file was deleted.

requirements/segmentation.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
future
2+
importlib_metadata
3+
mmcv-full==1.6.2
4+
mmsegmentation==0.30.0
5+
openmim
6+
ordered-set
7+
platformdirs
8+
tensorboard
9+
tomli
10+
yapf==0.40.1
File renamed without changes.

0 commit comments

Comments
 (0)