Skip to content

Commit 7b9730e

Browse files
Merge pull request #57 from nixified-ai/bitsandbytes-support-old-gpus
support bitsandbytes on older Nvidia GPUs (CC < 7.5)
2 parents ccda1f2 + 960ad05 commit 7b9730e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

overlays/python/default.nix

+6
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,10 @@ lib: {
6363
rocmSupport = false;
6464
};
6565
};
66+
67+
bitsAndBytesOldGpu = final: prev: {
68+
bitsandbytes = prev.bitsandbytes.overridePythonAttrs (old: {
69+
preBuild = old.preBuild + " cuda${final.torch.cudaPackages.cudaMajorVersion}x_nomatmul";
70+
});
71+
};
6672
}

projects/textgen/default.nix

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ in
3030
]);
3131
nvidia = l.overlays.applyOverlays pkgs.python3Packages (commonOverlays ++ [
3232
overlays.python-torchCuda
33+
overlays.python-bitsAndBytesOldGpu
3334
]);
3435
};
3536

0 commit comments

Comments
 (0)