You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,15 @@
2
2
- Python >= 3.8
3
3
- PyTorch >= 1.12 (PyTorch 2.0 not tested)
4
4
-`pip install -r requirements.txt` (change torch source url and version accroding to your CUDA version, requires torch>=1.12)
5
-
-`pip install -r requirements-dev.txt` for linters and formatters, set the default linter in vscode to mypy and run `pre-commit install` to install pre-commit hooks which will automatically reformat the files before commit.
6
5
- Accept the license on the model card of [DeepFloyd](https://huggingface.co/DeepFloyd/IF-I-XL-v1.0), and login in the huggingface hub by `huggingface-cli login`.
7
6
7
+
## Development
8
+
-`pip install -r requirements-dev.txt`
9
+
- Install editorconfig extension in VSCode.
10
+
- Set the default linter in VSCode to mypy to enable static type checking.
11
+
- Set the default formatter in VSCode to black. You could either manually format the document or let the editor format the document each time it is saved by setting `"editor.formatOnSave": true`.
12
+
- Run `pre-commit install` to install pre-commit hooks which will automatically format the files before commit.
13
+
8
14
## Known Problems
9
15
- Validation/testing using resumed checkpoints have iteration=0, will be problematic if some settings are step-dependent.
10
16
- Gradients of Vanilla MLP parameters are empty if autocast is enabled in AMP (temporarily fixed by disabling autocast).
0 commit comments