Skip to content

Commit d04b163

Browse files
committed
update README on development; add editor config
1 parent ecaab24 commit d04b163

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*.py]
4+
charset = utf-8
5+
trim_trailing_whitespace = true
6+
end_of_line = lf
7+
insert_final_newline = true
8+
indent_style = space
9+
indent_size = 4
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
- Python >= 3.8
33
- PyTorch >= 1.12 (PyTorch 2.0 not tested)
44
- `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.
65
- 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`.
76

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+
814
## Known Problems
915
- Validation/testing using resumed checkpoints have iteration=0, will be problematic if some settings are step-dependent.
1016
- Gradients of Vanilla MLP parameters are empty if autocast is enabled in AMP (temporarily fixed by disabling autocast).

0 commit comments

Comments
 (0)