From nobody Fri Mar 22 04:11:37 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V186163zQz5Fcjs; Fri, 22 Mar 2024 04:11:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V18613tCRz43X9; Fri, 22 Mar 2024 04:11:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711080697; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c9Di+7A9+LieXu9hqiRV6BwpntnSqjLv7lAigmMfgxo=; b=mGAXZkhImqapbgjkooHdI84FPrnQYIhmXBfwqkPh5QLVoc5CK9nJt2Bl3VjBtpSClYD0RK r5P98fjPDuywp6YITGgqv1nn6FlZSDl1EJLtlpaizemtPjduo4bZ4m6t4zlHrHeuSDjixo 0eL0Bj+cAtBDIvrBJsbH4vtt9JagbZvmikUaW7H8/eoiWqPk3catqPSHkA5htoa/Zji/JH soL4GlCSb1R2G8dGBs5Tcdjr7SNOeeLThrN2yJQJwvnoyPf3lReL5TiQkSSSW18DQQflDt k6fybtYtzETl8n4KMubC+tVGhxXneTqXPV0eypa+sOsBNglLkh7teaV2cjzMhA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711080697; a=rsa-sha256; cv=none; b=foDURA/TxZR4+JVX/gh22tBtR3rL9iOr7x76NsAuIWlYcut1LxMBtRQj4Tv6mUodlOtKAT uPhH2frBkmXQiGtUolMqjsE+OPaTyE1p8VjGn7lR3cbc/sxPAnmfL+9KhUwQ7qtMaYXeZw DQPQqOa/gb2xF9rFJEF7dG/tg4sivv5L/T127ciVFAD4gbpxwcH4Y7qtGE1nGG4fBWphky nVxdz6Ya6RSd9YeXXJ32eQn91w5C17370CHnHBiesB1GaC4rCLR3ceK4a0S9XoumhHRi9P NcxbPa5JmVjE90oYFfv1UDe8LEETDTbbPhXEZgxDmcER4Zf1IG5yY1IWS0MXlQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711080697; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c9Di+7A9+LieXu9hqiRV6BwpntnSqjLv7lAigmMfgxo=; b=yNl3bmGvWH/0rIIIBTt6egWWpRS9vPJx3EvW5s6YYgsk1NC4sm7RsQrU5NEO8Sy0m3pURE +eDnD+LLjM2htqIC6AOA1A5GOhGXG3jSWkhnExrE1GNg19y6s2txEVYwvl1ufIRn3jOIcg FBswR0IfQzfoxxvJk7PyU6CZKW2Ozn657A03I1wHKFvBZjlYnRkat5IyGywtOPYf4JVpTz VgzRbHhuiFihd/fjNM7rVPibB8IUe9a6GaePkGan0xVkeqV73067piPwto9ZXwGLdLKjZf zJ3KNZathty7Gpu+qGocD8Ucfu8+Uf75NfdVgDEhdD+WlqDxGZWEjsI2EErUAQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V18612f09z14PN; Fri, 22 Mar 2024 04:11:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42M4BbKu052990; Fri, 22 Mar 2024 04:11:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42M4BbiF052987; Fri, 22 Mar 2024 04:11:37 GMT (envelope-from git) Date: Fri, 22 Mar 2024 04:11:37 GMT Message-Id: <202403220411.42M4BbiF052987@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 60c128a82a6c - main - misc/py-xformers: New port: Transformers building blocks, supporting a composable construction List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 60c128a82a6ce63128da88b2818e12e00804c215 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=60c128a82a6ce63128da88b2818e12e00804c215 commit 60c128a82a6ce63128da88b2818e12e00804c215 Author: Yuri Victorovich AuthorDate: 2024-03-22 04:11:05 +0000 Commit: Yuri Victorovich CommitDate: 2024-03-22 04:11:05 +0000 misc/py-xformers: New port: Transformers building blocks, supporting a composable construction --- misc/Makefile | 1 + misc/py-xformers/Makefile | 25 +++++++++++++++++++++++++ misc/py-xformers/distinfo | 3 +++ misc/py-xformers/pkg-descr | 11 +++++++++++ misc/py-xformers/pkg-plist | 4 ++++ 5 files changed, 44 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 75b1f28a5c61..57a5640e3f40 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -509,6 +509,7 @@ SUBDIR += py-vaderSentiment SUBDIR += py-wandb SUBDIR += py-wurlitzer + SUBDIR += py-xformers SUBDIR += py-xgboost SUBDIR += pyobd SUBDIR += pytorch diff --git a/misc/py-xformers/Makefile b/misc/py-xformers/Makefile new file mode 100644 index 000000000000..644d1022a204 --- /dev/null +++ b/misc/py-xformers/Makefile @@ -0,0 +1,25 @@ +PORTNAME= xformers +DISTVERSION= 0.0.25 +CATEGORIES= misc python # machine-learning +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Transformers building blocks, supporting a composable construction +WWW= https://facebookresearch.github.io/xformers/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= pybind11>0:devel/pybind11 \ + ${PYTHON_PKGNAMEPREFIX}pytorch>=2.1:misc/py-pytorch@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytorch>=2.1:misc/py-pytorch@${PY_FLAVOR} \ + ${PYNUMPY} + +USES= compiler:c++17-lang localbase python +USE_PYTHON= distutils autoplist pytest # tests fail, see https://github.com/facebookresearch/xformers/issues/1003 + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/xformers/_C.so + +.include diff --git a/misc/py-xformers/distinfo b/misc/py-xformers/distinfo new file mode 100644 index 000000000000..ee97f18b6b6a --- /dev/null +++ b/misc/py-xformers/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1711070989 +SHA256 (xformers-0.0.25.tar.gz) = 63f74d96c82d6b9bf3daf38f53cf173a29370ee6bd1dfde15836d0d598b6f82f +SIZE (xformers-0.0.25.tar.gz) = 4080980 diff --git a/misc/py-xformers/pkg-descr b/misc/py-xformers/pkg-descr new file mode 100644 index 000000000000..61c726c5cef5 --- /dev/null +++ b/misc/py-xformers/pkg-descr @@ -0,0 +1,11 @@ +xFormers is a Toolbox to Accelerate Research on Transformers. + +xFormers is: +* Customizable building blocks: Independent/customizable building blocks that + can be used without boilerplate code. The components are domain-agnostic and + xFormers is used by researchers in vision, NLP and more. +* Research first: xFormers contains bleeding-edge components, that are not yet + available in mainstream libraries like PyTorch. +* Built with efficiency in mind: Because speed of iteration matters, components + are as fast and memory-efficient as possible. xFormers contains its own CUDA + kernels, but dispatches to other libraries when relevant. diff --git a/misc/py-xformers/pkg-plist b/misc/py-xformers/pkg-plist new file mode 100644 index 000000000000..b0d62b01d9c3 --- /dev/null +++ b/misc/py-xformers/pkg-plist @@ -0,0 +1,4 @@ +%%PYTHON_SITELIBDIR%%/xformers/__pycache__/version%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/xformers/__pycache__/version%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/xformers/cpp_lib.json +%%PYTHON_SITELIBDIR%%/xformers/version.py