Skip to content

Commit 41f9d3a

Browse files
authored
Merge branch 'master' into fix/skipif-deepspeed
2 parents 244fb5e + 7323bb8 commit 41f9d3a

File tree

21 files changed

+205
-74
lines changed

21 files changed

+205
-74
lines changed

.github/workflows/_legacy-checkpoints.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- uses: actions/checkout@v5
5959

6060
- name: Install uv and set Python version
61-
uses: astral-sh/setup-uv@v6
61+
uses: astral-sh/setup-uv@v7
6262
with:
6363
python-version: "3.9"
6464
# TODO: Avoid activating environment like this

.github/workflows/ci-tests-fabric.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
- uses: actions/checkout@v5
7272

7373
- name: Install uv and set Python version
74-
uses: astral-sh/setup-uv@v6
74+
uses: astral-sh/setup-uv@v7
7575
with:
7676
python-version: ${{ matrix.config.python-version || '3.9' }}
7777
# TODO: Avoid activating environment like this

.github/workflows/ci-tests-pytorch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- uses: actions/checkout@v5
7777

7878
- name: Install uv and set Python version
79-
uses: astral-sh/setup-uv@v6
79+
uses: astral-sh/setup-uv@v7
8080
with:
8181
python-version: ${{ matrix.config.python-version || '3.9' }}
8282
# TODO: Avoid activating environment like this

.github/workflows/code-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/checkout@v5
3232

3333
- name: Install uv and set Python version
34-
uses: astral-sh/setup-uv@v6
34+
uses: astral-sh/setup-uv@v7
3535
with:
3636
python-version: "3.11"
3737
# TODO: Avoid activating environment like this

.github/workflows/docs-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
lfs: ${{ matrix.pkg-name == 'pytorch' }}
7474

7575
- name: Install uv and set Python version
76-
uses: astral-sh/setup-uv@v6
76+
uses: astral-sh/setup-uv@v7
7777
with:
7878
python-version: "3.10"
7979
# TODO: Avoid activating environment like this

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ci:
2323

2424
repos:
2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v5.0.0
26+
rev: v6.0.0
2727
hooks:
2828
- id: end-of-file-fixer
2929
- id: trailing-whitespace
@@ -70,7 +70,7 @@ repos:
7070
- id: sphinx-lint
7171

7272
- repo: https://github.com/astral-sh/ruff-pre-commit
73-
rev: v0.12.2
73+
rev: v0.13.3
7474
hooks:
7575
# try to fix what is possible
7676
- id: ruff
@@ -95,8 +95,8 @@ repos:
9595
README.md
9696
)$
9797
98-
- repo: https://github.com/pre-commit/mirrors-prettier
99-
rev: v3.1.0
98+
- repo: https://github.com/JoC0de/pre-commit-prettier
99+
rev: v3.6.2
100100
hooks:
101101
- id: prettier
102102
# https://prettier.io/docs/en/options.html#print-width

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ export SPHINX_MOCK_REQUIREMENTS=1
77
# install only Lightning Trainer packages
88
export PACKAGE_NAME=pytorch
99

10+
11+
# In Lightning Studio, the `lightning` package comes pre-installed.
12+
# Uninstall it first to ensure the editable install works correctly.
1013
setup:
14+
uv pip uninstall lightning pytorch-lightning lightning-fabric || true
1115
uv pip install -r requirements.txt \
1216
-r requirements/pytorch/base.txt \
1317
-r requirements/pytorch/test.txt \

README.md

Lines changed: 36 additions & 25 deletions
Large diffs are not rendered by default.

docs/source-fabric/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@
272272

273273
nitpick_ignore_regex = [
274274
("py:class", "typing.Self"),
275+
("py:data", "typing.Union"),
275276
# these are not generated with docs API ref
276277
("py:class", "lightning.fabric.utilities.types.Optimizable"),
277278
("py:class", "lightning.fabric.utilities.types.Steppable"),

docs/source-pytorch/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ def _load_py_module(name: str, location: str) -> ModuleType:
374374

375375
nitpick_ignore = [
376376
("py:class", "typing.Self"),
377+
("py:data", "typing.Union"),
377378
# missing in generated API
378379
("py:exc", "MisconfigurationException"),
379380
# TODO: generated list of all existing ATM, need to be fixed
@@ -648,6 +649,7 @@ def package_list_from_file(file):
648649
"https://medium.com/pytorch-lightning/quick-contribution-guide-86d977171b3a",
649650
"https://deepgenerativemodels.github.io/assets/slides/cs236_lecture11.pdf",
650651
"https://developer.habana.ai", # returns 403 error but redirects to intel.com documentation
652+
"https://www.supermicro.com", # returns 403 error
651653
"https://www.intel.com/content/www/us/en/products/docs/processors/what-is-a-gpu.html",
652654
"https://www.microsoft.com/en-us/research/blog/zero-infinity-and-deepspeed-unlocking-unprecedented-model-scale-for-deep-learning-training/", # noqa: E501
653655
"https://stackoverflow.com/questions/66640705/how-can-i-install-grpcio-on-an-apple-m1-silicon-laptop",

0 commit comments

Comments
 (0)