Move parsers under a single folder (#9912)

This commit is contained in:
Lianmin Zheng
2025-09-02 18:25:04 -07:00
committed by GitHub
parent 369b143366
commit 60e37f8028
28 changed files with 31 additions and 30 deletions

View File

@@ -313,7 +313,7 @@
"outputs": [],
"source": [
"import sglang as sgl\n",
"from sglang.srt.reasoning_parser import ReasoningParser\n",
"from sglang.srt.parser.reasoning_parser import ReasoningParser\n",
"from sglang.utils import print_highlight\n",
"\n",
"llm = sgl.Engine(model_path=\"deepseek-ai/DeepSeek-R1-Distill-Qwen-7B\")\n",

View File

@@ -44,7 +44,7 @@
"import requests\n",
"from PIL import Image\n",
"\n",
"from sglang.srt.conversation import chat_templates\n",
"from sglang.srt.parser.conversation import chat_templates\n",
"\n",
"image = Image.open(\n",
" BytesIO(\n",
@@ -182,7 +182,7 @@
"import requests\n",
"from PIL import Image\n",
"\n",
"from sglang.srt.conversation import chat_templates\n",
"from sglang.srt.parser.conversation import chat_templates\n",
"\n",
"image = Image.open(\n",
" BytesIO(\n",