Skip to content

Commit 446aab5

Browse files
jackapbutlerkjappelbaumpre-commit-ci[bot]
authored
docs: add submodule advice (#105)
Co-authored-by: Kevin M Jablonka <32935233+kjappelbaum@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 7f82491 commit 446aab5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,26 @@ and log-in to `wandb` with your API key per [here](https://docs.wandb.ai/quickst
6262
### Adding a new dataset (to the model training pipline)
6363

6464
We specify datasets by creating a new function [here](src/chemnlp/data/hf_datasets.py) which is named per the dataset on Hugging Face. At present the function must accept a tokenizer and return back the tokenized train and validation datasets.
65+
66+
### Installing submodules
67+
68+
In order to ensure you also clone and install the required submodules (i.e. gpt-neox) you will have to do one of the following;
69+
70+
- Recursively clone the submodule from GitHub
71+
72+
```
73+
# using ssh (if you have your ssh key on GitHub)
74+
git clone --recurse-submodules --remote-submodules git@github.com:OpenBioML/chemnlp.git
75+
76+
# using https (if you use personal access token)
77+
git clone --recurse-submodules --remote-submodules [git@github.com:OpenBioML/chemnlp.git ](https://github.com/OpenBioML/chemnlp.git)
78+
```
79+
80+
> This will automatically initialize and update each submodule in the repository, including nested submodules if any of the submodules in the repository have submodules themselve
81+
82+
- Initialise and install the submodule after cloning
83+
84+
```
85+
git submodule init # registers submodule
86+
git submodule update # clones and updates submodule
87+
```

0 commit comments

Comments
 (0)