-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[CI] Relax several thresholds in flaky CIs #21562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,8 +58,8 @@ def test_a_gsm8k( | |
| args = SimpleNamespace( | ||
| num_shots=20, | ||
| data_path=None, | ||
| num_questions=1319, | ||
| parallel=1319, | ||
| num_questions=500, | ||
| parallel=500, | ||
| max_new_tokens=512, | ||
| host="http://127.0.0.1", | ||
| port=int(self.base_url.split(":")[-1]), | ||
|
|
@@ -72,7 +72,7 @@ def test_a_gsm8k( | |
| f"### test_gsm8k (deepseek-v3-fp4)\n" f'{metrics["accuracy"]=:.3f}\n' | ||
| ) | ||
|
|
||
| self.assertGreater(metrics["accuracy"], 0.935) | ||
| self.assertGreater(metrics["accuracy"], 0.93) | ||
|
|
||
| def test_bs_1_speed(self): | ||
| args = BenchArgs(port=int(self.base_url.split(":")[-1]), max_new_tokens=2048) | ||
|
|
@@ -125,8 +125,8 @@ def test_a_gsm8k( | |
| args = SimpleNamespace( | ||
| num_shots=20, | ||
| data_path=None, | ||
| num_questions=1319, | ||
| parallel=1319, | ||
| num_questions=500, | ||
| parallel=500, | ||
|
Comment on lines
+128
to
+129
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Within this duplicated method, several values are hardcoded:
Defining these as module-level constants would avoid magic numbers and make future adjustments easier. |
||
| max_new_tokens=512, | ||
| host="http://127.0.0.1", | ||
| port=int(self.base_url.split(":")[-1]), | ||
|
|
@@ -139,7 +139,7 @@ def test_a_gsm8k( | |
| f"### test_gsm8k (deepseek-v3-fp4)\n" f'{metrics["accuracy"]=:.3f}\n' | ||
| ) | ||
|
|
||
| self.assertGreater(metrics["accuracy"], 0.935) | ||
| self.assertGreater(metrics["accuracy"], 0.93) | ||
|
|
||
| def test_bs_1_speed(self): | ||
| args = BenchArgs(port=int(self.base_url.split(":")[-1]), max_new_tokens=2048) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,7 +95,7 @@ def test_a_gsm8k( | |
| f'{metrics["accuracy"]=:.3f}\n' | ||
| f"{avg_spec_accept_length=:.2f}\n" | ||
| ) | ||
| self.assertGreater(metrics["accuracy"], 0.94) | ||
| self.assertGreater(metrics["accuracy"], 0.93) | ||
| self.assertGreater(avg_spec_accept_length, 2.7) | ||
|
|
||
| def test_bs_1_speed(self): | ||
|
|
@@ -185,7 +185,7 @@ def test_a_gsm8k( | |
| f'{metrics["accuracy"]=:.3f}\n' | ||
| f"{avg_spec_accept_length=:.2f}\n" | ||
| ) | ||
| self.assertGreater(metrics["accuracy"], 0.94) | ||
| self.assertGreater(metrics["accuracy"], 0.93) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| self.assertGreater(avg_spec_accept_length, 2.7) | ||
|
|
||
| def test_bs_1_speed(self): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This epsilon value is hardcoded. To improve readability and make it easier to adjust in the future, consider defining it as a constant at the module level, e.g.,
LOGPROB_DIFF_EPSILON = 2e-4.