-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b71d42
commit a40ed1e
Showing
14 changed files
with
731 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import csv | ||
import sys | ||
|
||
train_path = sys.argv[1] | ||
eval_path = sys.argv[2] | ||
|
||
train_row_by_step = {} | ||
with open(train_path, 'r') as f: | ||
reader = csv.DictReader(f) | ||
for row in reader: | ||
step = int(row['_step']) | ||
train_row_by_step[step] = row | ||
|
||
rows = [] | ||
with open(eval_path, 'r') as f: | ||
reader = csv.DictReader(f) | ||
fieldnames = reader.fieldnames | ||
for row in reader: | ||
step = int(row['_step']) | ||
if step in train_row_by_step: | ||
train_row = train_row_by_step[step] | ||
train_row = {k: train_row[k] for k in ["throughput/total_tokens", "throughput/total_training_Gflops", "optim/learning_rate_group0"]} | ||
row.update(train_row) | ||
rows.append(row) | ||
|
||
with open(eval_path, 'w') as f: | ||
writer = csv.DictWriter(f, fieldnames=rows[0].keys()) | ||
writer.writeheader() | ||
for row in rows: | ||
writer.writerow(row) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"190m": { | ||
"paths": [ | ||
"wandb/peteish-final/190M-1xC.csv", | ||
"wandb/peteish-final/190M-2xC.csv", | ||
"wandb/peteish-final/190M-5xC.csv", | ||
"wandb/peteish-final/190M-10xC.csv" | ||
], | ||
"mode": "train", | ||
"n": 190354176, | ||
"label": "190m", | ||
"color": "darkred" | ||
}, | ||
"370m": { | ||
"paths": [ | ||
"wandb/peteish-final/370M-1xC.csv", | ||
"wandb/peteish-final/370M-2xC.csv", | ||
"wandb/peteish-final/370M-5xC.csv", | ||
"wandb/peteish-final/370M-10xC.csv" | ||
], | ||
"mode": "train", | ||
"n": 371262464, | ||
"label": "370m", | ||
"color": "darkorange" | ||
}, | ||
"600m": { | ||
"paths": [ | ||
"wandb/peteish-final/600M-1xC.csv", | ||
"wandb/peteish-final/600M-2xC.csv", | ||
"wandb/peteish-final/600M-5xC.csv", | ||
"wandb/peteish-final/600M-10xC.csv" | ||
], | ||
"mode": "train", | ||
"n": 597382464, | ||
"label": "600m", | ||
"color": "goldenrod" | ||
}, | ||
"760m": { | ||
"paths": [ | ||
"wandb/peteish-final/760M-1xC.csv", | ||
"wandb/peteish-final/760M-2xC.csv", | ||
"wandb/peteish-final/760M-5xC.csv", | ||
"wandb/peteish-final/760M-10xC.csv" | ||
], | ||
"mode": "train", | ||
"n": 758220288, | ||
"label": "760m", | ||
"color": "darkgreen" | ||
}, | ||
"1b": { | ||
"paths": [ | ||
"wandb/peteish-final/1B-1xC.csv", | ||
"wandb/peteish-final/1B-2xC.csv", | ||
"wandb/peteish-final/1B-5xC.csv", | ||
"wandb/peteish-final/1B-10xC.csv" | ||
], | ||
"mode": "train", | ||
"n": 1279395840, | ||
"label": "1b", | ||
"color": "teal" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
python scripts/scaling/final.py -k mmlu-var -c scripts/scaling/final_peteish.json -o figure/peteish-final/final_mmlu-var.png | ||
python scripts/scaling/final.py -k hellaswag-5shot -c scripts/scaling/final_peteish.json -o figure/peteish-final/final_hellaswag-5shot.png | ||
python scripts/scaling/final.py -k arc-e-5shot -c scripts/scaling/final_peteish.json -o figure/peteish-final/final_arc-e-5shot.png | ||
python scripts/scaling/final.py -k arc-c-5shot -c scripts/scaling/final_peteish.json -o figure/peteish-final/final_arc-c-5shot.png | ||
python scripts/scaling/final.py -k piqa-5shot -c scripts/scaling/final_peteish.json -o figure/peteish-final/final_piqa-5shot.png | ||
python scripts/scaling/final.py -k winogrande-5shot -c scripts/scaling/final_peteish.json -o figure/peteish-final/final_winogrande-5shot.png | ||
python scripts/scaling/final.py -k openbookqa-5shot -c scripts/scaling/final_peteish.json -o figure/peteish-final/final_openbookqa-5shot.png | ||
python scripts/scaling/final.py -k boolq-5shot -c scripts/scaling/final_peteish.json -o figure/peteish-final/final_boolq-5shot.png | ||
python scripts/scaling/final.py -k sciq-0shot -c scripts/scaling/final_peteish.json -o figure/peteish-final/final_sciq-0shot.png | ||
python scripts/scaling/final.py -k copa-0shot -c scripts/scaling/final_peteish.json -o figure/peteish-final/final_copa-0shot.png | ||
python scripts/scaling/final.py -k csqa-5shot -c scripts/scaling/final_peteish.json -o figure/peteish-final/final_csqa-5shot.png | ||
python scripts/scaling/final.py -k socialiqa-5shot -c scripts/scaling/final_peteish.json -o figure/peteish-final/final_socialiqa-5shot.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.