Date: Fri, 22 Mar 2024 04:11:37 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: 60c128a82a6c - main - misc/py-xformers: New port: Transformers building blocks, supporting a composable construction Message-ID: <202403220411.42M4BbiF052987@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=60c128a82a6ce63128da88b2818e12e00804c215 commit 60c128a82a6ce63128da88b2818e12e00804c215 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-03-22 04:11:05 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> 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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202403220411.42M4BbiF052987>