mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-17 23:17:17 +00:00
datasetdef files
This commit is contained in:
parent
d75095033d
commit
b946afddc0
3 changed files with 29 additions and 16 deletions
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
|
@ -0,0 +1,21 @@
|
|||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
from llama_models.llama3.api.datatypes import URL
|
||||
from llama_stack.apis.common.type_system import StringType
|
||||
from llama_stack.apis.datasetio import DatasetDef
|
||||
|
||||
|
||||
llamastack_mmlu = DatasetDef(
|
||||
identifier="llamastack_mmlu",
|
||||
url=URL(uri="https://huggingface.co/datasets/yanxi0830/ls-mmlu"),
|
||||
dataset_schema={
|
||||
"expected_answer": StringType(),
|
||||
"input_query": StringType(),
|
||||
"generated_answer": StringType(),
|
||||
},
|
||||
metadata={"path": "yanxi0830/ls-mmlu", "split": "train"},
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue