Skip to content
Merged
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
4 changes: 2 additions & 2 deletions docs/advanced_features/vlm_query.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"image = Image.open(\n",
" BytesIO(\n",
" requests.get(\n",
" \"https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true\"\n",
" \"https://github.com/sgl-project/sglang/blob/main/examples/assets/example_image.png?raw=true\"\n",
" ).content\n",
" )\n",
")\n",
Expand Down Expand Up @@ -187,7 +187,7 @@
"image = Image.open(\n",
" BytesIO(\n",
" requests.get(\n",
" \"https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true\"\n",
" \"https://github.com/sgl-project/sglang/blob/main/examples/assets/example_image.png?raw=true\"\n",
" ).content\n",
" )\n",
")\n",
Expand Down
8 changes: 4 additions & 4 deletions docs/basic_usage/openai_api_vision.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
" {{\n",
" \"type\": \"image_url\",\n",
" \"image_url\": {{\n",
" \"url\": \"https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true\"\n",
" \"url\": \"https://github.com/sgl-project/sglang/blob/main/examples/assets/example_image.png?raw=true\"\n",
" }}\n",
" }}\n",
" ]\n",
Expand Down Expand Up @@ -120,7 +120,7 @@
" {\n",
" \"type\": \"image_url\",\n",
" \"image_url\": {\n",
" \"url\": \"https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true\"\n",
" \"url\": \"https://github.com/sgl-project/sglang/blob/main/examples/assets/example_image.png?raw=true\"\n",
" },\n",
" },\n",
" ],\n",
Expand Down Expand Up @@ -163,7 +163,7 @@
" {\n",
" \"type\": \"image_url\",\n",
" \"image_url\": {\n",
" \"url\": \"https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true\"\n",
" \"url\": \"https://github.com/sgl-project/sglang/blob/main/examples/assets/example_image.png?raw=true\"\n",
" },\n",
" },\n",
" ],\n",
Expand Down Expand Up @@ -203,7 +203,7 @@
" {\n",
" \"type\": \"image_url\",\n",
" \"image_url\": {\n",
" \"url\": \"https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true\",\n",
" \"url\": \"https://github.com/sgl-project/sglang/blob/main/examples/assets/example_image.png?raw=true\",\n",
" },\n",
" },\n",
" {\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/basic_usage/qwen3_vl.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ data = {
{
"type": "image_url",
"image_url": {
"url": "https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true"
"url": "https://github.com/sgl-project/sglang/blob/main/examples/assets/example_image.png?raw=true"
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion docs/basic_usage/sampling_params.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ python3 -m sglang.launch_server --model-path lmms-lab/llava-onevision-qwen2-7b-o
Download an image:

```bash
curl -o example_image.png -L https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true
curl -o example_image.png -L https://github.com/sgl-project/sglang/blob/main/examples/assets/example_image.png?raw=true
```

Send a request:
Expand Down
2 changes: 1 addition & 1 deletion docs/references/frontend/frontend_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@
" s += assistant(gen(\"answer\", max_tokens=256))\n",
"\n",
"\n",
"image_url = \"https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true\"\n",
"image_url = \"https://github.com/sgl-project/sglang/blob/main/examples/assets/example_image.png?raw=true\"\n",
"image_bytes, _ = load_image(image_url)\n",
"state = image_qa(image_bytes, \"What is in the image?\")\n",
"print_highlight(state[\"answer\"])"
Expand Down
1 change: 1 addition & 0 deletions examples/assets/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!example_image.png
File renamed without changes
2 changes: 1 addition & 1 deletion examples/runtime/engine/offline_batch_inference_vlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def main(
conv = chat_templates[server_args.chat_template].copy()
image_token = conv.image_token

image_url = "https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true"
image_url = "https://github.com/sgl-project/sglang/blob/main/examples/assets/example_image.png?raw=true"

prompt = f"What's in this image?\n{image_token}"

Expand Down
2 changes: 1 addition & 1 deletion examples/runtime/multimodal/llava_onevision_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def multi_image_stream_request_test(client):
{
"type": "image_url",
"image_url": {
"url": "https://raw.githubusercontent.com/sgl-project/sglang/main/test/lang/example_image.png"
"url": "https://raw.githubusercontent.com/sgl-project/sglang/main/examples/assets/example_image.png"
},
"modalities": "multi-images",
},
Expand Down
10 changes: 5 additions & 5 deletions python/sglang/test/send_one.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ def send_one_prompt(args):
args.prompt = (
"Human: Describe this image in a very short sentence.\n\nAssistant:"
)
image_data = "https://raw.githubusercontent.com/sgl-project/sglang/main/test/lang/example_image.png"
image_data = "https://raw.githubusercontent.com/sgl-project/sglang/main/examples/assets/example_image.png"
elif args.many_images:
args.prompt = (
"Human: I have one reference image and many images."
"Describe their relationship in a very short sentence.\n\nAssistant:"
)
image_data = [
"https://raw.githubusercontent.com/sgl-project/sglang/main/test/lang/example_image.png",
"https://raw.githubusercontent.com/sgl-project/sglang/main/test/lang/example_image.png",
"https://raw.githubusercontent.com/sgl-project/sglang/main/test/lang/example_image.png",
"https://raw.githubusercontent.com/sgl-project/sglang/main/test/lang/example_image.png",
"https://raw.githubusercontent.com/sgl-project/sglang/main/examples/assets/example_image.png",
"https://raw.githubusercontent.com/sgl-project/sglang/main/examples/assets/example_image.png",
"https://raw.githubusercontent.com/sgl-project/sglang/main/examples/assets/example_image.png",
"https://raw.githubusercontent.com/sgl-project/sglang/main/examples/assets/example_image.png",
]
else:
image_data = None
Expand Down
2 changes: 1 addition & 1 deletion python/sglang/test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
DEFAULT_SMALL_MODEL_NAME_FOR_TEST_QWEN = "Qwen/Qwen2.5-1.5B-Instruct"
DEFAULT_SMALL_VLM_MODEL_NAME_FOR_TEST = "Qwen/Qwen2.5-VL-3B-Instruct"

DEFAULT_IMAGE_URL = "https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true"
DEFAULT_IMAGE_URL = "https://github.com/sgl-project/sglang/blob/main/examples/assets/example_image.png?raw=true"
DEFAULT_VIDEO_URL = "https://raw.githubusercontent.com/EvolvingLMMs-Lab/sglang/dev/onevision_local/assets/jobs.mp4"

DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH = 600
Expand Down
24 changes: 0 additions & 24 deletions test/lang/test_litellm_backend.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions test/srt/run_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,6 @@
TestFile("debug_utils/test_log_parser.py", 5),
TestFile("test_deepseek_v3_cutedsl_4gpu.py"),
TestFile("entrypoints/http_server/test_abort_request.py"),
TestFile("ep/test_deepep_internode.py"),
TestFile("ep/test_deepep_intranode.py"),
TestFile("ep/test_deepep_low_latency.py"),
TestFile("ep/test_eplb.py"),
TestFile("ep/test_hybrid_dp_ep_tp_mtp.py"),
TestFile("ep/test_moe_deepep.py"),
TestFile("ep/test_moe_deepep_eval_accuracy_large.py"),
TestFile("hicache/test_disaggregation_hicache.py"),
TestFile("layers/attention/nsa/test_act_quant_triton.py"),
TestFile("layers/moe/test_moe_runners.py"),
Expand Down
4 changes: 2 additions & 2 deletions test/srt/test_session_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,8 @@ def test_session_control(self):
"<|im_start|>user\nDescribe this image in a very short sentence.<|im_end|>\nassistant:",
]
image_chunks = [
"https://raw.githubusercontent.com/sgl-project/sglang/main/test/lang/example_image.png",
"https://raw.githubusercontent.com/sgl-project/sglang/main/test/lang/example_image.png",
"https://raw.githubusercontent.com/sgl-project/sglang/main/examples/assets/example_image.png",
"https://raw.githubusercontent.com/sgl-project/sglang/main/examples/assets/example_image.png",
"https://raw.githubusercontent.com/sgl-project/sglang/main/assets/logo.png",
]

Expand Down
2 changes: 1 addition & 1 deletion test/srt/test_vlm_accuracy.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
class VisionLLMLogitsBase(unittest.IsolatedAsyncioTestCase):
@classmethod
def setUpClass(cls):
cls.image_url = "https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true"
cls.image_url = "https://github.com/sgl-project/sglang/blob/main/examples/assets/example_image.png?raw=true"
cls.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
cls.model_path = ""
cls.chat_template = ""
Expand Down
2 changes: 1 addition & 1 deletion test/srt/test_vlm_input_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from sglang.srt.entrypoints.openai.protocol import ChatCompletionRequest
from sglang.srt.parser.conversation import generate_chat_conv

TEST_IMAGE_URL = "https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true"
TEST_IMAGE_URL = "https://github.com/sgl-project/sglang/blob/main/examples/assets/example_image.png?raw=true"


class VLMInputTestBase:
Expand Down
Loading