Skip to content

Add support for non-CUDA architectures at the same time Bitsandbytes is doing it #31248

Open
@sealad886

Description

@sealad886

Feature request

Currently, the helper/setup functions explicitly check for CUDA support:

def validate_environment(self, *args, **kwargs):
if not torch.cuda.is_available():
raise RuntimeError("No GPU found. A GPU is needed for quantization.")
if not (is_accelerate_available() and is_bitsandbytes_available()):

BNB is currently doing a project to enable support for other GPU backends:
ALPHA TESTERS WANTED

Motivation

Apple MPS support is being added for so many major players, it'd be great for the biggest one of all to support it as its dependencies do. Also would be good to not hard-code this kind of limitation so that code updates aren't necessary as dependent libraries update themselves...

Your contribution

idea done

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions