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:
Matthew Croughan 2023-10-23 02:10:00 +01:00 committed by GitHub
commit 7b9730e0a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -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";
});
};
} }

View file

@ -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
]); ]);
}; };