mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-22 15:32:08 +00:00
nix: add router to the devshell (#2396)
This commit is contained in:
parent
8dcc7d3f6b
commit
01a515dea2
@ -70,6 +70,10 @@
|
||||
torch
|
||||
transformers
|
||||
vllm
|
||||
|
||||
(callPackage ./router.nix {
|
||||
inherit (rustPlatform) buildRustPackage importCargoLock;
|
||||
})
|
||||
]);
|
||||
|
||||
venvDir = "./.venv";
|
||||
|
18
router.nix
Normal file
18
router.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{ buildRustPackage, importCargoLock, pkg-config, protobuf, openssl }:
|
||||
|
||||
buildRustPackage {
|
||||
name = "text-generation-router";
|
||||
|
||||
src = ./.;
|
||||
|
||||
sourceDir = ./backends/v3;
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ openssl.dev protobuf ];
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user