fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
50 lines
1,004 B
Nix
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.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lucidrains";
|
|
repo = "rotary-embedding-torch";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-/gVBQ9lUzVN/eEtm6qPajw0TZs87JOC7d02qnQ8sdVk=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|