Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
01a515de
Unverified
Commit
01a515de
authored
Aug 12, 2024
by
Daniël de Kok
Committed by
GitHub
Aug 12, 2024
Browse files
nix: add router to the devshell (#2396)
parent
8dcc7d3f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
flake.nix
flake.nix
+4
-0
router.nix
router.nix
+18
-0
No files found.
flake.nix
View file @
01a515de
...
...
@@ -70,6 +70,10 @@
torch
transformers
vllm
(
callPackage
./router.nix
{
inherit
(
rustPlatform
)
buildRustPackage
importCargoLock
;
})
]);
venvDir
=
"./.venv"
;
...
...
router.nix
0 → 100644
View file @
01a515de
{
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
];
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment