File tree Expand file tree Collapse file tree 8 files changed +61
-62
lines changed Expand file tree Collapse file tree 8 files changed +61
-62
lines changed Original file line number Diff line number Diff line change 21
21
nix_path : nixpkgs=channel:nixos-unstable
22
22
- uses : cachix/cachix-action@v14
23
23
with :
24
- name : text-generation-inference
24
+ name : huggingface
25
25
# If you chose signing key for write access
26
26
authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
27
27
env :
Original file line number Diff line number Diff line change 20
20
nix_path : nixpkgs=channel:nixos-unstable
21
21
- uses : cachix/cachix-action@v14
22
22
with :
23
- name : text-generation-inference
23
+ name : huggingface
24
24
# If you chose signing key for write access
25
25
authToken : " ${{ secrets.CACHIX_AUTH_TOKEN }}"
26
26
env :
Original file line number Diff line number Diff line change 25
25
nix_path : nixpkgs=channel:nixos-unstable
26
26
- uses : cachix/cachix-action@v14
27
27
with :
28
- name : text-generation-inference
28
+ name : huggingface
29
29
# If you chose signing key for write access
30
30
authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
31
31
env :
Original file line number Diff line number Diff line change 6
6
FROM nixos/nix:2.18.8 AS builder
7
7
RUN echo "experimental-features = nix-command flakes" > > /etc/nix/nix.conf
8
8
RUN nix profile install nixpkgs #cachix
9
- RUN cachix use text-generation-inference
9
+ RUN cachix use huggingface
10
10
WORKDIR /root
11
11
ADD . .
12
12
RUN nix build .
Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ Another option is to install `text-generation-inference` locally using [Nix](htt
256
256
we only support Nix on x86_64 Linux with CUDA GPUs. When using Nix, all dependencies can
257
257
be pulled from a binary cache, removing the need to build them locally.
258
258
259
- First follow the instructions to [install Cachix and enable the TGI cache](https://app.cachix.org/cache/text-generation-inference ).
259
+ First follow the instructions to [install Cachix and enable the Hugging Face cache](https://app.cachix.org/cache/huggingface ).
260
260
Setting up the cache is important, otherwise Nix will build many of the dependencies
261
261
locally, which can take hours.
262
262
Original file line number Diff line number Diff line change 2
2
inputs = {
3
3
crate2nix = {
4
4
url = "github:nix-community/crate2nix" ;
5
- inputs . nixpkgs . follows = "tgi -nix/nixpkgs" ;
5
+ inputs . nixpkgs . follows = "hf -nix/nixpkgs" ;
6
6
} ;
7
7
nix-filter . url = "github:numtide/nix-filter" ;
8
- tgi -nix. url = "github:huggingface/text-generation-inference- nix/merge-with-kernel-builder " ;
9
- nixpkgs . follows = "tgi -nix/nixpkgs" ;
8
+ hf -nix. url = "github:huggingface/hf- nix" ;
9
+ nixpkgs . follows = "hf -nix/nixpkgs" ;
10
10
flake-utils . url = "github:numtide/flake-utils" ;
11
11
rust-overlay = {
12
12
url = "github:oxalica/rust-overlay" ;
13
- inputs . nixpkgs . follows = "tgi -nix/nixpkgs" ;
13
+ inputs . nixpkgs . follows = "hf -nix/nixpkgs" ;
14
14
} ;
15
15
} ;
16
16
outputs =
21
21
nixpkgs ,
22
22
flake-utils ,
23
23
rust-overlay ,
24
- tgi -nix,
24
+ hf -nix,
25
25
} :
26
26
flake-utils . lib . eachDefaultSystem (
27
27
system :
33
33
} ;
34
34
pkgs = import nixpkgs {
35
35
inherit system ;
36
- inherit ( tgi -nix. lib ) config ;
36
+ inherit ( hf -nix. lib ) config ;
37
37
overlays = [
38
38
rust-overlay . overlays . default
39
- tgi -nix. overlays . default
39
+ hf -nix. overlays . default
40
40
( import nix/overlay.nix )
41
41
] ;
42
42
} ;
Original file line number Diff line number Diff line change @@ -13,26 +13,26 @@ final: prev: {
13
13
(
14
14
python-self : python-super : with python-self ; {
15
15
# Python package override example:
16
- transformers = python-super . transformers . overrideAttrs (
17
- _ : _ : {
18
- src = final . fetchFromGitHub {
19
- owner = "huggingface" ;
20
- repo = "transformers" ;
21
- rev = "v4.51.0" ;
22
- hash = "sha256-dnVpc6fm1SYGcx7FegpwVVxUY6XRlsxLs5WOxYv11y8=" ;
23
- } ;
24
- }
25
- ) ;
26
- huggingface-hub = python-super . huggingface-hub . overrideAttrs (
27
- _ : _ : {
28
- src = final . fetchFromGitHub {
29
- owner = "huggingface" ;
30
- repo = "huggingface_hub" ;
31
- rev = "v0.30.0" ;
32
- hash = "sha256-sz+n1uoWrSQPqJFiG/qCT6b4r08kD9MsoPZXbfWNB2o=" ;
33
- } ;
34
- }
35
- ) ;
16
+ # transformers = python-super.transformers.overrideAttrs (
17
+ # _: _: {
18
+ # src = final.fetchFromGitHub {
19
+ # owner = "huggingface";
20
+ # repo = "transformers";
21
+ # rev = "v4.51.0";
22
+ # hash = "sha256-dnVpc6fm1SYGcx7FegpwVVxUY6XRlsxLs5WOxYv11y8=";
23
+ # };
24
+ # }
25
+ # );
26
+ # huggingface-hub = python-super.huggingface-hub.overrideAttrs (
27
+ # _: _: {
28
+ # src = final.fetchFromGitHub {
29
+ # owner = "huggingface";
30
+ # repo = "huggingface_hub";
31
+ # rev = "v0.30.0";
32
+ # hash = "sha256-sz+n1uoWrSQPqJFiG/qCT6b4r08kD9MsoPZXbfWNB2o=";
33
+ # };
34
+ # }
35
+ # );
36
36
}
37
37
)
38
38
] ;
You can’t perform that action at this time.
0 commit comments