Skip to content

Commit 959a944

Browse files
authored
Merge pull request #67 from kozistr/build/deps
[Build] upgrade `numpy` dependencies
2 parents a50e173 + 50c32f6 commit 959a944

File tree

6 files changed

+151
-223
lines changed

6 files changed

+151
-223
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ['3.7', '3.8', '3.9']
14+
python-version: ['3.8', '3.9']
1515

1616
steps:
1717
- uses: actions/checkout@v3

poetry.lock

Lines changed: 130 additions & 199 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pytorch_optimizer"
3-
version = "1.1.2"
3+
version = "1.1.3"
44
description = "Bunch of optimizer implementations in PyTorch with clean-code, strict types. Also, including useful optimization ideas."
55
license = "Apache-2.0"
66
authors = ["kozistr <[email protected]>"]
@@ -31,9 +31,9 @@ classifiers = [
3131
]
3232

3333
[tool.poetry.dependencies]
34-
python = "^3.7"
35-
numpy = "^1.21.1"
36-
torch = "^1.11.0"
34+
python = "^3.8"
35+
numpy = "^1.22.4"
36+
torch = "^1.12.1"
3737

3838
[tool.poetry.dev-dependencies]
3939
isort = "==5.10.1"

requirements-dev.txt

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,27 @@
11
astroid==2.8.6; python_version >= "3.6" and python_version < "4.0"
2-
atomicwrites==1.4.0; python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.4.0"
3-
attrs==21.4.0; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7"
2+
atomicwrites==1.4.1; python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.4.0"
3+
attrs==22.1.0; python_version >= "3.7"
44
black==21.12b0; python_full_version >= "3.6.2"
55
click==8.0.4; python_version >= "3.6"
6-
colorama==0.4.4; platform_system == "Windows" and python_version >= "3.6" and python_full_version >= "3.6.2" and (python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "4.0" and sys_platform == "win32" or python_version >= "3.6" and python_version < "4.0" and sys_platform == "win32" and python_full_version >= "3.5.0") and (python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.5.0")
7-
coverage==6.3.2; python_version >= "3.7"
8-
importlib-metadata==4.11.3; python_version < "3.8" and python_version >= "3.7" and python_full_version >= "3.6.2"
6+
colorama==0.4.5; platform_system == "Windows" and python_version >= "3.6" and python_full_version >= "3.6.2" and (python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "4.0" and sys_platform == "win32" or python_version >= "3.6" and python_version < "4.0" and sys_platform == "win32" and python_full_version >= "3.5.0") and (python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.5.0")
7+
coverage==6.4.4; python_version >= "3.7"
98
iniconfig==1.1.1; python_version >= "3.7"
109
isort==5.10.1; python_full_version >= "3.6.1" and python_version < "4.0"
1110
lazy-object-proxy==1.7.1; python_version >= "3.6" and python_version < "4.0"
1211
mccabe==0.6.1; python_version >= "3.6" and python_version < "4.0"
1312
mypy-extensions==0.4.3; python_full_version >= "3.6.2"
14-
numpy==1.21.1; python_version >= "3.7"
13+
numpy==1.23.2; python_version >= "3.8"
1514
packaging==21.3; python_version >= "3.7"
1615
pathspec==0.9.0; python_full_version >= "3.6.2"
1716
platformdirs==2.5.2; python_version >= "3.7" and python_full_version >= "3.6.2" and python_version < "4.0"
1817
pluggy==1.0.0; python_version >= "3.7"
1918
py==1.11.0; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7"
2019
pylint==2.11.1; python_version >= "3.6" and python_version < "4.0"
21-
pyparsing==3.0.8; python_full_version >= "3.6.8" and python_version >= "3.7"
20+
pyparsing==3.0.9; python_full_version >= "3.6.8" and python_version >= "3.7"
2221
pytest-cov==3.0.0; python_version >= "3.6"
2322
pytest==7.1.2; python_version >= "3.7"
2423
toml==0.10.2; python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "4.0" or python_version >= "3.6" and python_version < "4.0" and python_full_version >= "3.3.0"
25-
tomli==1.2.3; python_version >= "3.7" and python_full_version >= "3.6.2"
26-
torch==1.11.0; python_full_version >= "3.7.0"
27-
typed-ast==1.5.3; python_version < "3.8" and implementation_name == "cpython" and python_full_version >= "3.6.2" and python_version >= "3.6"
28-
typing-extensions==4.2.0
24+
tomli==1.2.3; python_version >= "3.7" and python_full_version >= "3.6.2" and python_full_version <= "3.11.0a6"
25+
torch==1.12.1; python_full_version >= "3.7.0"
26+
typing-extensions==4.3.0
2927
wrapt==1.13.3; python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "4.0" or python_version >= "3.6" and python_version < "4.0" and python_full_version >= "3.5.0"
30-
zipp==3.8.0; python_version < "3.8" and python_version >= "3.7" and python_full_version >= "3.6.2"

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
numpy==1.21.1; python_version >= "3.7"
2-
torch==1.11.0; python_full_version >= "3.7.0"
3-
typing-extensions==4.2.0; python_version >= "3.7" and python_full_version >= "3.7.0"
1+
numpy==1.23.2; python_version >= "3.8"
2+
torch==1.12.1; python_full_version >= "3.7.0"
3+
typing-extensions==4.3.0; python_version >= "3.7" and python_full_version >= "3.7.0"

tests/test_optimizers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@
5858
(Lamb, {'lr': 1e-1, 'weight_decay': 1e-3, 'adam': True, 'eps': 1e-8}, 500),
5959
(Lamb, {'lr': 1e-1, 'weight_decay': 1e-3, 'pre_norm': True, 'eps': 1e-8}, 500),
6060
(LARS, {'lr': 1e-1, 'weight_decay': 1e-3}, 500),
61-
(RaLamb, {'lr': 2e-1, 'weight_decay': 1e-3}, 500),
62-
(RaLamb, {'lr': 5e-1, 'weight_decay': 1e-3, 'pre_norm': True}, 500),
61+
(RaLamb, {'lr': 1e-1, 'weight_decay': 1e-4}, 200),
62+
(RaLamb, {'lr': 1e-2, 'weight_decay': 1e-4, 'pre_norm': True}, 200),
6363
# (RaLamb, {'lr': 1e-1, 'weight_decay': 1e-3, 'degenerated_to_sgd': True}, 200),
6464
(MADGRAD, {'lr': 1e-2, 'weight_decay': 1e-3}, 500),
6565
(MADGRAD, {'lr': 1e-2, 'weight_decay': 1e-3, 'eps': 0.0}, 500),
6666
(MADGRAD, {'lr': 1e-2, 'weight_decay': 1e-3, 'momentum': 0.0}, 500),
6767
(MADGRAD, {'lr': 1e-2, 'weight_decay': 1e-3, 'decouple_decay': True}, 500),
6868
(RAdam, {'lr': 1e-1, 'weight_decay': 1e-3}, 200),
6969
(RAdam, {'lr': 1e-1, 'weight_decay': 1e-3, 'degenerated_to_sgd': True}, 200),
70-
(SGDP, {'lr': 2e-1, 'weight_decay': 1e-3}, 500),
71-
(SGDP, {'lr': 2e-1, 'weight_decay': 1e-3, 'nesterov': True}, 500),
70+
(SGDP, {'lr': 5e-2, 'weight_decay': 1e-4}, 200),
71+
(SGDP, {'lr': 5e-2, 'weight_decay': 1e-4, 'nesterov': True}, 200),
7272
(Ranger, {'lr': 5e-1, 'weight_decay': 1e-3}, 200),
7373
(Ranger21, {'lr': 5e-1, 'weight_decay': 1e-3, 'num_iterations': 500}, 500),
7474
(Shampoo, {'lr': 3e-1, 'weight_decay': 1e-3, 'momentum': 0.05}, 500),

0 commit comments

Comments
 (0)