Skip to content

Add support for Intel GPU Memory Information #164429

@AlstonTang

Description

@AlstonTang

🚀 The feature, motivation and pitch

It would be nice if PyTorch added support for torch.xpu.memory.mem_get_info()! When calling this in PyTorch 2.8.0+xpu, the following RuntimeError shows up:

RuntimeError: The device (Intel(R) Arc(TM) Graphics) doesn't support querying the available free memory. You can file an issue at https://github.com/pytorch/pytorch/issues to help us prioritize its implementation.

This way, code (and other libraries/frameworks) can get memory information for Intel GPUs, which can be useful.

Alternatives

No response

Additional context

I was trying to use bitsandbytes to quantize LLM for HuggingFace Transformers inference, but it required accessing memory information from the xpu.

cc @gujinghui @EikanWang @fengyuan14 @guangyey

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: xpuIntel XPU related issuestriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions