depot/third_party/nixpkgs/pkgs/development/python-modules/rotary-embedding-torch/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

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.2";
pyproject = true;
src = fetchFromGitHub {
owner = "lucidrains";
repo = "rotary-embedding-torch";
rev = "refs/tags/${version}";
hash = "sha256-AR/zQFH0uvPrCp61XLiRBiAO3ZnD4jVaDXN00hXDlnI=";
};
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;
};
}