Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .actions/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def _load_aggregate_requirements(req_dir: str = "requirements", freeze_requireme
load_requirements(d, unfreeze="none" if freeze_requirements else "major")
for d in glob.glob(os.path.join(req_dir, "*"))
# skip empty folder as git artefacts, and resolving Will's special issue
if os.path.isdir(d) and len(glob.glob(os.path.join(d, "*"))) > 0 and "__pycache__" not in d
if os.path.isdir(d) and len(glob.glob(os.path.join(d, "*"))) > 0 and not os.path.basename(d).startswith("_")
]
if not requires:
return
Expand Down
8 changes: 6 additions & 2 deletions .azure/gpu-tests-pytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,17 @@ jobs:
- bash: pip install -e .[extra,test,examples] -U --find-links ${TORCH_URL}
displayName: 'Install package & dependencies'

- bash: pip uninstall -y -r requirements/pytorch/strategies.txt
- bash: |
pip uninstall -y -r requirements/pytorch/strategies.txt \
-r requirements/_integrations/strategies.txt
condition: ne(variables['scope'], 'strategies')
displayName: 'Uninstall strategies'

- bash: |
set -e
pip install -r requirements/pytorch/strategies.txt --find-links ${TORCH_URL}
pip install -r requirements/pytorch/strategies.txt \
-r requirements/_integrations/strategies.txt \
--find-links ${TORCH_URL}
python requirements/pytorch/check-avail-strategies.py
condition: eq(variables['scope'], 'strategies')
displayName: 'Install strategies'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ci-tests-pytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ jobs:

- name: Install package & dependencies
run: |
pip install -e .[extra,test] "pytest-timeout" -U -f ${TORCH_URL} ${TORCH_PREINSTALL} -f ${PYPI_CACHE} --prefer-binary
pip install -q pip -U
pip install .[extra,test] -U "pytest-timeout" \
-f ${TORCH_URL} ${TORCH_PREINSTALL} -f ${PYPI_CACHE} --prefer-binary
pip list
- name: Dump handy wheels
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
Expand Down Expand Up @@ -145,6 +147,9 @@ jobs:
--source_import="lightning.fabric,lightning.pytorch" \
--target_import="lightning_fabric,pytorch_lightning"

- name: Prevent using raw source
run: rm -rf src/

- name: Testing Warnings
working-directory: tests/tests_pytorch
# needs to run outside of `pytest`
Expand Down
5 changes: 5 additions & 0 deletions requirements/_integrations/strategies.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment

lightning-colossalai >=0.1.0
lightning-bagua >=0.1.0
2 changes: 0 additions & 2 deletions requirements/pytorch/strategies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment

deepspeed>=0.6.0, <0.8.0 # TODO: Include 0.8.x after https://github.com/microsoft/DeepSpeed/commit/b587c7e85470329ac25df7c7c2521ff9b2833db7 gets released
lightning-colossalai>=0.1.0dev1
lightning-bagua>=0.1.0rc2
2 changes: 1 addition & 1 deletion src/lightning/__setup__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _prepare_extras() -> Dict[str, Any]:
extras = {
f"{p.parent.name}-{p.stem}": _ASSISTANT.load_requirements(file_name=p.name, path_dir=p.parent, **common_args)
for p in req_files
if p.name not in ("docs.txt", "devel.txt", "base.txt")
if p.name not in ("docs.txt", "devel.txt", "base.txt") and not p.parts[-2].startswith("_")
}
for extra in list(extras):
name = "-".join(extra.split("-")[1:])
Expand Down