Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature, Hardware] Enable SGLang on XPU GPUs via PyTorch #1480

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

liangan1
Copy link

@liangan1 liangan1 commented Sep 20, 2024

Pytorch already support XPU device since 2.4 release and xpu is also supported in OpenAI Trition. So, it should works with the Trition attention backend in SGLang. In this PR, We add 'xpu' device into SGLang.

Status

LLama-2-7b works for the latency benchmark.
VLLM_TEST_COMPILE_NO_CUSTOM_OPS=1 python -m sglang.bench_latency --model-path ~/.cache/huggingface/hub/models--meta-llama--Llama-2-7b-hf/snapshots/6fdf2e60f86ff2481f2241aaee459f85b5b0bbb9/ --device xpu

ToDO:

Functionality

  • Add the BKC to prepare the the xpu enabled pytorch and resolve the software combability with vllm when using the XPU enabled pytorch.
  • Enable other benchmarks.
  • Add UTs for the XPU device.

Performance

  • Customized ops support.

@liangan1 liangan1 marked this pull request as draft September 20, 2024 07:58
@liangan1 liangan1 changed the title Enable XPU device [Hardware|Feature] Enable XPU device Sep 20, 2024
@liangan1 liangan1 changed the title [Hardware|Feature] Enable XPU device [Feature, Hardware] Enable SGLang on XPU GPUs via PyTorch Sep 20, 2024
@@ -22,8 +22,8 @@ dependencies = [
[project.optional-dependencies]
srt = ["aiohttp", "decord", "fastapi", "hf_transfer", "huggingface_hub", "interegular",
"packaging", "pillow", "psutil", "pydantic", "python-multipart",
"torch", "torchao", "uvicorn", "uvloop", "zmq",
"vllm==0.5.5", "outlines>=0.0.44"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was the vllm dependency removed?

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.

2 participants