misc/py-lion-pytorch: New port: PyTorch: Lion optimizer

This commit is contained in:
Yuri Victorovich
2025-09-19 00:36:14 -07:00
parent 6e5e260518
commit 6583c3bc3d
4 changed files with 29 additions and 0 deletions
+1
View File
@@ -483,6 +483,7 @@
SUBDIR += py-lazrs
SUBDIR += py-lightgbm
SUBDIR += py-lightning-utilities
SUBDIR += py-lion-pytorch
SUBDIR += py-litellm
SUBDIR += py-litellm-proxy-extras
SUBDIR += py-llama-cpp-python
+22
View File
@@ -0,0 +1,22 @@
PORTNAME= lion-pytorch
DISTVERSION= 0.2.3
CATEGORIES= misc # machine-learning
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= PyTorch: Lion optimizer
WWW= https://github.com/lucidrains/lion-pytorch
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytorch>=1.6:misc/py-pytorch@${PY_FLAVOR}
USES= python
USE_PYTHON= distutils autoplist
NO_ARCH= yes
.include <bsd.port.mk>
+3
View File
@@ -0,0 +1,3 @@
TIMESTAMP = 1758249332
SHA256 (lion_pytorch-0.2.3.tar.gz) = 42ba117ce857e9dd6c67c727e22e575671fd72e441900af137b05e7ee5c8fd88
SIZE (lion_pytorch-0.2.3.tar.gz) = 6990
+3
View File
@@ -0,0 +1,3 @@
Lion, EvoLved Sign Momentum, is a new optimizer discovered by Google Brain that
is purportedly better than Adam(w), in Pytorch. This is nearly a straight copy
from here, with few minor modifications.