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
94744150
Unverified
Commit
94744150
authored
Aug 21, 2024
by
Daniël de Kok
Committed by
GitHub
Aug 21, 2024
Browse files
nix: add `text-generation-benchmark` to pure devshell (#2431)
nix: add text-generation-benchmark to pure devshell
parent
f5f11b79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
25 deletions
+47
-25
flake.nix
flake.nix
+4
-0
nix/crate-overrides.nix
nix/crate-overrides.nix
+43
-25
No files found.
flake.nix
View file @
94744150
...
...
@@ -43,6 +43,9 @@
];
};
crateOverrides
=
import
./nix/crate-overrides.nix
{
inherit
pkgs
nix-filter
;
};
benchmark
=
cargoNix
.
workspaceMembers
.
text-generation-benchmark
.
build
.
override
{
inherit
crateOverrides
;
};
launcher
=
cargoNix
.
workspaceMembers
.
text-generation-launcher
.
build
.
override
{
inherit
crateOverrides
;
};
...
...
@@ -57,6 +60,7 @@
pure
=
mkShell
{
buildInputs
=
[
benchmark
launcher
router
server
...
...
nix/crate-overrides.nix
View file @
94744150
...
...
@@ -20,34 +20,52 @@ defaultCrateOverrides
rav1e
=
attrs
:
{
env
.
CARGO_ENCODED_RUSTFLAGS
=
"-C target-feature=-crt-static"
;
};
grpc-metadata
=
attrs
:
{
src
=
filter
{
root
=
../backends/grpc-metadata
;
include
=
with
filter
;
[
isDirectory
(
matchExt
"rs"
)
];
};
src
=
filter
{
root
=
../backends/grpc-metadata
;
include
=
with
filter
;
[
isDirectory
(
matchExt
"rs"
)
];
};
};
text-generation-benchmark
=
attrs
:
{
src
=
filter
{
root
=
../benchmark
;
include
=
with
filter
;
[
isDirectory
(
matchExt
"rs"
)
];
};
};
text-generation-client
=
attrs
:
{
src
=
filter
{
root
=
../.
;
include
=
with
filter
;
[
isDirectory
(
and
(
inDirectory
"backends/client"
)
(
matchExt
"rs"
))
(
and
(
inDirectory
"proto"
)
(
matchExt
"proto"
))
];
};
postPatch
=
"cd backends/client"
;
buildInputs
=
[
protobuf
];
};
text-generation-launcer
=
attrs
:
{
src
=
filter
{
root
=
../launcher
;
include
=
with
filter
;
[
isDirectory
(
matchExt
"rs"
)
];
};
text-generation-launcher
=
attrs
:
{
src
=
filter
{
root
=
../launcher
;
include
=
with
filter
;
[
isDirectory
(
matchExt
"rs"
)
];
};
};
text-generation-router
=
attrs
:
{
src
=
filter
{
root
=
../router
;
include
=
with
filter
;
[
isDirectory
(
matchExt
"rs"
)
];
};
src
=
filter
{
root
=
../router
;
include
=
with
filter
;
[
isDirectory
(
matchExt
"rs"
)
];
};
};
text-generation-router-v3
=
attrs
:
{
# We need to do the src/source root dance so that the build
...
...
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