Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
f624f6a6
Unverified
Commit
f624f6a6
authored
Aug 16, 2024
by
Liangsheng Yin
Committed by
GitHub
Aug 16, 2024
Browse files
Fix port conflicts between local CI and runner CI. (#1131)
parent
3694f8f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
python/sglang/test/test_utils.py
python/sglang/test/test_utils.py
+12
-4
No files found.
python/sglang/test/test_utils.py
View file @
f624f6a6
...
...
@@ -3,6 +3,7 @@
import
argparse
import
asyncio
import
multiprocessing
import
os
import
subprocess
import
threading
import
time
...
...
@@ -22,10 +23,17 @@ from sglang.utils import get_exception_traceback
DEFAULT_MODEL_NAME_FOR_TEST
=
"meta-llama/Meta-Llama-3.1-8B-Instruct"
DEFAULT_MOE_MODEL_NAME_FOR_TEST
=
"mistralai/Mixtral-8x7B-Instruct-v0.1"
DEFAULT_URL_FOR_MOE_TEST
=
"http://127.0.0.1:6157"
DEFAULT_URL_FOR_ACCURACY_TEST
=
"http://127.0.0.1:7157"
DEFAULT_URL_FOR_UNIT_TEST
=
"http://127.0.0.1:8157"
DEFAULT_URL_FOR_E2E_TEST
=
"http://127.0.0.1:9157"
if
os
.
getenv
(
"SGLANG_IS_IN_CI"
,
"false"
)
==
"true"
:
DEFAULT_URL_FOR_MOE_TEST
=
"http://127.0.0.1:6157"
DEFAULT_URL_FOR_ACCURACY_TEST
=
"http://127.0.0.1:7157"
DEFAULT_URL_FOR_UNIT_TEST
=
"http://127.0.0.1:8157"
DEFAULT_URL_FOR_E2E_TEST
=
"http://127.0.0.1:9157"
else
:
DEFAULT_URL_FOR_MOE_TEST
=
"http://127.0.0.1:1157"
DEFAULT_URL_FOR_ACCURACY_TEST
=
"http://127.0.0.1:1257"
DEFAULT_URL_FOR_UNIT_TEST
=
"http://127.0.0.1:1357"
DEFAULT_URL_FOR_E2E_TEST
=
"http://127.0.0.1:1457"
def
call_generate_lightllm
(
prompt
,
temperature
,
max_tokens
,
stop
=
None
,
url
=
None
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment