From c3b955145998d39df39370671585a271ca6f80f0 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 28 Dec 2022 19:53:55 -0500 Subject: Get ava GPT chatbot prototype working Mostly thid required packaging up some deps, but also had to recompile stuff with cuda support. --- Biz/Bild/Deps/accelerate.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Biz/Bild/Deps/accelerate.nix (limited to 'Biz/Bild/Deps/accelerate.nix') diff --git a/Biz/Bild/Deps/accelerate.nix b/Biz/Bild/Deps/accelerate.nix new file mode 100644 index 0000000..5d00f14 --- /dev/null +++ b/Biz/Bild/Deps/accelerate.nix @@ -0,0 +1,24 @@ +{ fetchFromGitHub +, buildPythonPackage +, numpy +, packaging +, psutil +, pyyaml +, torch +}: + +buildPythonPackage rec { + name = "accelerate"; + version = "0.15.0"; + propagatedBuildInputs = [ + numpy packaging psutil pyyaml torch + ]; + doCheck = false; + src = fetchFromGitHub { + owner = "huggingface"; + repo = "accelerate"; + rev = "v${version}"; + sha256 = "sha256-agfbOaa+Nm10HZkd2Y7zR3R37n+vLNsxCyxZax6O3Lo="; + }; +} + -- cgit v1.2.3