mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-10 19:43:16 +00:00
rebase on top of registry
This commit is contained in:
commit
6abef716dd
107 changed files with 4813 additions and 3587 deletions
|
|
@ -43,13 +43,12 @@ class MetaReferenceEvalsImpl(Evals):
|
|||
print("generation start")
|
||||
for msg in x1[:5]:
|
||||
print("generation for msg: ", msg)
|
||||
response = self.inference_api.chat_completion(
|
||||
response = await self.inference_api.chat_completion(
|
||||
model=model,
|
||||
messages=[msg],
|
||||
stream=False,
|
||||
)
|
||||
async for x in response:
|
||||
generation_outputs.append(x.completion_message.content)
|
||||
generation_outputs.append(response.completion_message.content)
|
||||
|
||||
x2 = task_impl.postprocess(generation_outputs)
|
||||
eval_results = task_impl.score(x2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue