new datasets
This commit is contained in:
parent
411ccf9bcd
commit
2b5d923f63
566 changed files with 142473 additions and 0 deletions
15
Datasets/GSM8K/main.py
Normal file
15
Datasets/GSM8K/main.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import json
|
||||
|
||||
from datasets import load_dataset
|
||||
|
||||
tests = []
|
||||
|
||||
ds = load_dataset("openai/gsm8k", "main")
|
||||
|
||||
with open("train.json", "w") as f:
|
||||
f.write("[")
|
||||
for test in ds["test"]:
|
||||
json.dump(test, f, indent=2)
|
||||
f.write(",\n")
|
||||
f.write("]")
|
||||
###Как агент умеет размышлять
|
||||
Loading…
Add table
Add a link
Reference in a new issue