overlays/python: support bitsandbytes on older Nvidia GPUs (CC < 7.5)

This commit is contained in:
Max 2023-10-23 01:35:50 +02:00
parent ccda1f2bd4
commit 960ad05787
2 changed files with 7 additions and 0 deletions

View file

@ -63,4 +63,10 @@ lib: {
rocmSupport = false;
};
};
bitsAndBytesOldGpu = final: prev: {
bitsandbytes = prev.bitsandbytes.overridePythonAttrs (old: {
preBuild = old.preBuild + " cuda${final.torch.cudaPackages.cudaMajorVersion}x_nomatmul";
});
};
}

View file

@ -30,6 +30,7 @@ in
]);
nvidia = l.overlays.applyOverlays pkgs.python3Packages (commonOverlays ++ [
overlays.python-torchCuda
overlays.python-bitsAndBytesOldGpu
]);
};