Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Mar 2025 16:27:58 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d9e91d68282c - main - misc/py-schedulefree: New port: Schedule free learning in PyTorch
Message-ID:  <202503291627.52TGRw0o018580@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d9e91d68282c6f50cd9c4eaeb3250bba93829b0d

commit d9e91d68282c6f50cd9c4eaeb3250bba93829b0d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-03-29 06:48:56 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-03-29 16:27:46 +0000

    misc/py-schedulefree: New port: Schedule free learning in PyTorch
---
 misc/Makefile                  |  1 +
 misc/py-schedulefree/Makefile  | 25 +++++++++++++++++++++++++
 misc/py-schedulefree/distinfo  |  3 +++
 misc/py-schedulefree/pkg-descr | 11 +++++++++++
 4 files changed, 40 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 49339cee460a..0c68aa458597 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -513,6 +513,7 @@
     SUBDIR += py-pytorch-lightning
     SUBDIR += py-pyviz-comms
     SUBDIR += py-safetensors
+    SUBDIR += py-schedulefree
     SUBDIR += py-scikit-fusion
     SUBDIR += py-scikit-quant
     SUBDIR += py-serverfiles
diff --git a/misc/py-schedulefree/Makefile b/misc/py-schedulefree/Makefile
new file mode 100644
index 000000000000..e02ac03e7402
--- /dev/null
+++ b/misc/py-schedulefree/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	schedulefree
+DISTVERSION=	1.4.1
+CATEGORIES=	misc python # machine-learning
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Schedule free learning in PyTorch
+WWW=		https://github.com/facebookresearch/schedule_free
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist pytest
+
+NO_ARCH=	yes
+
+# most tests fail: AssertionError: Torch not compiled with CUDA enabled, see https://github.com/facebookresearch/schedule_free/issues/65
+
+.include <bsd.port.mk>
diff --git a/misc/py-schedulefree/distinfo b/misc/py-schedulefree/distinfo
new file mode 100644
index 000000000000..ae3b5ab309fd
--- /dev/null
+++ b/misc/py-schedulefree/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1742853003
+SHA256 (schedulefree-1.4.1.tar.gz) = 69ef25601d1fc0d8dd00cb36f9af78833f88b7846f1bb6ddecc9f144f3e9f7cb
+SIZE (schedulefree-1.4.1.tar.gz) = 29281
diff --git a/misc/py-schedulefree/pkg-descr b/misc/py-schedulefree/pkg-descr
new file mode 100644
index 000000000000..723ec22bfa88
--- /dev/null
+++ b/misc/py-schedulefree/pkg-descr
@@ -0,0 +1,11 @@
+Schedulefree is a Schedule-Free optimizer in PyTorch.
+
+We provide several Schedule-Free optimizer implementations:
+
+* SGDScheduleFree and SGDScheduleFreeReference: Schedule-free variants of SGD
+* AdamWScheduleFree and AdamWScheduleFreeReference: Schedule-free variants
+  of AdamW
+* RAdamScheduleFree: Schedule-free variant of RAdam, which eliminates the need
+  for both learning rate scheduling and warmup (implementation community
+  contributed)
+* Experimental ScheduleFreeWrapper to combine with other optimizers


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202503291627.52TGRw0o018580>