feat(flake.nix, homeassistant.nix): enable CUDA for ctranslate2 and set device to cuda

This commit is contained in:
Giulio De Pasquale 2024-12-11 00:49:55 +00:00
parent 0f18c6ec87
commit 832761b32f
2 changed files with 9 additions and 2 deletions

View File

@ -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 }:

View File

@ -15,7 +15,7 @@ in
enable = true;
uri = "tcp://127.0.0.1:${toString whisperPort}";
model = "large-v3";
device = "auto";
device = "cuda";
language = "en";
};
};