Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-train/blob/main/streams/math-training/gsm8k_to_jsonl.py # aien-train AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-train / streams / math-training / gsm8k_to_jsonl.py` 9 lines ยท 449 bytes Raw Blame History 1 # One-time conversion of the locally cached GSM8K arrow files to JSONL (pyarrow lives only in another venv). 2 import json, sys, pyarrow as pa 3 src, dst = sys.argv[1], sys.argv[2] 4 with pa.memory_map(src) as f: 5 t = pa.ipc.open_stream(f).read_all() 6 with open(dst, "w") as o: 7 for q, a in zip(t.column("question").to_pylist(), t.column("answer").to_pylist()): 8 o.write(json.dumps({"question": q, "answer": a}) + "\n") 9 print(dst, t.num_rows)