mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 16:22:43 +00:00
fix evals and scoring
This commit is contained in:
parent
55d66ca918
commit
606df220f5
3 changed files with 2 additions and 3 deletions
|
|
@ -150,7 +150,7 @@ class MetaReferenceEvalImpl(Eval, EvalTasksProtocolPrivate):
|
|||
messages.append(candidate.system_message)
|
||||
messages += input_messages
|
||||
response = await self.inference_api.chat_completion(
|
||||
model=candidate.model,
|
||||
model_id=candidate.model,
|
||||
messages=messages,
|
||||
sampling_params=candidate.sampling_params,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class LlmAsJudgeScoringFn(BaseScoringFn):
|
|||
)
|
||||
|
||||
judge_response = await self.inference_api.chat_completion(
|
||||
model=fn_def.params.judge_model,
|
||||
model_id=fn_def.params.judge_model,
|
||||
messages=[
|
||||
{
|
||||
"role": "user",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue