git: 2fe64ece90be - main - misc/py-comfy-aimdo: New port: ComfyUI: AI Model Dynamic Offloader for PyTorch

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 18 Mar 2026 15:48:12 UTC
The branch main has been updated by yuri:

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

commit 2fe64ece90be66f7a3c492daf0eaf799293f92cb
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-03-18 03:33:47 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-03-18 15:48:08 +0000

    misc/py-comfy-aimdo: New port: ComfyUI: AI Model Dynamic Offloader for PyTorch
---
 misc/Makefile                 |  1 +
 misc/py-comfy-aimdo/Makefile  | 27 +++++++++++++++++++++++++++
 misc/py-comfy-aimdo/distinfo  |  3 +++
 misc/py-comfy-aimdo/pkg-descr |  6 ++++++
 4 files changed, 37 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 2ca0287a1317..3f73270b5000 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -445,6 +445,7 @@
     SUBDIR += py-colorbrewer
     SUBDIR += py-colored
     SUBDIR += py-colorzero
+    SUBDIR += py-comfy-aimdo
     SUBDIR += py-cppman
     SUBDIR += py-crudini
     SUBDIR += py-csvw
diff --git a/misc/py-comfy-aimdo/Makefile b/misc/py-comfy-aimdo/Makefile
new file mode 100644
index 000000000000..ace68ed2722b
--- /dev/null
+++ b/misc/py-comfy-aimdo/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	comfy-aimdo
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.2.12
+CATEGORIES=	misc python # machine-learning
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	ComfyUI: AI Model Dynamic Offloader for PyTorch
+WWW=		https://github.com/Comfy-Org/comfy-aimdo
+
+LICENSE=	GPLv3+
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytorch>=2.8.0:misc/py-pytorch@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Comfy-Org
+
+MAKE_ENV=	SETUPTOOLS_SCM_PRETEND_VERSION=${DISTVERSION}
+
+.include <bsd.port.mk>
diff --git a/misc/py-comfy-aimdo/distinfo b/misc/py-comfy-aimdo/distinfo
new file mode 100644
index 000000000000..0be04a2289e1
--- /dev/null
+++ b/misc/py-comfy-aimdo/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1773804412
+SHA256 (Comfy-Org-comfy-aimdo-v0.2.12_GH0.tar.gz) = e5dc429a078d78470acffe81d7177eab4e7a5cffe778be90735836960792cc1a
+SIZE (Comfy-Org-comfy-aimdo-v0.2.12_GH0.tar.gz) = 33349
diff --git a/misc/py-comfy-aimdo/pkg-descr b/misc/py-comfy-aimdo/pkg-descr
new file mode 100644
index 000000000000..9fdddae54e23
--- /dev/null
+++ b/misc/py-comfy-aimdo/pkg-descr
@@ -0,0 +1,6 @@
+AI Model Dynamic Offloader (AIMDO) is a PyTorch VRAM allocator that implements
+on-demand offloading of model weights when the primary PyTorch VRAM allocator
+comes under pressure.
+
+This enables running larger models on GPUs with limited VRAM by intelligently
+managing memory and offloading weights to system RAM when needed.