mirror of
https://github.com/denismhz/flake.git
synced 2025-11-09 08:06:23 +01:00
Merge pull request #57 from nixified-ai/bitsandbytes-support-old-gpus
support bitsandbytes on older Nvidia GPUs (CC < 7.5)
This commit is contained in:
commit
7b9730e0a7
|
|
@ -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";
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ in
|
|||
]);
|
||||
nvidia = l.overlays.applyOverlays pkgs.python3Packages (commonOverlays ++ [
|
||||
overlays.python-torchCuda
|
||||
overlays.python-bitsAndBytesOldGpu
|
||||
]);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue