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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Emerging Optimizers is a research project focused on understanding and optimizin

### Prerequisites

- Python 3.12 or higher
- Python 3.10 or higher, 3.12 is recommended
- PyTorch 2.0 or higher

### Install from Source
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Any, Callable, override
from typing import Any, Callable


# TODO(@boxiangw): remove this once bump to python 3.12
try:
from typing import override
except ImportError:
from typing_extensions import override

import torch
import torch.optim as optim
Expand Down
9 changes: 8 additions & 1 deletion emerging_optimizers/soap/soap.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from itertools import chain
from typing import Callable, Iterable, List, Optional, Tuple, Union, override
from typing import Callable, Iterable, List, Optional, Tuple, Union


# TODO(@boxiangw): remove this once bump to python 3.12
try:
from typing import override
except ImportError:
from typing_extensions import override

import torch
import torch.optim as optim
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dynamic = [
]
description = "A research project for emerging optimizers other than AdamW"
license = {file = "LICENSE"}
requires-python = ">=3.12"
requires-python = ">=3.10"
authors = [{ name = "NVIDIA", email = "[email protected]" }]
maintainers = [{ name = "NVIDIA", email = "[email protected]" }]
keywords = [
Expand Down Expand Up @@ -57,7 +57,7 @@ classifiers = [
dependencies = [
"torch",
"absl-py",
"megatron-core>=0.14.0a0,<0.16.0",
"typing-extensions",
]

[build-system]
Expand Down
Loading