Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/srt/run_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@
}

# Add Intel XPU tests
# NOTE: please sort the test cases alphabetically by the test file name
# NOTE: Intentionally NOT alphabetical. Lighter benchmarks run first because
# heavy models (e.g. DeepSeek-OCR ~6GB) can leave XPU device memory unreclaimed,
# causing OOM for subsequent tests on memory-constrained devices.
suite_xpu = {
"per-commit-xpu": [
TestFile("xpu/test_intel_xpu_backend.py"),
TestFile("xpu/test_deepseek_ocr.py"),
# TestFile("xpu/test_internvl.py"),
TestFile("xpu/test_intel_xpu_backend.py"),
],
}

Expand Down
3 changes: 2 additions & 1 deletion test/srt/xpu/test_deepseek_ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from sglang.srt.utils import kill_process_tree
from sglang.test.test_utils import (
DEFAULT_IMAGE_URL,
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
DEFAULT_URL_FOR_TEST,
CustomTestCase,
Expand Down Expand Up @@ -50,7 +51,7 @@ def get_request_json(self, max_new_tokens=32, n=1):
self.base_url + "/generate",
json={
"text": "<image>\n<|grounding|>Convert the document to pure text.",
"image_data": "../../examples/assets/example_image.png",
"image_data": DEFAULT_IMAGE_URL,
"sampling_params": {
"temperature": 0 if n == 1 else 0.5,
"max_new_tokens": max_new_tokens,
Expand Down
Loading