504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
48 lines
876 B
Nix
48 lines
876 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
|
|
# build-system
|
|
, setuptools
|
|
, wheel
|
|
|
|
# dependencies
|
|
, einops
|
|
, torch
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rotary-embedding-torch";
|
|
version = "0.3.6";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lucidrains";
|
|
repo = "rotary-embedding-torch";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-sbkUHFUv/+nY6AT3wu/ipuDF45VUjQalsYcIvUFR9PE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = teams.tts.members;
|
|
};
|
|
}
|