mirror of
https://github.com/denismhz/flake.git
synced 2025-11-09 08:06: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
45 lines
811 B
Nix
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 ];
|
|
};
|
|
}
|