python310Packages.peft: init at 0.2.0

This commit is contained in:
Ben Darwin
2023-03-31 11:28:53 -04:00
parent 71e8e2148d
commit e4f3b21d4d
2 changed files with 56 additions and 0 deletions
@@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, setuptools
, numpy
, packaging
, psutil
, pyyaml
, torch
, transformers
, accelerate
}:
buildPythonPackage rec {
pname = "peft";
version = "0.2.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "huggingface";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-NPpY29HMQe5KT0JdlLAXY9MVycDslbP2i38NSTirB3I=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
numpy
packaging
psutil
pyyaml
torch
transformers
accelerate
];
doCheck = false; # tried to download pretrained model
pythonImportsCheck = [
"peft"
];
meta = with lib; {
homepage = "https://github.com/huggingface/peft";
description = "State-of-the art parameter-efficient fine tuning";
changelog = "https://github.com/huggingface/peft/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ bcdarwin ];
};
}
+2
View File
@@ -7119,6 +7119,8 @@ self: super: with self; {
pefile = callPackage ../development/python-modules/pefile { };
peft = callPackage ../development/python-modules/peft { };
pelican = callPackage ../development/python-modules/pelican {
inherit (pkgs) glibcLocales git;
};