Views
No views yet
| Model | Average | ARC | HellaSwag | MMLU | TruthfulQA |
|---|---|---|---|---|---|
| meta-llama/Llama-2-13b-hf | 56.9 | 58.11 | 80.97 | 54.34 | 34.17 |
| meta-llama/Llama-2-13b-chat-hf | 59.93 | 59.04 | 81.94 | 54.64 | 44.12 |
| CHIH-HUNG/llama-2-13b-Fintune_1_17w | 58.24 | 59.47 | 81 | 54.31 | 38.17 |
| CHIH-HUNG/llama-2-13b-huangyt_Fintune_1_17w-q_k_v_o_proj | 58.49 | 59.73 | 81.06 | 54.53 | 38.64 |
| CHIH-HUNG/llama-2-13b-Fintune_1_17w-gate_up_down_proj | 58.81 | 57.17 | 82.26 | 55.89 | 39.93 |
| CHIH-HUNG/llama-2-13b-FINETUNE1_17w-r16 | 58.86 | 57.25 | 82.27 | 56.16 | 39.75 |
| CHIH-HUNG/llama-2-13b-FINETUNE1_17w-r4 | 58.71 | 56.74 | 82.27 | 56.18 | 39.65 |
1import json
2from datasets import load_dataset
3
4# 讀取數據集,take可以取得該數據集前n筆資料
5dataset = load_dataset("huangyt/FINETUNE1", split="train", streaming=True)
6
7# 提取所需欄位並建立新的字典列表
8extracted_data = []
9for example in dataset:
10 extracted_example = {
11 "instruction": example["instruction"],
12 "input": example["input"],
13 "output": example["output"]
14 }
15 extracted_data.append(extracted_example)
16
17# 指定 JSON 文件名稱
18json_filename = "huangyt_FINETUNE1.json"
19
20# 寫入 JSON 文件
21with open(json_filename, "w") as json_file:
22 json.dump(extracted_data, json_file, indent=4)
23
24print(f"數據已提取並保存為 {json_filename}")