python312Packages.x-transformers: init at 1.32.2 (#332726)
This commit is contained in:
commit
05d55345e6
46
pkgs/development/python-modules/x-transformers/default.nix
Normal file
46
pkgs/development/python-modules/x-transformers/default.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
setuptools,
|
||||
einops,
|
||||
torch,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "x-transformers";
|
||||
version = "1.32.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "x_transformers";
|
||||
inherit version;
|
||||
hash = "sha256-NUIlJ+N2/6kz3rI0oc7bfYVWnMkZhvfljQ6zSwBPkWo=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/setup_requires=\[/,/\],/d' setup.py
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
einops
|
||||
torch
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "x_transformers" ];
|
||||
|
||||
meta = {
|
||||
description = "Concise but fully-featured transformer";
|
||||
longDescription = ''
|
||||
A simple but complete full-attention transformer with a set of promising experimental features from various papers
|
||||
'';
|
||||
homepage = "https://github.com/lucidrains/x-transformers";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ ByteSudoer ];
|
||||
};
|
||||
}
|
@ -17867,6 +17867,8 @@ self: super: with self; {
|
||||
|
||||
wyoming = callPackage ../development/python-modules/wyoming { };
|
||||
|
||||
x-transformers = callPackage ../development/python-modules/x-transformers { };
|
||||
|
||||
x-wr-timezone = callPackage ../development/python-modules/x-wr-timezone { };
|
||||
|
||||
x11-hash = callPackage ../development/python-modules/x11-hash { };
|
||||
|
Loading…
Reference in New Issue
Block a user