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
a7164b62
"tests/nn/vscode:/vscode.git/clone" did not exist on "b36e01d5c0d848abfecd32a5334234a8b2ae00df"
Unverified
Commit
a7164b62
authored
Nov 17, 2024
by
Lianmin Zheng
Committed by
GitHub
Nov 17, 2024
Browse files
Tune the threshold for accuracy tests in CI (#2071)
parent
11668533
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
test/srt/test_eval_accuracy_large.py
test/srt/test_eval_accuracy_large.py
+3
-3
test/srt/test_moe_eval_accuracy_large.py
test/srt/test_moe_eval_accuracy_large.py
+3
-3
No files found.
test/srt/test_eval_accuracy_large.py
View file @
a7164b62
...
@@ -42,7 +42,7 @@ class TestEvalAccuracyLarge(unittest.TestCase):
...
@@ -42,7 +42,7 @@ class TestEvalAccuracyLarge(unittest.TestCase):
)
)
metrics
=
run_eval
(
args
)
metrics
=
run_eval
(
args
)
assert
metrics
[
"score"
]
>=
0.71
,
f
"
{
metrics
}
"
self
.
assert
Greater
(
metrics
[
"score"
]
,
0.71
)
def
test_human_eval
(
self
):
def
test_human_eval
(
self
):
args
=
SimpleNamespace
(
args
=
SimpleNamespace
(
...
@@ -54,7 +54,7 @@ class TestEvalAccuracyLarge(unittest.TestCase):
...
@@ -54,7 +54,7 @@ class TestEvalAccuracyLarge(unittest.TestCase):
)
)
metrics
=
run_eval
(
args
)
metrics
=
run_eval
(
args
)
assert
metrics
[
"score"
]
>=
0.64
,
f
"
{
metrics
}
"
self
.
assert
Greater
(
metrics
[
"score"
]
,
0.64
)
def
test_mgsm_en
(
self
):
def
test_mgsm_en
(
self
):
args
=
SimpleNamespace
(
args
=
SimpleNamespace
(
...
@@ -66,7 +66,7 @@ class TestEvalAccuracyLarge(unittest.TestCase):
...
@@ -66,7 +66,7 @@ class TestEvalAccuracyLarge(unittest.TestCase):
)
)
metrics
=
run_eval
(
args
)
metrics
=
run_eval
(
args
)
assert
metrics
[
"score"
]
>=
0.84
,
f
"
{
metrics
}
"
self
.
assert
Greater
(
metrics
[
"score"
]
,
0.84
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
test/srt/test_moe_eval_accuracy_large.py
View file @
a7164b62
...
@@ -47,7 +47,7 @@ class TestMoEEvalAccuracyLarge(unittest.TestCase):
...
@@ -47,7 +47,7 @@ class TestMoEEvalAccuracyLarge(unittest.TestCase):
)
)
metrics
=
run_eval
(
args
)
metrics
=
run_eval
(
args
)
assert
metrics
[
"score"
]
>=
0.62
,
f
"
{
metrics
}
"
self
.
assert
Greater
(
metrics
[
"score"
]
,
0.62
)
def
test_human_eval
(
self
):
def
test_human_eval
(
self
):
args
=
SimpleNamespace
(
args
=
SimpleNamespace
(
...
@@ -59,7 +59,7 @@ class TestMoEEvalAccuracyLarge(unittest.TestCase):
...
@@ -59,7 +59,7 @@ class TestMoEEvalAccuracyLarge(unittest.TestCase):
)
)
metrics
=
run_eval
(
args
)
metrics
=
run_eval
(
args
)
assert
metrics
[
"score"
]
>=
0.4
2
,
f
"
{
metrics
}
"
self
.
assert
Greater
(
metrics
[
"score"
]
,
0.4
1
)
def
test_mgsm_en
(
self
):
def
test_mgsm_en
(
self
):
args
=
SimpleNamespace
(
args
=
SimpleNamespace
(
...
@@ -71,7 +71,7 @@ class TestMoEEvalAccuracyLarge(unittest.TestCase):
...
@@ -71,7 +71,7 @@ class TestMoEEvalAccuracyLarge(unittest.TestCase):
)
)
metrics
=
run_eval
(
args
)
metrics
=
run_eval
(
args
)
assert
metrics
[
"score"
]
>=
0.62
,
f
"
{
metrics
}
"
self
.
assert
Greater
(
metrics
[
"score"
]
,
0.62
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
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