mirror of
https://github.com/denismhz/flake.git
synced 2025-11-10 00:33:34 +01:00
overlays/python: support bitsandbytes on older Nvidia GPUs (CC < 7.5)
This commit is contained in:
parent
ccda1f2bd4
commit
960ad05787
|
|
@ -63,4 +63,10 @@ lib: {
|
||||||
rocmSupport = false;
|
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 ++ [
|
nvidia = l.overlays.applyOverlays pkgs.python3Packages (commonOverlays ++ [
|
||||||
overlays.python-torchCuda
|
overlays.python-torchCuda
|
||||||
|
overlays.python-bitsAndBytesOldGpu
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue