{"record":{"id":"60ee215e50846606","repo":"huggingface/transformers","slug":"none-of-the-available-devices-available-devices","errorCode":null,"errorMessage":"None of the available devices `available_devices = {available_devices or None}` are supported by the bitsandbytes version you have installed: `bnb_supported_devices = {bnb_supported_devices}`. Please check the docs to see if the backend you intend to use is available and how to install it: https://huggingface.co/docs/bitsandbytes/main/en/installation","messagePattern":"None of the available devices `available_devices = (.+?)` are supported by the bitsandbytes version you have installed: `bnb_supported_devices = (.+?)`\\. Please check the docs to see if the backend you intend to use is available and how to install it: https://huggingface\\.co/docs/bitsandbytes/main/en/installation","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"src/transformers/integrations/bitsandbytes.py","lineNumber":345,"sourceCode":"            \"For some reason the model has not been properly dequantized. You might see unexpected behavior.\"\n        )\n    return model\n\n\ndef validate_bnb_backend_availability(raise_exception=False):\n    \"\"\"\n    Validates if the available devices are supported by bitsandbytes, optionally raising an exception if not.\n    \"\"\"\n    bnb_supported_devices = getattr(bnb, \"supported_torch_devices\", set())\n    available_devices = set(get_available_devices())\n\n    if not available_devices.intersection(bnb_supported_devices):\n        if raise_exception:\n            err_msg = (\n                f\"None of the available devices `available_devices = {available_devices or None}` are supported by the bitsandbytes version you have installed: `bnb_supported_devices = {bnb_supported_devices}`. \"\n                \"Please check the docs to see if the backend you intend to use is available and how to install it: https://huggingface.co/docs/bitsandbytes/main/en/installation\"\n            )\n            raise RuntimeError(err_msg)\n\n        logger.warning(\"No supported devices found for bitsandbytes\")\n        return False\n    return True\n","sourceCodeStart":327,"sourceCodeEnd":350,"githubUrl":"https://github.com/huggingface/transformers/blob/a597f974857b3d92939971296bc0deb93d33d780/src/transformers/integrations/bitsandbytes.py#L327-L350","documentation":"Error \"None of the available devices `available_devices = {available_devices or None}` are supported by the bitsandbytes version you have installed: `bnb_supported_devices = {bnb_supported_devices}`. Please check the docs to see if the backend you intend to use is available and how to install it: https://huggingface.co/docs/bitsandbytes/main/en/installation\" thrown in huggingface/transformers.","triggerScenarios":"Raised in bitsandbytes device compatibility check when no available device is supported by the installed bnb build.","commonSituations":"bitsandbytes built without support for the current hardware (e.g. no CUDA build on a CUDA-only model load).","solutions":["Install a bitsandbytes build that supports your available devices (see its installation docs).","Run on a device supported by the installed bitsandbytes version."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a597f974857b3d92939971296bc0deb93d33d780","analyzedAt":"2026-08-14T18:24:08.354Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}