mirror of
https://github.com/denismhz/flake.git
synced 2025-11-09 16:16:23 +01:00
- KoboldAI is no longer upstream maintained, so is now deprecated in nixified.ai - InvokeAI: v2.3.1.post2 -> v3.3.0post3 - textgen: init at v1.7 - treewide: update flake inputs including nixpkgs - treewide: add a bunch of new dependencies and upgrade old ones
33 lines
752 B
Nix
33 lines
752 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, torch
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lion-pytorch";
|
|
version = "0.0.7";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lucidrains";
|
|
repo = "lion-pytorch";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-CSb0s3DKv/KpEmCkCR+Y8iwrLdCL9w9Pl6W46cPB420";
|
|
};
|
|
|
|
propagatedBuildInputs = [ torch ];
|
|
|
|
pythonImportsCheck = [ "lion_pytorch" ];
|
|
doCheck = false; # no tests currently
|
|
|
|
meta = with lib; {
|
|
description = "Optimizer tuned by Google Brain using genetic algorithms";
|
|
homepage = "https://github.com/lucidrains/lion-pytorch";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|