Skip to content

feature/comet-logger-update #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 147 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
07e802d
remove deprecated rest api key
japdubengsub Sep 3, 2024
075b581
do not end experiment automatically
japdubengsub Sep 3, 2024
be371cd
support nested hyperparams
japdubengsub Sep 3, 2024
7481e33
use special internal methods while logging
japdubengsub Sep 3, 2024
9d9c86f
linter fix
japdubengsub Sep 4, 2024
f2cd1b9
use comet_ml.start() instead of manual initialization
japdubengsub Sep 4, 2024
946c92e
update unit tests
japdubengsub Sep 5, 2024
bc3c9c5
docs: update ref to latest tutorials (#20262)
pl-ghost Sep 8, 2024
3a2a27d
add PR suggestions
japdubengsub Sep 9, 2024
05de746
fix mypy check
japdubengsub Sep 9, 2024
e1f9042
fix mypy check #2
japdubengsub Sep 10, 2024
d9c7480
update changelog
japdubengsub Sep 11, 2024
0fea284
Update CHANGELOG.md with PR number
japdubengsub Sep 11, 2024
7d2b859
docs: update ref to latest tutorials (#20284)
pl-ghost Sep 15, 2024
9490915
build(deps): bump Lightning-AI/utilities from 0.11.6 to 0.11.7 (#20267)
dependabot[bot] Sep 16, 2024
7eafab9
build(deps): bump peter-evans/create-pull-request from 6 to 7 (#20266)
dependabot[bot] Sep 16, 2024
48279a7
Update favicon to match Lightning AI app consistency (#20290)
EmilieLny Sep 20, 2024
beb8d52
use ` notation
japdubengsub Sep 25, 2024
5ab3662
enable keyword arguments only
japdubengsub Sep 25, 2024
036a2eb
fix linter warning
japdubengsub Sep 25, 2024
e452fe8
fix(ci): update for breaking change with upload/download (#20304)
Borda Sep 26, 2024
d1ca3c6
fix(tests): update tests after torch 2.4.1 (#20302)
Borda Sep 26, 2024
70f188b
docs: fix broken links to W&B (#20298)
Borda Sep 26, 2024
5be58f6
docs: fix a typo of precision (#20252)
vincentme Sep 27, 2024
474bdd0
Make RichProgressBar visible for both light and dark background (#20260)
tshu-w Sep 30, 2024
66508ff
docs: add note for `TQDMProgressBar` (#20198)
NishantDahal Sep 30, 2024
49722b1
Merge branch 'master' into feature/comet-logger-update
japdubengsub Sep 30, 2024
a804240
fix unit tests
japdubengsub Sep 30, 2024
cb2ce52
add support of old style "experiment_name" argument
japdubengsub Oct 2, 2024
5dea36c
update BitsandBytes version (#20313)
ali-alshaar7 Oct 2, 2024
caab338
fix linter warning
japdubengsub Oct 2, 2024
5c01290
remove type hints from docstrings
japdubengsub Oct 4, 2024
06a8028
revert back default values in docstring examples
japdubengsub Oct 8, 2024
467378d
flatten nested params
japdubengsub Oct 8, 2024
512d763
fix unit test mock issue
japdubengsub Oct 8, 2024
a785341
fix cli arguments unit test
japdubengsub Oct 8, 2024
8ad3e29
Decoupled checkpoint artifact path from model artifact path (#20325)
pete-mcelroy Oct 8, 2024
ad2d319
add unit tests for public/double underscore methods
japdubengsub Oct 10, 2024
8108320
Merge branch 'master' into feature/comet-logger-update
japdubengsub Oct 10, 2024
af19dda
fix(lint): emergency bump `docformatter` (#20352)
Borda Oct 21, 2024
0e1e14f
docs: fix removed ref to `deepspeed.initialize` (#20353)
Borda Oct 21, 2024
6f86497
docs: fix pytorch version typo in upgrade/from_2_0 (#20333)
wujian752 Oct 21, 2024
8c5fc89
build(deps): bump Lightning-AI/utilities from 0.11.7 to 0.11.8 (#20354)
dependabot[bot] Oct 21, 2024
2110a39
docs: update ref to latest tutorials (#20322)
pl-ghost Oct 21, 2024
06a8d5b
Update version.info to `2.5.0.dev` (#20316)
rasbt Oct 21, 2024
59d7384
Merge branch 'master' into feature/comet-logger-update
Lothiraldan Oct 23, 2024
897b2af
docs: update ref to latest tutorials (#20387)
pl-ghost Nov 3, 2024
3627c5b
ci: bump deprecated mac 12 to 13 (#20393)
Borda Nov 4, 2024
73c4773
Merge branch 'master' into feature/comet-logger-update
Lothiraldan Nov 5, 2024
61a403a
bump: Torch `2.5` (#20351)
Borda Nov 12, 2024
8ee6e04
Merge branch 'master' into feature/comet-logger-update
Lothiraldan Nov 12, 2024
b0aa504
docs: fix incorrect link in expert level up (#20408)
durandtibo Nov 12, 2024
7038b8d
fix: correct the positional encoding of Transformer in pytorch examples
Galaxy-Husky Aug 15, 2024
4ba9bf2
Merge branch 'master' into feature/comet-logger-update
Lothiraldan Nov 13, 2024
9358898
Ensure restarting from checkpoints leads to consistent internal count…
lantiga Nov 13, 2024
1f2d7a1
Add rtx 4080 super to chips dictionary (#20285)
kazuar Nov 13, 2024
bd5866b
fix batchsampler does not work correctly (#20327)
dadwadw233 Nov 13, 2024
bfe3e8a
Change LightningCLI tests to account for future fix in jsonargparse (…
mauvilsa Nov 13, 2024
5756c81
bump all macos-13 to -14 (#20415)
t-vi Nov 13, 2024
875cfbd
ci: update specific configs to latest (#20416)
Borda Nov 13, 2024
cae3335
fix: Incorrect URI Prefix Stripping in MLFlowLogger (#20365)
awindmann Nov 13, 2024
f5b513d
temporarily disable tpu from required checks (#20417)
t-vi Nov 13, 2024
e1b172c
Profile `Trainer.save_checkpoint` (#20405)
EricCousineau-TRI Nov 13, 2024
20d19d2
Remove `List[int]` as input type for Trainer when `accelerator="cpu"`…
chualanagit Nov 13, 2024
cd2bd3c
Fix configure_optimizers example (#20420)
chualanagit Nov 14, 2024
c110f4f
Allow callbacks to be restored not just during training (#20403)
chualanagit Nov 14, 2024
f11232b
Merge branch 'master' into feature/comet-logger-update
alexkuzmik Nov 17, 2024
173cb8c
build(deps): bump codecov/codecov-action from 4 to 5 (#20427)
dependabot[bot] Nov 18, 2024
8cf185a
fix: use standalone tests' exit code (#20430)
Borda Nov 19, 2024
28d3afd
update links (#20431)
t-vi Nov 19, 2024
8ce5287
Update CODEOWNERS (#20433)
lantiga Nov 20, 2024
045f1bf
build(deps): bump Lightning-AI/utilities from 0.11.8 to 0.11.9 (#20444)
dependabot[bot] Nov 25, 2024
1e88899
bump python 3.9+ (#20413)
Borda Nov 25, 2024
0afd4e1
Replace `using_pjrt()` xla runtime `device_type()` check with in xla.…
byi8220 Nov 25, 2024
75d7357
Proposal(CLI): after_instantiate_classes hook (#20401)
AlessandroW Nov 25, 2024
7358aef
Merge branch 'master' into feature/comet-logger-update
japdubengsub Nov 25, 2024
27bdbcf
fix linter warning
japdubengsub Nov 25, 2024
1f4a77c
improve importing demos (#20446)
Borda Nov 25, 2024
29c0396
Seed NumPy using `np.random.SeedSequence()` in `pl_worker_init_functi…
amorehead Nov 25, 2024
333d1cf
Update governance (#20448)
lantiga Nov 25, 2024
87565cb
FP8 + FSDP2 + torch.compile examples for PyTorch Lightning and Fabric…
lantiga Nov 26, 2024
13b74f7
make plugin type check more flexible (#20186)
jedyang97 Nov 26, 2024
be608fa
Make plugin type check more flexible (Fabric) (#20452)
lantiga Nov 26, 2024
dc048b1
Merge branch 'master' into feature/comet-logger-update
Lothiraldan Dec 4, 2024
8892b2c
Temporarily pin Python at 3.12.7 to avoid jsonargparse issue in CI (#…
lantiga Dec 8, 2024
c09fc66
docs: update ref to latest tutorials (#20475)
pl-ghost Dec 8, 2024
38971a0
Patch jsonargparse for Python >= 3.12.8 (#20479)
lantiga Dec 9, 2024
caa9e1e
Remove deprecated distutils (#20481)
lantiga Dec 9, 2024
de7c28a
Remove badge from README (#20482)
lantiga Dec 9, 2024
6b88ddc
Code-style changes via pre-commit (#20483)
Andrei-Aksionov Dec 9, 2024
64d0d02
Fix TypeError in configure_optimizers when running with ReduceLROnPla…
LukasSalchow Dec 10, 2024
ca59e4e
Configure optimizer typing fix follow-up (#20486)
lantiga Dec 10, 2024
1c4612e
Add doc for TBPTT (#20422)
chualanagit Dec 10, 2024
9983f3a
Add timeout to DeepSpeedStrategy (#20474)
jedyang97 Dec 10, 2024
b709985
Install setuptools via pip in base Docker image (#20487)
lantiga Dec 10, 2024
5495204
Pin setuptools in release container (#20488)
lantiga Dec 10, 2024
030f36b
Pin setuptools in GPU tests (#20489)
lantiga Dec 10, 2024
30545d6
Update checkpointing documentation to mark resume_from_checkpoint as …
WangYue0000 Dec 10, 2024
601c060
Add `convert_module` to FSDP (#20323)
tshu-w Dec 10, 2024
1e32ebf
Fix UnboundLocalError when using the predict method with return_predi…
farhadrgh Dec 11, 2024
9709c64
Add str method to datamodule (#20301)
MrWhatZitToYaa Dec 11, 2024
60289d7
Force hook standalone tests to single device (#20491)
lantiga Dec 11, 2024
a9125c2
Fix LightningCLI failing when both module and data module save hyperp…
mauvilsa Dec 11, 2024
1129d4c
Add `step` parameter to `TensorBoardLogger.log_hyperparams` (#20176)
ringohoffman Dec 11, 2024
110d621
Bump to 2.5.0rc0 (#20493)
lantiga Dec 12, 2024
3c84f84
Merge branch 'master' into feature/comet-logger-update
Lothiraldan Dec 12, 2024
4c0eb3a
Update (ci): github action's artifact upgrade v4 (#20500)
alleeclark Dec 17, 2024
7e15ff5
Merge branch 'master' into feature/comet-logger-update
Lothiraldan Dec 18, 2024
0324a20
Prepare Lightning 2.5.0 release (#20505)
lantiga Dec 19, 2024
61a8391
docs: bump habana (#20506)
Borda Dec 19, 2024
f9babd1
ci: build docs once you prepare release (#20507)
Borda Dec 19, 2024
c45c3c9
docker: fix setting tags (#20504)
Borda Dec 20, 2024
52460d3
Revert breaking change in configure_optimizers return type (#20512)
lantiga Dec 20, 2024
58a749a
Allow batch sampler to not have a .sampler attribute (#20514)
lantiga Dec 21, 2024
4337f7f
Revert "Patch jsonargparse for Python >= 3.12.8" (#20513)
lantiga Dec 21, 2024
9177ec0
Minor correction release `2.5.0.post0` (#20515)
lantiga Dec 21, 2024
afe5708
chore: remove redundant words in comment (#20510)
withbest Jan 6, 2025
efe311c
ci: update GroupCheck (#20529)
Borda Jan 6, 2025
ee7fa43
fix: swapped _R_co and _P to prevent type error. (#20508)
TresYap Jan 6, 2025
76f0c54
Fix TBPTT example (#20528)
lantiga Jan 6, 2025
1b26ac4
[pre-commit.ci] pre-commit suggestions (#20532)
pre-commit-ci[bot] Jan 7, 2025
8c2d263
docs: inject version selector to HTML docs (#20535)
Borda Jan 7, 2025
a944e77
test: flaky terminated with signal SIGABRT (#20537)
Borda Jan 9, 2025
b5eb92a
docs: fix typo in `converting.rst` (#20567)
adosar Feb 3, 2025
711abb4
Update twine to 6.0.1 for Python 3.13 (#20570)
lantiga Feb 3, 2025
ea59e40
build(deps): bump Lightning-AI/utilities from 0.11.9 to 0.12.0 (#20569)
dependabot[bot] Feb 3, 2025
d902516
fix: typos in documentation files (#20582)
maximevtush Feb 13, 2025
9afcc58
Remove fabric legacy CLI (#20588)
justusschock Feb 13, 2025
4eda5a0
docs: fix broken links (#20590)
Borda Feb 14, 2025
e7e579a
Merge branch 'master' into feature/comet-logger-update
Lothiraldan Feb 17, 2025
b313cd9
docs: Fix missing enumerate loop (#20592)
amorehead Feb 18, 2025
7bd9279
fix compatibility for pytest 8 (#20575)
haifeng-jin Feb 26, 2025
9ef355b
fix test compatibility as AdamW became subclass of Adam (#20574)
haifeng-jin Feb 26, 2025
1f5add3
Fix CSVLogger hyperparameter is logged at every write which increase …
duydl Feb 26, 2025
93d707d
fix: always call `WandbLogger.experiment` first in `_call_setup_hook`…
ringohoffman Mar 10, 2025
87108d8
Add checkpoint artifact path prefix to MLflow logger (#20538)
benglewis Mar 10, 2025
d15eeff
build(deps): bump Lightning-AI/utilities from 0.12.0 to 0.14.0 (#20631)
dependabot[bot] Mar 10, 2025
71793c6
test: flaky terminated with signal SIGABRT (#20621)
kaiyaok2 Mar 10, 2025
a3314d4
fix: Set `tensorboard`'s `global_step` as the default `wandb` x-axis …
ringohoffman Mar 10, 2025
5073ac1
Allow a custom parser class when using LightningCLI (#20596)
mauvilsa Mar 10, 2025
e8d70bc
ci: resolve standalone testing (#20633)
Borda Mar 11, 2025
02e2668
ci: aggregate checks with guardian (#20635)
Borda Mar 11, 2025
a0134d2
bump: testing with latest `torch` 2.6 (#20509)
Borda Mar 11, 2025
d7d3d9c
Merge remote-tracking branch 'upstream/master' into feature/comet-log…
japdubengsub Mar 12, 2025
e882468
fix linter warning
japdubengsub Mar 12, 2025
3bb1fbc
pass `online` arg to ExperimentConfig
japdubengsub Mar 12, 2025
9e7a3cc
fix comet logger test
japdubengsub Mar 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 25 additions & 5 deletions .actions/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
import shutil
import tempfile
import urllib.request
from collections.abc import Iterable, Iterator, Sequence
from itertools import chain
from os.path import dirname, isfile
from pathlib import Path
from typing import Any, Dict, Iterable, Iterator, List, Optional, Sequence, Tuple
from typing import Any, Optional

from packaging.requirements import Requirement
from packaging.version import Version
Expand Down Expand Up @@ -127,7 +128,7 @@ def _parse_requirements(lines: Iterable[str]) -> Iterator[_RequirementWithCommen
pip_argument = None


def load_requirements(path_dir: str, file_name: str = "base.txt", unfreeze: str = "all") -> List[str]:
def load_requirements(path_dir: str, file_name: str = "base.txt", unfreeze: str = "all") -> list[str]:
"""Loading requirements from a file.

>>> path_req = os.path.join(_PROJECT_ROOT, "requirements")
Expand Down Expand Up @@ -222,7 +223,7 @@ def _load_aggregate_requirements(req_dir: str = "requirements", freeze_requireme
fp.writelines([ln + os.linesep for ln in requires] + [os.linesep])


def _retrieve_files(directory: str, *ext: str) -> List[str]:
def _retrieve_files(directory: str, *ext: str) -> list[str]:
all_files = []
for root, _, files in os.walk(directory):
for fname in files:
Expand All @@ -232,7 +233,7 @@ def _retrieve_files(directory: str, *ext: str) -> List[str]:
return all_files


def _replace_imports(lines: List[str], mapping: List[Tuple[str, str]], lightning_by: str = "") -> List[str]:
def _replace_imports(lines: list[str], mapping: list[tuple[str, str]], lightning_by: str = "") -> list[str]:
"""Replace imports of standalone package to lightning.

>>> lns = [
Expand Down Expand Up @@ -320,7 +321,7 @@ def copy_replace_imports(
fo.writelines(lines)


def create_mirror_package(source_dir: str, package_mapping: Dict[str, str]) -> None:
def create_mirror_package(source_dir: str, package_mapping: dict[str, str]) -> None:
"""Create a mirror package with adjusted imports."""
# replace imports and copy the code
mapping = package_mapping.copy()
Expand Down Expand Up @@ -480,6 +481,25 @@ def convert_version2nightly(ver_file: str = "src/version.info") -> None:
with open(ver_file, "w") as fo:
fo.write(version + os.linesep)

@staticmethod
def generate_docker_tags(
release_version: str,
python_version: str,
torch_version: str,
cuda_version: str,
docker_project: str = "pytorchlightning/pytorch_lightning",
add_latest: bool = False,
) -> None:
"""Generate docker tags for the given versions."""
tags = [f"latest-py{python_version}-torch{torch_version}-cuda{cuda_version}"]
if release_version:
tags += [f"{release_version}-py{python_version}-torch{torch_version}-cuda{cuda_version}"]
if add_latest:
tags += ["latest"]

tags = [f"{docker_project}:{tag}" for tag in tags]
print(",".join(tags))


if __name__ == "__main__":
import jsonargparse
Expand Down
2 changes: 1 addition & 1 deletion .actions/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
jsonargparse >=4.16.0, <4.28.0
jsonargparse >=4.16.0, <=4.35.0
requests
packaging
7 changes: 5 additions & 2 deletions .azure/gpu-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
variables:
DEVICES: $( python -c 'print("$(Agent.Name)".split("_")[-1])' )
container:
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.12-torch2.4-cuda12.1.0"
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.12-torch2.5-cuda12.1.0"
options: "--gpus=all --shm-size=32g"
strategy:
matrix:
Expand Down Expand Up @@ -75,7 +75,9 @@ jobs:
pip list
displayName: "Image info & NVIDIA"

- bash: pip install -e .[dev] --find-links ${TORCH_URL}
- bash: |
pip install -e .[dev] --find-links ${TORCH_URL}
pip install setuptools==75.6.0 jsonargparse==4.35.0
env:
FREEZE_REQUIREMENTS: "1"
displayName: "Install package"
Expand Down Expand Up @@ -106,5 +108,6 @@ jobs:
condition: and(succeeded(), eq(variables['PACKAGE_NAME'], 'fabric'))
env:
PL_RUN_CUDA_TESTS: "1"
PL_RUN_STANDALONE_TESTS: "1"
displayName: "Testing: fabric standalone tasks"
timeoutInMinutes: "10"
29 changes: 18 additions & 11 deletions .azure/gpu-tests-fabric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,14 @@ jobs:
options: "--gpus=all --shm-size=2gb -v /var/tmp:/var/tmp"
strategy:
matrix:
"Fabric | oldest":
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.10-torch2.1-cuda12.1.1"
PACKAGE_NAME: "fabric"
"Fabric | latest":
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.11-torch2.3-cuda12.1.0"
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.12-torch2.6-cuda12.4.1"
PACKAGE_NAME: "fabric"
"Lightning | latest":
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.12-torch2.4-cuda12.1.0"
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.12-torch2.6-cuda12.4.1"
PACKAGE_NAME: "lightning"
workspace:
clean: all
Expand All @@ -77,9 +80,8 @@ jobs:
displayName: "set env. vars"
- bash: |
echo "##vso[task.setvariable variable=TORCH_URL]https://download.pytorch.org/whl/test/cu${CUDA_VERSION_MM}"
echo "##vso[task.setvariable variable=TORCHVISION_URL]https://download.pytorch.org/whl/test/cu124/torchvision-0.19.0%2Bcu124-cp${PYTHON_VERSION_MM}-cp${PYTHON_VERSION_MM}-linux_x86_64.whl"
condition: endsWith(variables['Agent.JobName'], 'future')
displayName: "set env. vars 4 future"
displayName: "extend env. vars 4 future"

- bash: |
echo $(DEVICES)
Expand All @@ -105,14 +107,17 @@ jobs:
displayName: "Adjust dependencies"

- bash: |
set -e
extra=$(python -c "print({'lightning': 'fabric-'}.get('$(PACKAGE_NAME)', ''))")
pip install -e ".[${extra}dev]" pytest-timeout -U --find-links="${TORCH_URL}" --find-links="${TORCHVISION_URL}"
pip install -e ".[${extra}dev]" pytest-timeout -U --extra-index-url="${TORCH_URL}"
pip install setuptools==75.6.0 jsonargparse==4.35.0
displayName: "Install package & dependencies"

- bash: |
set -e
python requirements/collect_env_details.py
python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu == 2, f'GPU: {mgpu}'"
python requirements/pytorch/check-avail-extras.py
python -c "import bitsandbytes"
displayName: "Env details"

Expand All @@ -134,15 +139,17 @@ jobs:
condition: and(succeeded(), eq(variables['PACKAGE_NAME'], 'fabric'))
displayName: "Adjust tests & examples"

- bash: python -m coverage run --source ${COVERAGE_SOURCE} -m pytest . -v --durations=50
workingDirectory: tests/tests_fabric/
- bash: python -m coverage run --source ${COVERAGE_SOURCE} -m pytest tests_fabric/ -v --durations=50
workingDirectory: tests/
displayName: "Testing: fabric standard"
timeoutInMinutes: "10"

- bash: bash ../run_standalone_tests.sh "."
workingDirectory: tests/tests_fabric/
- bash: |
wget https://raw.githubusercontent.com/Lightning-AI/utilities/main/scripts/run_standalone_tests.sh
bash ./run_standalone_tests.sh "tests_fabric"
workingDirectory: tests/
env:
PL_STANDALONE_TESTS_SOURCE: $(COVERAGE_SOURCE)
PL_RUN_STANDALONE_TESTS: "1"
displayName: "Testing: fabric standalone"
timeoutInMinutes: "10"

Expand All @@ -157,7 +164,7 @@ jobs:
./codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) \
--flags=gpu,pytest,${COVERAGE_SOURCE} --name="GPU-coverage" --env=linux,azure
ls -l
workingDirectory: tests/tests_fabric/
workingDirectory: tests/
displayName: "Statistics"

- script: |
Expand Down
26 changes: 16 additions & 10 deletions .azure/gpu-tests-pytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ jobs:
cancelTimeoutInMinutes: "2"
strategy:
matrix:
"PyTorch | oldest":
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.10-torch2.1-cuda12.1.1"
PACKAGE_NAME: "pytorch"
"PyTorch | latest":
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.11-torch2.3-cuda12.1.0"
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.12-torch2.6-cuda12.4.1"
PACKAGE_NAME: "pytorch"
"Lightning | latest":
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.12-torch2.4-cuda12.1.0"
image: "pytorchlightning/pytorch_lightning:base-cuda-py3.12-torch2.6-cuda12.4.1"
PACKAGE_NAME: "lightning"
pool: lit-rtx-3090
variables:
Expand Down Expand Up @@ -81,9 +84,8 @@ jobs:
displayName: "set env. vars"
- bash: |
echo "##vso[task.setvariable variable=TORCH_URL]https://download.pytorch.org/whl/test/cu${CUDA_VERSION_MM}"
echo "##vso[task.setvariable variable=TORCHVISION_URL]https://download.pytorch.org/whl/test/cu124/torchvision-0.19.0%2Bcu124-cp${PYTHON_VERSION_MM}-cp${PYTHON_VERSION_MM}-linux_x86_64.whl"
condition: endsWith(variables['Agent.JobName'], 'future')
displayName: "set env. vars 4 future"
displayName: "extend env. vars 4 future"

- bash: |
echo $(DEVICES)
Expand All @@ -109,8 +111,10 @@ jobs:
displayName: "Adjust dependencies"

- bash: |
set -e
extra=$(python -c "print({'lightning': 'pytorch-'}.get('$(PACKAGE_NAME)', ''))")
pip install -e ".[${extra}dev]" pytest-timeout -U --find-links="${TORCH_URL}" --find-links="${TORCHVISION_URL}"
pip install -e ".[${extra}dev]" pytest-timeout -U --extra-index-url="${TORCH_URL}"
pip install setuptools==75.6.0 jsonargparse==4.35.0
displayName: "Install package & dependencies"

- bash: pip uninstall -y lightning
Expand Down Expand Up @@ -155,16 +159,18 @@ jobs:
ls -l checkpoints/
displayName: "Get legacy checkpoints"

- bash: python -m coverage run --source ${COVERAGE_SOURCE} -m pytest -v --durations=50
workingDirectory: tests/tests_pytorch
- bash: python -m coverage run --source ${COVERAGE_SOURCE} -m pytest tests_pytorch/ -v --durations=50
workingDirectory: tests/
displayName: "Testing: PyTorch standard"
timeoutInMinutes: "35"

- bash: bash ../run_standalone_tests.sh "."
workingDirectory: tests/tests_pytorch
- bash: |
wget https://raw.githubusercontent.com/Lightning-AI/utilities/main/scripts/run_standalone_tests.sh
bash ./run_standalone_tests.sh "tests_pytorch"
workingDirectory: tests/
env:
PL_USE_MOCKED_MNIST: "1"
PL_STANDALONE_TESTS_SOURCE: $(COVERAGE_SOURCE)
PL_RUN_STANDALONE_TESTS: "1"
displayName: "Testing: PyTorch standalone tests"
timeoutInMinutes: "35"

Expand Down
31 changes: 4 additions & 27 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,16 @@
# the repo. Unless a later match takes precedence,
# @global-owner1 and @global-owner2 will be requested for
# review when someone opens a pull request.
* @lantiga @borda @tchaton @awaelchli @justusschock

# CI/CD and configs
/.actions/ @borda @ethanwharris @justusschock
/.github/ @borda @ethanwharris @justusschock
/.azure/ @borda @ethanwharris @justusschock
/dockers/ @borda @ethanwharris @justusschock
*.yml @borda @ethanwharris @justusschock
* @lantiga @borda @tchaton @justusschock @ethanwharris

# Docs
/docs/ @lantiga @borda @awaelchli
/docs/*/conf.py @borda @awaelchli
/.github/*.md @williamfalcon @lantiga @borda
/.github/ISSUE_TEMPLATE/ @borda @tchaton @awaelchli
/docs/source-fabric/conf.py @borda @awaelchli
/docs/source-fabric/index.rst @awaelchli @lantiga
/docs/source-pytorch/conf.py @borda @awaelchli
/docs/source-fabric/index.rst @williamfalcon @lantiga
/docs/source-pytorch/index.rst @williamfalcon @lantiga
/docs/source-pytorch/levels @williamfalcon @lantiga

# PyTorch Lightning
/src/lightning/pytorch @lantiga @borda @tchaton @awaelchli @justusschock

# Lightning Data
/src/lightning/data/ @tchaton @lantiga

# Lightning Fabric
/src/lightning/fabric @lantiga @borda @tchaton @awaelchli @justusschock

/.github/CODEOWNERS @williamfalcon
/SECURITY.md @williamfalcon @lantiga
/README.md @williamfalcon @lantiga
/setup.py @williamfalcon @borda
/src/pytorch_lightning/__about__.py @williamfalcon @borda
/src/lightning_fabric/__about__.py @williamfalcon @borda @awaelchli
/src/*/__setup__.py @borda @justusschock
/src/pytorch_lightning/__about__.py @williamfalcon @lantiga @borda
/src/lightning_fabric/__about__.py @williamfalcon @lantiga @borda
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ We welcome any useful contribution! For your convenience here's a recommended wo
1. Use tags in PR name for the following cases:

- **\[blocked by #<number>\]** if your work is dependent on other PRs.
- **\[wip\]** when you start to re-edit your work, mark it so no one will accidentally merge it in meantime.
- **[wip]** when you start to re-edit your work, mark it so no one will accidentally merge it in meantime.

### Question & Answer

#### How can I help/contribute?

All types of contributions are welcome - reporting bugs, fixing documentation, adding test cases, solving issues, and preparing bug fixes.
To get started with code contributions, look for issues marked with the label [good first issue](https://github.com/Lightning-AI/lightning/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) or chose something close to your domain with the label [help wanted](https://github.com/Lightning-AI/lightning/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22). Before coding, make sure that the issue description is clear and comment on the issue so that we can assign it to you (or simply self-assign if you can).
To get started with code contributions, look for issues marked with the label [good first issue](https://github.com/Lightning-AI/pytorch-lightning/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) or chose something close to your domain with the label [help wanted](https://github.com/Lightning-AI/pytorch-lightning/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22). Before coding, make sure that the issue description is clear and comment on the issue so that we can assign it to you (or simply self-assign if you can).

#### Is there a recommendation for branch names?

Expand Down
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/1_bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ body:
- "v2.2"
- "v2.3"
- "v2.4"
- "v2.5"
- "master"
validations:
required: true
Expand Down Expand Up @@ -91,8 +92,8 @@ body:
<summary>Current environment</summary>

```
#- PyTorch Lightning Version (e.g., 2.4.0):
#- PyTorch Version (e.g., 2.4):
#- PyTorch Lightning Version (e.g., 2.5.0):
#- PyTorch Version (e.g., 2.5):
#- Python version (e.g., 3.12):
#- OS (e.g., Linux):
#- CUDA/cuDNN version:
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/pip-wheels/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ runs:
run: |
# cat requirements.dump
pip wheel -r requirements.dump --prefer-binary \
--wheel-dir=.wheels \
-f ${{ inputs.torch-url }} -f ${{ inputs.wheel-dir }}
--wheel-dir=".wheels" \
--extra-index-url=${{ inputs.torch-url }} -f ${{ inputs.wheel-dir }}
ls -lh .wheels/
shell: bash

Expand Down
4 changes: 3 additions & 1 deletion .github/advanced-issue-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ policy:
keys: ["v2_3", "v2.3", "2.3.x"]
- name: "ver: 2.4.x"
keys: ["v2_4", "v2.4", "2.4.x"]
- name: "ver: 2.4.x"
- name: "ver: 2.5.x"
keys: ["v2_5", "v2.5", "2.5.x"]
- name: "ver: 2.5.x"
keys: ["master"]
Loading
Loading