mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-24 00:12:08 +00:00
Attempt at integration tests.
This commit is contained in:
parent
f47cdc1fe1
commit
3d73c99ebe
@ -67,6 +67,7 @@
|
||||
'';
|
||||
};
|
||||
server = pkgs.python3.pkgs.callPackage ./nix/server.nix { inherit nix-filter; };
|
||||
client = pkgs.python3.pkgs.callPackage ./nix/client.nix { inherit nix-filter; };
|
||||
in
|
||||
{
|
||||
formatter = pkgs.nixfmt-rfc-style;
|
||||
@ -88,6 +89,7 @@
|
||||
launcher
|
||||
router
|
||||
server
|
||||
client
|
||||
openssl.dev
|
||||
pkg-config
|
||||
cargo
|
||||
|
26
nix/client.nix
Normal file
26
nix/client.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
buildPythonPackage,
|
||||
poetry-core,
|
||||
huggingface-hub,
|
||||
pydantic,
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
name = "text-generation";
|
||||
|
||||
src = ../clients/python;
|
||||
|
||||
pyproject = true;
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
nativeBuildInputs = [ ];
|
||||
|
||||
pythonRemoveDeps = [ ];
|
||||
|
||||
dependencies = [
|
||||
huggingface-hub
|
||||
transformers
|
||||
pydantic
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user