flake/packages/flexgen/default.nix
Max 079f83ba45 Major Upgrade/Refactor
- 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
2023-10-19 22:13:37 +01:00

45 lines
811 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, attrs
, numpy
, pulp
, torch
, tqdm
, transformers
}:
buildPythonPackage rec {
pname = "flexgen";
version = "0.1.7";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-GYnl5CYsMWgTdbCfhWcNyjtpnHCXAcYWtMUmAJcRQAM=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
attrs
numpy
pulp
torch
tqdm
transformers
];
pythonImportsCheck = [ "flexgen" ];
meta = with lib; {
description = "Running large language models like OPT-175B/GPT-3 on a single GPU. Focusing on high-throughput large-batch generation";
homepage = "https://github.com/FMInference/FlexGen";
license = licenses.asl20;
maintainers = with maintainers; [ jpetrucciani ];
};
}