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:
parent
8f99f165ce
commit
4e821c003a
|
@ -944,11 +944,11 @@
|
||||||
"nixpkgs": "nixpkgs_6"
|
"nixpkgs": "nixpkgs_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1724270760,
|
"lastModified": 1724784743,
|
||||||
"narHash": "sha256-KX566x0+3HZcB20HPdvdwyMm7ZJg21M+iqVrs/HCimA=",
|
"narHash": "sha256-NdEoWeNwR/ZstYnHaiQWIYZvr7VsrAh7g3+ZHUPrxuI=",
|
||||||
"owner": "danieldk",
|
"owner": "danieldk",
|
||||||
"repo": "tgi-nix",
|
"repo": "tgi-nix",
|
||||||
"rev": "12cbaa76ff258351741d3b5afb7161f617fe7b4c",
|
"rev": "c9580c3e39a855246bb87b584bbea1885b44f524",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -31,15 +31,12 @@
|
||||||
src = ./.;
|
src = ./.;
|
||||||
additionalCargoNixArgs = [ "--all-features" ];
|
additionalCargoNixArgs = [ "--all-features" ];
|
||||||
};
|
};
|
||||||
config = {
|
|
||||||
allowUnfree = true;
|
|
||||||
cudaSupport = true;
|
|
||||||
};
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit config system;
|
inherit system;
|
||||||
|
inherit (tgi-nix.lib) config;
|
||||||
overlays = [
|
overlays = [
|
||||||
rust-overlay.overlays.default
|
rust-overlay.overlays.default
|
||||||
tgi-nix.overlay
|
tgi-nix.overlays.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
crateOverrides = import ./nix/crate-overrides.nix { inherit pkgs nix-filter; };
|
crateOverrides = import ./nix/crate-overrides.nix { inherit pkgs nix-filter; };
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
peft,
|
peft,
|
||||||
safetensors,
|
safetensors,
|
||||||
tokenizers,
|
tokenizers,
|
||||||
|
torch,
|
||||||
sentencepiece,
|
sentencepiece,
|
||||||
transformers,
|
transformers,
|
||||||
typer,
|
typer,
|
||||||
|
|
Loading…
Reference in New Issue