-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apply v2.0, Lightning-AI/pytorch-lightning@27cab24
- Loading branch information
Showing
1,534 changed files
with
103,775 additions
and
232,944 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Run this script from the project root. | ||
URL="https://pl-public-data.s3.amazonaws.com/legacy/checkpoints.zip" | ||
mkdir -p tests/legacy | ||
# wget is simpler but does not work on Windows | ||
python -c "from urllib.request import urlretrieve; urlretrieve('$URL', 'tests/legacy/checkpoints.zip')" | ||
ls -l tests/legacy/ | ||
|
||
unzip -o tests/legacy/checkpoints.zip -d tests/legacy/ | ||
ls -l tests/legacy/checkpoints/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
jsonargparse>=4.16.0 | ||
requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "_notebooks"] | ||
path = _notebooks | ||
url = https://github.com/PyTorchKorea/lightning-tutorials-kr.git | ||
branch = publication |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
_notebooks | ||
.azure | ||
.github | ||
.ipynb_checkpoints | ||
.pytest_cache | ||
.shared | ||
.storage | ||
.venv | ||
.vscode | ||
.git | ||
artifacts | ||
Datasets | ||
dist | ||
docs | ||
examples | ||
tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,38 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
.PHONY: test clean docs | ||
|
||
# You can set these variables from the command line. | ||
SPHINXOPTS = | ||
SPHINXBUILD = sphinx-build | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
# to imitate SLURM set only single node | ||
export SLURM_LOCALID=0 | ||
# assume you have installed need packages | ||
export SPHINX_MOCK_REQUIREMENTS=1 | ||
# install only Lightning Trainer packages | ||
export PACKAGE_NAME=pytorch | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -v | ||
clean: | ||
# clean all temp runs | ||
rm -rf $(shell find . -name "mlruns") | ||
rm -rf $(shell find . -name "lightning_log") | ||
rm -rf $(shell find . -name "lightning_logs") | ||
rm -rf _ckpt_* | ||
rm -rf .mypy_cache | ||
rm -rf .pytest_cache | ||
rm -rf ./docs/build | ||
rm -rf ./docs/source-fabric/api/generated | ||
rm -rf ./docs/source-pytorch/notebooks | ||
rm -rf ./docs/source-pytorch/generated | ||
rm -rf ./docs/source-pytorch/*/generated | ||
rm -rf ./docs/source-pytorch/api | ||
rm -rf ./docs/source-app/generated | ||
rm -rf ./docs/source-app/*/generated | ||
rm -rf build | ||
rm -rf dist | ||
rm -rf *.egg-info | ||
|
||
docs: | ||
make html | ||
echo "Build finished. The HTML pages are in $(BUILDDIR)/html." | ||
git submodule update --init --recursive # get Notebook submodule | ||
pip install -qq lightning # install (stable) Lightning from PyPI instead of src | ||
pip install -qq -r requirements/app/base.txt | ||
pip install -qq -r requirements/pytorch/docs.txt | ||
cd docs/source-pytorch && $(MAKE) html --jobs $(nproc) && cd ../../ | ||
|
||
.PHONY: all docs clean | ||
update: | ||
git submodule update --init --recursive --remote |
Oops, something went wrong.