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
2 changes: 1 addition & 1 deletion python/sglang/srt/openai_api/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import time
import uuid
from http import HTTPStatus
from typing import Any, Dict, List, Set
from typing import Dict, List

from fastapi import HTTPException, Request, UploadFile
from fastapi.responses import ORJSONResponse, StreamingResponse
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 @@ -29,7 +29,7 @@
from sglang.test.run_eval import run_eval
from sglang.utils import get_exception_traceback

DEFAULT_FP8_MODEL_NAME_FOR_TEST = "neuralmagic/Meta-Llama-3.1-8B-FP8"
DEFAULT_FP8_MODEL_NAME_FOR_TEST = "neuralmagic/Meta-Llama-3.1-8B-Instruct-FP8"
DEFAULT_FP8_MODEL_NAME_FOR_ACCURACY_TEST = "neuralmagic/Meta-Llama-3-8B-Instruct-FP8"
DEFAULT_FP8_MODEL_NAME_FOR_DYNAMIC_QUANT_ACCURACY_TEST = (
"neuralmagic/Meta-Llama-3.1-8B-Instruct-FP8-dynamic"
Expand Down
2 changes: 1 addition & 1 deletion test/srt/test_awq.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_mmlu(self):
)

metrics = run_eval(args)
self.assertGreater(metrics["score"], 0.65)
self.assertGreater(metrics["score"], 0.64)


if __name__ == "__main__":
Expand Down
6 changes: 3 additions & 3 deletions test/srt/test_eagle_infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class TestEAGLEEngine(CustomTestCase):
"speculative_eagle_topk": 4,
"speculative_num_draft_tokens": 8,
"mem_fraction_static": 0.7,
"cuda_graph_max_bs": 5,
"cuda_graph_max_bs": 4,
}
NUM_CONFIGS = 3

Expand Down Expand Up @@ -159,7 +159,7 @@ class TestEAGLEEngineTokenMap(TestEAGLEEngine):
"speculative_num_draft_tokens": 8,
"speculative_token_map": "thunlp/LLaMA3-Instruct-8B-FR-Spec/freq_32768.pt",
"mem_fraction_static": 0.7,
"cuda_graph_max_bs": 5,
"cuda_graph_max_bs": 4,
"dtype": "float16",
}
NUM_CONFIGS = 1
Expand All @@ -174,7 +174,7 @@ class TestEAGLE3Engine(TestEAGLEEngine):
"speculative_eagle_topk": 16,
"speculative_num_draft_tokens": 64,
"mem_fraction_static": 0.7,
"cuda_graph_max_bs": 5,
"cuda_graph_max_bs": 4,
"dtype": "float16",
}
NUM_CONFIGS = 1
Expand Down
41 changes: 19 additions & 22 deletions test/srt/test_mla_deepseek_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,25 @@ class TestDeepseekV3MTP(CustomTestCase):
def setUpClass(cls):
cls.model = "lmsys/sglang-ci-dsv3-test"
cls.base_url = DEFAULT_URL_FOR_TEST
other_args = ["--trust-remote-code"]
if torch.cuda.is_available() and (torch.version.cuda or torch.version.hip):
other_args.extend(
[
"--cuda-graph-max-bs",
"2",
"--disable-radix",
"--enable-torch-compile",
"--torch-compile-max-bs",
"1",
"--speculative-algorithm",
"EAGLE",
"--speculative-draft",
"lmsys/sglang-ci-dsv3-test-NextN",
"--speculative-num-steps",
"2",
"--speculative-eagle-topk",
"4",
"--speculative-num-draft-tokens",
"4",
]
)
other_args = [
"--trust-remote-code",
"--cuda-graph-max-bs",
"2",
"--disable-radix",
"--enable-torch-compile",
"--torch-compile-max-bs",
"1",
"--speculative-algorithm",
"EAGLE",
"--speculative-draft",
"lmsys/sglang-ci-dsv3-test-NextN",
"--speculative-num-steps",
"2",
"--speculative-eagle-topk",
"4",
"--speculative-num-draft-tokens",
"4",
]
cls.process = popen_launch_server(
cls.model,
cls.base_url,
Expand Down
5 changes: 3 additions & 2 deletions test/srt/test_server_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import unittest
from unittest.mock import MagicMock, patch

from sglang.srt.server_args import PortArgs, ServerArgs, prepare_server_args
from sglang.srt.server_args import PortArgs, prepare_server_args
from sglang.test.test_utils import CustomTestCase


Expand Down Expand Up @@ -75,7 +75,8 @@ def test_init_new_with_dp_rank(self, mock_is_port_available):

port_args = PortArgs.init_new(server_args, dp_rank=2)

self.assertTrue(port_args.scheduler_input_ipc_name.endswith(":25006"))
print(f"{port_args=}")
self.assertTrue(port_args.scheduler_input_ipc_name.endswith(":25007"))

self.assertTrue(port_args.tokenizer_ipc_name.startswith("tcp://192.168.1.1:"))
self.assertTrue(port_args.detokenizer_ipc_name.startswith("tcp://192.168.1.1:"))
Expand Down
Loading