Last active
August 9, 2024 07:30
-
-
Save danieldk/09c8e6ea87cebcdbf0aeea8422eb8219 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs = { | |
tgi-nix.url = "github:danieldk/tgi-nix"; | |
#tgi-nix.url = "path:/home/daniel/git/tgi-nix"; | |
nixpkgs.follows = "tgi-nix/nixpkgs"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = | |
{ | |
self, | |
nixpkgs, | |
flake-utils, | |
tgi-nix, | |
}: | |
flake-utils.lib.eachDefaultSystem ( | |
system: | |
let | |
config = { | |
allowUnfree = true; | |
cudaSupport = true; | |
}; | |
pkgs = import nixpkgs { | |
inherit config system; | |
overlays = [ tgi-nix.overlay ]; | |
}; | |
in | |
{ | |
devShells.default = | |
with pkgs; | |
mkShell { | |
buildInputs = | |
[ | |
cargo | |
openssl.dev | |
pkg-config | |
] | |
++ (with python3.pkgs; [ | |
venvShellHook | |
pip | |
einops | |
fbgemm-gpu | |
flash-attn | |
flash-attn-layer-norm | |
flash-attn-rotary | |
grpc-interceptor | |
grpcio-reflection | |
grpcio-status | |
hf-transfer | |
loguru | |
marlin-kernels | |
opentelemetry-api | |
opentelemetry-exporter-otlp | |
opentelemetry-instrumentation-grpc | |
opentelemetry-semantic-conventions | |
peft | |
tokenizers | |
torch | |
transformers | |
vllm | |
]); | |
venvDir = "./.venv"; | |
postVenv = '' | |
unset SOURCE_DATE_EPOCH | |
''; | |
postShellHook = '' | |
unset SOURCE_DATE_EPOCH | |
''; | |
}; | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment