File size: 384 Bytes
39b7b6a
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import weave
from datasets import load_dataset

weave.init("ml-colabs/medrag-multi-modal")
rows = load_dataset("cais/mmlu", "anatomy", split="test").to_list()
for idx, row in enumerate(rows):
    rows[idx] = {
        "query": row["question"],
        "options": row["choices"],
        "answer": row["answer"],
    }
weave.publish(weave.Dataset(rows=rows, name="mmlu-anatomy-test"))