mirror of
https://github.com/p-e-w/heretic.git
synced 2026-10-02 08:51:27 -07:00
feat: Add alternate CI hash in the valid list (for qwen2.5) (#412)
* feat: Add alternate CI hash in the valid list (for qwen2.5) * ruff
This commit is contained in:
+9
-11
@@ -773,18 +773,16 @@ def run():
|
||||
# Best trials isn't sorted, so sort by all the scores in non-decreasing order.
|
||||
sorted_trials = sorted(
|
||||
study.best_trials,
|
||||
key=lambda trial: (
|
||||
tuple(
|
||||
next(
|
||||
(
|
||||
score["score"]["value"]
|
||||
for score in trial.user_attrs["scores"]
|
||||
if score["name"] == name
|
||||
),
|
||||
None,
|
||||
)
|
||||
for name in objective_names
|
||||
key=lambda trial: tuple(
|
||||
next(
|
||||
(
|
||||
score["score"]["value"]
|
||||
for score in trial.user_attrs["scores"]
|
||||
if score["name"] == name
|
||||
),
|
||||
None,
|
||||
)
|
||||
for name in objective_names
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user