depot/third_party/nixpkgs/pkgs/development/python-modules/rotary-embedding-torch/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

50 lines
1,004 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
wheel,
# dependencies
beartype,
einops,
torch,
}:
buildPythonPackage rec {
pname = "rotary-embedding-torch";
version = "0.6.4";
pyproject = true;
src = fetchFromGitHub {
owner = "lucidrains";
repo = "rotary-embedding-torch";
rev = "refs/tags/${version}";
hash = "sha256-dP7QFUNIGFFQcR98po+LYg3MU7P+GUunO7zz/y8vZmY=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
beartype
einops
torch
];
pythonImportsCheck = [ "rotary_embedding_torch" ];
doCheck = false; # no tests
meta = with lib; {
description = "Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch";
homepage = "https://github.com/lucidrains/rotary-embedding-torch";
changelog = "https://github.com/lucidrains/rotary-embedding-torch/releases/tag/${version}";
license = licenses.mit;
maintainers = teams.tts.members;
};
}