Skip to content

Commit 644df38

Browse files
committed
update lightning pin, bump latest supported lightning patch version, resolve issue #19, prepare for FTS patch release 2.5.3
1 parent 24a43d3 commit 644df38

File tree

17 files changed

+65
-37
lines changed

17 files changed

+65
-37
lines changed

.azure-pipelines/gpu-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
strategy:
4747
matrix:
4848
'PyTorch | latest':
49-
image: "speediedan/finetuning-scheduler:py3.12-pt2.5.1-pl2.5-azpl-init"
49+
image: "speediedan/finetuning-scheduler:py3.12-pt2.8.0-pl2.5-azpl-init"
5050
scope: ""
5151
# how long to run the job before automatically cancelling
5252
timeoutInMinutes: "100"

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
66

7+
## [2.5.3] - 2025-03-27
8+
9+
### Added
10+
11+
- Support for Lightning ``2.5.2`` and ``2.5.3``
12+
13+
### Fixed
14+
15+
- Updated explicit pytorch version mapping matrix to include recent PyTorch release
16+
- Fixed newly failing test dependent on deprecated Lightning class attribute. Resolved [#19](https://github.com/speediedan/finetuning-scheduler/issues/19).
17+
718
## [2.5.1] - 2025-03-27
819

920
### Added

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ date-released: 2022-02-04
66
authors:
77
- family-names: "Dale"
88
given-names: "Dan"
9-
version: 2.5.1
9+
version: 2.5.3
1010
identifiers:
1111
- description: "Fine-Tuning Scheduler (all versions)"
1212
type: doi

dockers/base-cuda/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
# limitations under the License.
1212
# initially based on https://bit.ly/3pdAf1G
1313

14-
ARG CUDA_VERSION=12.4.0
14+
ARG CUDA_VERSION=12.8.1
1515
ARG OS_VER=ubuntu22.04
1616

1717
FROM nvidia/cuda:${CUDA_VERSION}-devel-${OS_VER}
1818

1919
ARG PYTHON_VERSION=3.12
20-
ARG PYTORCH_VERSION=2.5.1
20+
ARG PYTORCH_VERSION=2.8.0
2121
ARG CUST_BUILD=0
2222
ARG MKL_THREADING_LAYER=GNU
2323

@@ -84,7 +84,7 @@ RUN \
8484
else \
8585
# or target a specific cuda build, by specifying a particular index url w/...
8686
# ... default channel
87-
pip install torch==2.5.1 torchvision==0.20.1 --index-url https://download.pytorch.org/whl/cu124; \
87+
pip install torch==2.8.0 torchvision==0.23.0 --index-url https://download.pytorch.org/whl/cu128; \
8888
# ... pytorch patch version
8989
# pip install torch==1.11.1+cu113 torchvision==0.11.3+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html; \
9090
# ... pytorch nightly dev version

dockers/docker_images_main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ maybe_build(){
4040

4141
build_eval(){
4242
# latest PyTorch image supported by release
43-
declare -A iv=(["cuda"]="12.4.0" ["python"]="3.12" ["pytorch"]="2.5.1" ["lightning"]="2.5" ["cust_build"]="1")
43+
declare -A iv=(["cuda"]="12.8.1" ["python"]="3.12" ["pytorch"]="2.8.0" ["lightning"]="2.5" ["cust_build"]="1")
4444
export latest_pt="base-cu${iv["cuda"]}-py${iv["python"]}-pt${iv["pytorch"]}-pl${iv["lightning"]}"
4545
export latest_azpl="py${iv["python"]}-pt${iv["pytorch"]}-pl${iv["lightning"]}-azpl-init"
4646
maybe_build iv "${latest_pt}" "${latest_azpl}"

dockers/docker_images_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ maybe_build(){
3939

4040
build_eval(){
4141
# latest PyTorch image supported by release
42-
declare -A iv=(["cuda"]="12.4.0" ["python"]="3.12" ["pytorch"]="2.5.1" ["lightning"]="2.5" ["cust_build"]="0")
42+
declare -A iv=(["cuda"]="12.8.1" ["python"]="3.12" ["pytorch"]="2.8.0" ["lightning"]="2.5" ["cust_build"]="0")
4343
export latest_pt="base-cu${iv["cuda"]}-py${iv["python"]}-pt${iv["pytorch"]}-pl${iv["lightning"]}"
4444
export latest_azpl="py${iv["python"]}-pt${iv["pytorch"]}-pl${iv["lightning"]}-azpl-init"
4545
maybe_build iv "${latest_pt}" "${latest_azpl}"

dockers/fts-az-base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# limitations under the License.
1212

1313
ARG PYTHON_VERSION=3.12
14-
ARG PYTORCH_VERSION=2.5.1
14+
ARG PYTORCH_VERSION=2.8.0
1515
ARG LIGHTNING_VERSION=2.5
1616
ARG CUST_BASE
1717

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ requires = [
77
[tool.ruff]
88
line-length = 120
99
# Enable Pyflakes `E` and `F` codes by default.
10-
select = [
10+
lint.select = [
1111
"E", "W", # see: https://pypi.org/project/pycodestyle
1212
"F", # see: https://pypi.org/project/pyflakes
1313
]
14-
ignore = [
14+
lint.ignore = [
1515
"E731", # Do not assign a lambda expression, use a def
1616
]
1717
# Exclude a variety of commonly ignored directories.
@@ -23,17 +23,17 @@ exclude = [
2323
"build",
2424
"temp",
2525
]
26-
ignore-init-module-imports = true
26+
lint.ignore-init-module-imports = true
2727
output-format = "pylint"
2828

29-
[tool.ruff.per-file-ignores]
29+
[tool.ruff.lint.per-file-ignores]
3030
"src/fts_examples/ipynb_src/fts_superglue_nb.py" = ["E501","F401","F821"]
3131

32-
[tool.ruff.mccabe]
32+
[tool.ruff.lint.mccabe]
3333
# Unlike Flake8, default to a complexity level of 10.
3434
max-complexity = 10
3535

36-
[tool.ruff.isort]
36+
[tool.ruff.lint.isort]
3737
known-first-party = ["docs","fts_examples","finetuning_scheduler","tests"]
3838
force-sort-within-sections = false
3939
order-by-type = false

requirements/base.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
lightning>=2.5.0,<2.5.2
2-
# the below is uncommented when master is targeting a specific pl dev master commit
1+
lightning>=2.5.0,<2.5.4
2+
# the below is uncommented when main is targeting a specific pl dev master commit
33
# git+https://github.com/Lightning-AI/lightning.git@878ecf56b06d5ae3f482e146e78accabc685bfc7#egg=lightning
44
torch>=2.2.0

requirements/lightning_pin.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
947f9391656198b7bd0808e59a5e1756d36cc386

0 commit comments

Comments
 (0)