Skip to content

Conversation

@xiangyang-95
Copy link

This pull request adds support for running the project on Intel GPUs using the xpu device with PyTorch. The changes update documentation and code to recognize and utilize Intel GPU hardware, making the installation and prediction process more flexible.

Intel GPU support:

  • Updated README.md to include installation instructions for Intel GPU users, specifying the use of the --extra-index-url flag to access PyTorch's XPU wheels.
  • Extended the --device option help text in src/sharp/cli/predict.py to mention xpu as a supported device.
  • Modified device selection logic in predict_cli to check for Intel GPU availability using torch.xpu.is_available() and set the device to xpu if available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant