mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-15 22:47:59 +00:00
only keep 1 run_eval
This commit is contained in:
parent
6b889651d6
commit
fd581c3d88
4 changed files with 45 additions and 76 deletions
|
@ -50,6 +50,7 @@ class Testeval:
|
|||
]
|
||||
|
||||
response = await eval_impl.evaluate_rows(
|
||||
task_id="meta-reference::app_eval",
|
||||
input_rows=rows.rows,
|
||||
scoring_functions=scoring_functions,
|
||||
task_config=AppEvalTaskConfig(
|
||||
|
@ -75,10 +76,12 @@ class Testeval:
|
|||
"meta-reference::subset_of",
|
||||
]
|
||||
|
||||
task_id = "meta-reference::app_eval"
|
||||
response = await eval_impl.run_eval(
|
||||
task=EvalTaskDef(
|
||||
task_id=task_id,
|
||||
task_def=EvalTaskDef(
|
||||
# NOTE: this is needed to make the router work for all app evals
|
||||
identifier="meta-reference::app_eval",
|
||||
identifier=task_id,
|
||||
dataset_id="test_dataset_for_eval",
|
||||
scoring_functions=scoring_functions,
|
||||
),
|
||||
|
@ -90,13 +93,9 @@ class Testeval:
|
|||
),
|
||||
)
|
||||
assert response.job_id == "0"
|
||||
job_status = await eval_impl.job_status(
|
||||
response.job_id, "meta-reference::app_eval"
|
||||
)
|
||||
job_status = await eval_impl.job_status(task_id, response.job_id)
|
||||
assert job_status and job_status.value == "completed"
|
||||
eval_response = await eval_impl.job_result(
|
||||
response.job_id, "meta-reference::app_eval"
|
||||
)
|
||||
eval_response = await eval_impl.job_result(task_id, response.job_id)
|
||||
|
||||
assert eval_response is not None
|
||||
assert len(eval_response.generations) == 5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue