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
19ea85f8
You need to sign in or sign up before continuing.
Unverified
Commit
19ea85f8
authored
Aug 12, 2024
by
Nicolas Patry
Committed by
GitHub
Aug 12, 2024
Browse files
Updating the flake. (#2404)
parent
30395b09
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
163 additions
and
13 deletions
+163
-13
_server.nix
_server.nix
+12
-0
flake.lock
flake.lock
+141
-13
flake.nix
flake.nix
+10
-0
No files found.
_server.nix
0 → 100644
View file @
19ea85f8
{
mkPoetryApplication
,
pkg-config
,
protobuf
,
openssl
}:
mkPoetryApplication
{
# name = "text-generation-server";
projectDir
=
./server
;
# nativeBuildInputs = [ pkg-config ];
# buildInputs = [ openssl.dev protobuf ];
}
flake.lock
View file @
19ea85f8
...
@@ -33,22 +33,99 @@
...
@@ -33,22 +33,99 @@
"type": "github"
"type": "github"
}
}
},
},
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nix-github-actions": {
"inputs": {
"nixpkgs": [
"poetry2nix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1703863825,
"narHash": "sha256-rXwqjtwiGKJheXB43ybM8NwWB8rO2dSRrEqes0S7F5Y=",
"owner": "nix-community",
"repo": "nix-github-actions",
"rev": "5163432afc817cf8bd1f031418d1869e4c9d5547",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-github-actions",
"type": "github"
}
},
"nixpkgs": {
"nixpkgs": {
"locked": {
"locked": {
"lastModified": 17
23099294
,
"lastModified": 17
19763542
,
"narHash": "sha256-
kkijy6sXo/SOhFw7ZEfYHbj1FJHxoeetOVOn3qNHc5o
=",
"narHash": "sha256-
mXkOj9sJ0f69Nkc2dGGOWtof9d1YNY8Le/Hia3RN+8Q
=",
"owner": "
danieldk
",
"owner": "
NixOS
",
"repo": "nixpkgs",
"repo": "nixpkgs",
"rev": "
45892b6ec142eaf300d777926983a433b5842c88
",
"rev": "
e6cdd8a11b26b4d60593733106042141756b54a3
",
"type": "github"
"type": "github"
},
},
"original": {
"original": {
"owner": "danieldk",
"owner": "NixOS",
"ref": "cudnn-9.3",
"ref": "nixos-unstable-small",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1723418128,
"narHash": "sha256-k1pEqsnB6ikZyasXbtV6A9akPZMKlsyENPDUA6PXoJo=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "129f579cbb5b4c1ad258fd96bdfb78eb14802727",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable-small",
"repo": "nixpkgs",
"repo": "nixpkgs",
"type": "github"
"type": "github"
}
}
},
},
"poetry2nix": {
"inputs": {
"flake-utils": "flake-utils_2",
"nix-github-actions": "nix-github-actions",
"nixpkgs": "nixpkgs",
"systems": "systems_3",
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1723343306,
"narHash": "sha256-/6sRkPq7/5weX2y0V8sQ29Sz35nt8kyj+BsFtkhgbJE=",
"owner": "nix-community",
"repo": "poetry2nix",
"rev": "4a1c112ff0c67f496573dc345bd0b2247818fc29",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "poetry2nix",
"type": "github"
}
},
"root": {
"root": {
"inputs": {
"inputs": {
"flake-utils": "flake-utils",
"flake-utils": "flake-utils",
...
@@ -56,6 +133,7 @@
...
@@ -56,6 +133,7 @@
"tgi-nix",
"tgi-nix",
"nixpkgs"
"nixpkgs"
],
],
"poetry2nix": "poetry2nix",
"rust-overlay": "rust-overlay",
"rust-overlay": "rust-overlay",
"tgi-nix": "tgi-nix"
"tgi-nix": "tgi-nix"
}
}
...
@@ -68,11 +146,11 @@
...
@@ -68,11 +146,11 @@
]
]
},
},
"locked": {
"locked": {
"lastModified": 1723
170066
,
"lastModified": 1723
429325
,
"narHash": "sha256-
SFkQfOA+8AIYJsPlQtxNP+z5jRLfz91z/aOrV94pPmw
=",
"narHash": "sha256-
4x/32xTCd+xCwFoI/kKSiCr5LQA2ZlyTRYXKEni5HR8
=",
"owner": "oxalica",
"owner": "oxalica",
"repo": "rust-overlay",
"repo": "rust-overlay",
"rev": "
fecfe4d7c96fea2982c7907997b387a6b52c1093
",
"rev": "
65e3dc0fe079fe8df087cd38f1fe6836a0373aad
",
"type": "github"
"type": "github"
},
},
"original": {
"original": {
...
@@ -96,17 +174,46 @@
...
@@ -96,17 +174,46 @@
"type": "github"
"type": "github"
}
}
},
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"id": "systems",
"type": "indirect"
}
},
"tgi-nix": {
"tgi-nix": {
"inputs": {
"inputs": {
"flake-compat": "flake-compat",
"flake-compat": "flake-compat",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs
_2
"
},
},
"locked": {
"locked": {
"lastModified": 1723
234585
,
"lastModified": 1723
450799
,
"narHash": "sha256-
HChJpNP155FPhHr9C5BtqllV8Uv/Ebg59HhMc/HhQrc
=",
"narHash": "sha256-
cuT/ce7R2D5Lx6Ted4YS4y+WrAAOXQFAbzLsM1vtPo8
=",
"owner": "danieldk",
"owner": "danieldk",
"repo": "tgi-nix",
"repo": "tgi-nix",
"rev": "
15bd4a978d6c2c8b04b7afc335d137dbe41e73df
",
"rev": "
29f9b45bd613eced65c4a5241a00aa9346f63d90
",
"type": "github"
"type": "github"
},
},
"original": {
"original": {
...
@@ -114,6 +221,27 @@
...
@@ -114,6 +221,27 @@
"repo": "tgi-nix",
"repo": "tgi-nix",
"type": "github"
"type": "github"
}
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": [
"poetry2nix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1719749022,
"narHash": "sha256-ddPKHcqaKCIFSFc/cvxS14goUhCOAwsM1PbMr0ZtHMg=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "8df5ff62195d4e67e2264df0b7f5e8c9995fd0bd",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
}
}
},
},
"root": "root",
"root": "root",
...
...
flake.nix
View file @
19ea85f8
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
tgi-nix
.
url
=
"github:danieldk/tgi-nix"
;
tgi-nix
.
url
=
"github:danieldk/tgi-nix"
;
nixpkgs
.
follows
=
"tgi-nix/nixpkgs"
;
nixpkgs
.
follows
=
"tgi-nix/nixpkgs"
;
flake-utils
.
url
=
"github:numtide/flake-utils"
;
flake-utils
.
url
=
"github:numtide/flake-utils"
;
poetry2nix
.
url
=
"github:nix-community/poetry2nix"
;
rust-overlay
=
{
rust-overlay
=
{
url
=
"github:oxalica/rust-overlay"
;
url
=
"github:oxalica/rust-overlay"
;
inputs
.
nixpkgs
.
follows
=
"tgi-nix/nixpkgs"
;
inputs
.
nixpkgs
.
follows
=
"tgi-nix/nixpkgs"
;
...
@@ -15,6 +16,7 @@
...
@@ -15,6 +16,7 @@
flake-utils
,
flake-utils
,
rust-overlay
,
rust-overlay
,
tgi-nix
,
tgi-nix
,
poetry2nix
,
}:
}:
flake-utils
.
lib
.
eachDefaultSystem
(
flake-utils
.
lib
.
eachDefaultSystem
(
system
:
system
:
...
@@ -30,6 +32,11 @@
...
@@ -30,6 +32,11 @@
tgi-nix
.
overlay
tgi-nix
.
overlay
];
];
};
};
inherit
(
poetry2nix
.
lib
.
mkPoetry2Nix
{
inherit
pkgs
;
})
mkPoetryEditablePackage
;
text-generation-server
=
mkPoetryEditablePackage
{
editablePackageSources
=
./server
;
};
in
in
{
{
devShells
.
default
=
devShells
.
default
=
...
@@ -50,14 +57,17 @@
...
@@ -50,14 +57,17 @@
venvShellHook
venvShellHook
pip
pip
click
einops
einops
fbgemm-gpu
fbgemm-gpu
flashinfer
flash-attn
flash-attn
flash-attn-layer-norm
flash-attn-layer-norm
flash-attn-rotary
flash-attn-rotary
grpc-interceptor
grpc-interceptor
grpcio-reflection
grpcio-reflection
grpcio-status
grpcio-status
grpcio-tools
hf-transfer
hf-transfer
loguru
loguru
marlin-kernels
marlin-kernels
...
...
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