Skip to content

Commit 5e23acd

Browse files
Jackmin801samsja
authored andcommitted
fix dependecies
1 parent b459953 commit 5e23acd

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,28 @@ source .venv/bin/activate
3030

3131
Install python dependencies:
3232
```bash
33+
# Hivemind
34+
cd hivemind_source
35+
pip install .
36+
cp build/lib/hivemind/proto/* hivemind/proto/.
37+
pip install -e ".[all]"
38+
cd ..
39+
# Requirements
3340
pip install -r requirements.txt
41+
# Others
42+
pip install --pre torchdata --index-url https://download.pytorch.org/whl/nightly/cpu
43+
pip install -e ./pydantic_config
44+
# OpenDiLoCo
3445
pip install .
3546
```
3647

48+
Optionally, you can install flash-attn to use Flash Attention 2.
49+
This requires your system to have cuda compiler set up.
50+
```
51+
# (Optional) flash-attn
52+
pip install flash-attn==2.5.8
53+
```
54+
3755
## Docker container
3856

3957
If you prefer to run your experiments in a reproduceable container, you can use our pre-built docker image containing the repository and pre-installed dependencies.
@@ -86,13 +104,13 @@ The [multiaddress](https://github.com/multiformats/multiaddr) strings listed aft
86104

87105
## Stopping hivemind runs
88106

89-
The current implementation of hivemind doesnt handle Ctrl+C keyboard interrupt well. You can stop the runs using `pkill`:
107+
The current implementation of hivemind doesn't handle Ctrl+C keyboard interrupt well. You can stop the runs using `pkill`:
90108
```bash
91109
pkill -f torchrun
92110
```
93111

94112
## Resuming from checkpoint
95-
To resume from checkpoint, you can pass the `--resume-from-checkpoint` argment to the training script. e.g.
113+
To resume from checkpoint, you can pass the `--resume-from-checkpoint` argument to the training script. e.g.
96114
```bash
97115
torchrun --nproc_per_node=8 \
98116
train_fsdp.py \

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ wandb==0.16.4
44
cyclopts>=2.6.1
55
fsspec[gcs]>=2024.3.1
66
torch==2.3.1
7-
flash-attn

0 commit comments

Comments
 (0)