Update README to include Intel XPU support description for unsloth studio by JoshuaL3000 · Pull Request #9250 · unslothai/unsloth · GitHub
Skip to content

Update README to include Intel XPU support description for unsloth studio - #9250

Merged
danielhanchen merged 1 commit into
unslothai:mainfrom
JoshuaL3000:fix/readme-xpu-studio-support
Aug 19, 2026
Merged

Update README to include Intel XPU support description for unsloth studio#9250
danielhanchen merged 1 commit into
unslothai:mainfrom
JoshuaL3000:fix/readme-xpu-studio-support

Conversation

@JoshuaL3000

Copy link
Copy Markdown
Contributor

What This PR Does

Adds Intel GPU (XPU) support to the Unsloth studio section in the README.
Depends on #9084 which enables XPU auto-detection and llama.cpp SYCL compilation, which this PR also validates it on Intel hardware, see section below.

Validation

Tested #9084 implementation and verified its working on an Intel 4x Arc Pro B60 24GB (XPU).
I had to explicitly source oneapi/setvars.sh to enable sycl-ls and icpx on PATH and set UNSLOTH_LLAMA_FORCE_COMPILE=1 (from studio/setup.sh) to force the source build path so that llama.cpp builds on the SYCL backend rather than Vulkan backend.

Install command for Intel XPU detection:

source intel/oneapi/setvars.sh    # intel oneapi path
cd unsloth && UNSLOTH_LLAMA_FORCE_COMPILE=1 . install.sh     # with PR9084 changes

Note: Not sourcing oneapi/setvars.sh also works. When sycl-ls/xpu-smi are not on PATH, it fallbacks to checking for vendor 0x8086 in /sys/bus/pci/devices under the _has_intel_xpu_gpu() function.

Output:
The install detects Intel GPU (XPU) and installs torch 2.10.0+xpu correctly.
image

To confirm the llama.cpp backend is using SYCL:

source intel/oneapi/setvars.sh   # intel oneapi path
export LD_LIBRARY_PATH=~/.unsloth/llama.cpp/build/bin:$LD_LIBRARY_PATH   # the source build produces shared libs that need to be found
~/.unsloth/llama.cpp/build/bin/llama-server --list-devices

Output:

Available devices:
  SYCL0: Intel(R) Arc(TM) Pro B60 Graphics (24480 MiB, 24480 MiB free)
  SYCL1: Intel(R) Arc(TM) Pro B60 Graphics (24480 MiB, 24480 MiB free)
  SYCL2: Intel(R) Arc(TM) Pro B60 Graphics (24480 MiB, 24480 MiB free)
  SYCL3: Intel(R) Arc(TM) Pro B60 Graphics (24480 MiB, 24480 MiB free)

@danielhanchen

Copy link
Copy Markdown
Member

@JoshuaL3000
JoshuaL3000 force-pushed the fix/readme-xpu-studio-support branch from 460c0e1 to 12f992c Compare August 19, 2026 05:32
@JoshuaL3000

Copy link
Copy Markdown
Contributor Author

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Aug 19, 2026
@danielhanchen
danielhanchen merged commit 0885380 into unslothai:main Aug 19, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants