python313Packages.hyper-connections: init at 0.2.1

Module to make multiple residual streams

https://github.com/lucidrains/hyper-connections
This commit is contained in:
Fabian Affolter 2025-08-14 08:16:19 +02:00
parent d0d8ab7e3c
commit efbf097c9b
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
einops,
fetchFromGitHub,
hatchling,
pytestCheckHook,
torch,
}:
buildPythonPackage rec {
pname = "hyper-connections";
version = "0.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "lucidrains";
repo = "hyper-connections";
tag = version;
hash = "sha256-9dMiyxzrZBlDxKeehXjoIjbzAkGSkAFxQZZX3LJJAig=";
};
build-system = [ hatchling ];
dependencies = [
einops
torch
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "hyper_connections" ];
meta = {
description = "Module to make multiple residual streams";
homepage = "https://github.com/lucidrains/hyper-connections";
changelog = "https://github.com/lucidrains/hyper-connections/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}

View File

@ -6796,6 +6796,8 @@ self: super: with self; {
hypchat = callPackage ../development/python-modules/hypchat { };
hyper-connections = callPackage ../development/python-modules/hyper-connections { };
hypercorn = callPackage ../development/python-modules/hypercorn { };
hyperframe = callPackage ../development/python-modules/hyperframe { };