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
8a56b431
"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "f7cd6b87e1ee8c7909de760f22f1a6b0c6ae0592"
Unverified
Commit
8a56b431
authored
Dec 23, 2024
by
Ying Sheng
Committed by
GitHub
Dec 24, 2024
Browse files
[Bench] Flush cache before benchmarking (#2566)
parent
e835a500
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
python/sglang/bench_serving.py
python/sglang/bench_serving.py
+1
-0
No files found.
python/sglang/bench_serving.py
View file @
8a56b431
...
@@ -924,6 +924,7 @@ async def benchmark(
...
@@ -924,6 +924,7 @@ async def benchmark(
f
"are correctly specified. Error:
{
test_output
.
error
}
"
f
"are correctly specified. Error:
{
test_output
.
error
}
"
)
)
else
:
else
:
requests
.
post
(
base_url
+
"/flush_cache"
)
print
(
"Initial test run completed. Starting main benchmark run..."
)
print
(
"Initial test run completed. Starting main benchmark run..."
)
time
.
sleep
(
1.5
)
time
.
sleep
(
1.5
)
...
...
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