nix: build Torch against MKL and various other improvements (#2469)

Updates tgi-nix input:

- Move Torch closer to upstream by building against MKL.
- Remove compute capability 8.7 from Torch (Jetson).
- Sync nixpkgs cumpute capabilities with Torch (avoids
  compiling too mana capabilities for MAGMA).
- Use nixpkgs configuration passed through by `tgi-nix`.
This commit is contained in:
Daniël de Kok 2024-08-29 16:25:25 +02:00 committed by GitHub
parent 8f99f165ce
commit 4e821c003a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 9 deletions

View File

@ -944,11 +944,11 @@
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1724270760,
"narHash": "sha256-KX566x0+3HZcB20HPdvdwyMm7ZJg21M+iqVrs/HCimA=",
"lastModified": 1724784743,
"narHash": "sha256-NdEoWeNwR/ZstYnHaiQWIYZvr7VsrAh7g3+ZHUPrxuI=",
"owner": "danieldk",
"repo": "tgi-nix",
"rev": "12cbaa76ff258351741d3b5afb7161f617fe7b4c",
"rev": "c9580c3e39a855246bb87b584bbea1885b44f524",
"type": "github"
},
"original": {

View File

@ -31,15 +31,12 @@
src = ./.;
additionalCargoNixArgs = [ "--all-features" ];
};
config = {
allowUnfree = true;
cudaSupport = true;
};
pkgs = import nixpkgs {
inherit config system;
inherit system;
inherit (tgi-nix.lib) config;
overlays = [
rust-overlay.overlays.default
tgi-nix.overlay
tgi-nix.overlays.default
];
};
crateOverrides = import ./nix/crate-overrides.nix { inherit pkgs nix-filter; };

View File

@ -28,6 +28,7 @@
peft,
safetensors,
tokenizers,
torch,
sentencepiece,
transformers,
typer,