mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-14 23:58:11 +08:00
parent
4f7c850115
commit
14ab14a0e6
@ -154,7 +154,7 @@ class MMLU(datasets.GeneratorBasedBuilder):
|
|||||||
]
|
]
|
||||||
|
|
||||||
def _generate_examples(self, filepath):
|
def _generate_examples(self, filepath):
|
||||||
df = pd.read_csv(filepath)
|
df = pd.read_csv(filepath, header=None)
|
||||||
df.columns = ["question", "A", "B", "C", "D", "answer"]
|
df.columns = ["question", "A", "B", "C", "D", "answer"]
|
||||||
|
|
||||||
for i, instance in enumerate(df.to_dict(orient="records")):
|
for i, instance in enumerate(df.to_dict(orient="records")):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user