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
|
in
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
inherit system config;
|
inherit system config;
|
||||||
overlays = additionalOverlays ++ extOverlays;
|
overlays = additionalOverlays ++ extOverlays ++ [
|
||||||
|
(final: prev: {
|
||||||
|
ctranslate2 = prev.ctranslate2.override {
|
||||||
|
withCUDA = true;
|
||||||
|
withCuDNN = true;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
wrapUtils = { pkgs }:
|
wrapUtils = { pkgs }:
|
||||||
|
@ -15,7 +15,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
uri = "tcp://127.0.0.1:${toString whisperPort}";
|
uri = "tcp://127.0.0.1:${toString whisperPort}";
|
||||||
model = "large-v3";
|
model = "large-v3";
|
||||||
device = "auto";
|
device = "cuda";
|
||||||
language = "en";
|
language = "en";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user