python313Packages.local-attention: init at 1.11.2, python313Packages.hyper-connections: init at 0.2.1 (#433568)

authored by

Fabian Affolter and committed by
GitHub
2982db30 369e8e3b

+93
+41
pkgs/development/python-modules/hyper-connections/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + einops, 5 + fetchFromGitHub, 6 + hatchling, 7 + pytestCheckHook, 8 + torch, 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "hyper-connections"; 13 + version = "0.2.1"; 14 + pyproject = true; 15 + 16 + src = fetchFromGitHub { 17 + owner = "lucidrains"; 18 + repo = "hyper-connections"; 19 + tag = version; 20 + hash = "sha256-9dMiyxzrZBlDxKeehXjoIjbzAkGSkAFxQZZX3LJJAig="; 21 + }; 22 + 23 + build-system = [ hatchling ]; 24 + 25 + dependencies = [ 26 + einops 27 + torch 28 + ]; 29 + 30 + nativeCheckInputs = [ pytestCheckHook ]; 31 + 32 + pythonImportsCheck = [ "hyper_connections" ]; 33 + 34 + meta = { 35 + description = "Module to make multiple residual streams"; 36 + homepage = "https://github.com/lucidrains/hyper-connections"; 37 + changelog = "https://github.com/lucidrains/hyper-connections/releases/tag/${src.tag}"; 38 + license = lib.licenses.mit; 39 + maintainers = with lib.maintainers; [ fab ]; 40 + }; 41 + }
+48
pkgs/development/python-modules/local-attention/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + einops, 5 + fetchFromGitHub, 6 + hyper-connections, 7 + pytestCheckHook, 8 + setuptools, 9 + torch, 10 + }: 11 + 12 + buildPythonPackage rec { 13 + pname = "local-attention"; 14 + version = "1.11.2"; 15 + pyproject = true; 16 + 17 + src = fetchFromGitHub { 18 + owner = "lucidrains"; 19 + repo = "local-attention"; 20 + tag = version; 21 + hash = "sha256-2gBPALJAflLf7Y8L5wnNw4fHcvIOKjOncLsebkhrYkU="; 22 + }; 23 + 24 + postPatch = '' 25 + substituteInPlace setup.py \ 26 + --replace-fail "'pytest-runner'," "" 27 + ''; 28 + 29 + build-system = [ setuptools ]; 30 + 31 + dependencies = [ 32 + einops 33 + hyper-connections 34 + torch 35 + ]; 36 + 37 + nativeCheckInputs = [ pytestCheckHook ]; 38 + 39 + pythonImportsCheck = [ "local_attention" ]; 40 + 41 + meta = { 42 + description = "Module for local windowed attention for language modeling"; 43 + homepage = "https://github.com/lucidrains/local-attention"; 44 + changelog = "https://github.com/lucidrains/local-attention/releases/tag/${src.tag}"; 45 + license = lib.licenses.mit; 46 + maintainers = with lib.maintainers; [ fab ]; 47 + }; 48 + }
+4
pkgs/top-level/python-packages.nix
··· 6800 6800 6801 6801 hypchat = callPackage ../development/python-modules/hypchat { }; 6802 6802 6803 + hyper-connections = callPackage ../development/python-modules/hyper-connections { }; 6804 + 6803 6805 hypercorn = callPackage ../development/python-modules/hypercorn { }; 6804 6806 6805 6807 hyperframe = callPackage ../development/python-modules/hyperframe { }; ··· 8650 8652 lnkparse3 = callPackage ../development/python-modules/lnkparse3 { }; 8651 8653 8652 8654 loca = callPackage ../development/python-modules/loca { }; 8655 + 8656 + local-attention = callPackage ../development/python-modules/local-attention { }; 8653 8657 8654 8658 localimport = callPackage ../development/python-modules/localimport { }; 8655 8659