Skip to content

[Bug] Unsloth fails to import on Intel Arc B580 #3533

@abrarfahim-1000

Description

@abrarfahim-1000

Unsloth fails to import on Intel Arc B580 because unsloth_zoo/temporary_patches/gpt_oss.py (line 540) calls torch.xpu.memory.mem_get_info(), which is not supported on this GPU.

When I try to run the given snippet on my notebook, the above error occurs. I am running it locally on my own hardware. Due to the error I am unable to use unsloth.

from unsloth import FastLanguageModel
import torch

model_name = "F:/LocalLLM/models/Qwen3-VL-8B-Instruct"

max_seq_length = 2048  # Choose sequence length
dtype = None  # Auto detection

# Load model and tokenizer
model, tokenizer = FastLanguageModel.from_pretrained(
    model_name=model_name,
    max_seq_length=max_seq_length,
    dtype=dtype,
    load_in_4bit=True,
)

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