feat(flake.nix, homeassistant.nix): enable CUDA for ctranslate2 and set device to cuda
This commit is contained in:
parent
0f18c6ec87
commit
832761b32f
@ -75,7 +75,14 @@
|
||||
in
|
||||
import nixpkgs {
|
||||
inherit system config;
|
||||
overlays = additionalOverlays ++ extOverlays;
|
||||
overlays = additionalOverlays ++ extOverlays ++ [
|
||||
(final: prev: {
|
||||
ctranslate2 = prev.ctranslate2.override {
|
||||
withCUDA = true;
|
||||
withCuDNN = true;
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
wrapUtils = { pkgs }:
|
||||
|
@ -15,7 +15,7 @@ in
|
||||
enable = true;
|
||||
uri = "tcp://127.0.0.1:${toString whisperPort}";
|
||||
model = "large-v3";
|
||||
device = "auto";
|
||||
device = "cuda";
|
||||
language = "en";
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user