Bram Vanroy
commited on
Commit
•
ff5f71b
1
Parent(s):
0c3ae1e
add progressbar
Browse files
generate_overview_json.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
from pathlib import Path
|
2 |
import json
|
3 |
|
|
|
4 |
from transformers import AutoModelForCausalLM
|
5 |
|
6 |
|
@@ -13,7 +14,7 @@ def main():
|
|
13 |
pf_overview = evals_dir.joinpath("models.json")
|
14 |
results = json.loads(pf_overview.read_text(encoding="utf-8")) if pf_overview.exists() else {}
|
15 |
|
16 |
-
for pfin in evals_dir.rglob("*.json"):
|
17 |
if pfin.stem == "models":
|
18 |
continue
|
19 |
short_name = pfin.stem.split("_", 2)[2].lower()
|
|
|
1 |
from pathlib import Path
|
2 |
import json
|
3 |
|
4 |
+
from tqdm import tqdm
|
5 |
from transformers import AutoModelForCausalLM
|
6 |
|
7 |
|
|
|
14 |
pf_overview = evals_dir.joinpath("models.json")
|
15 |
results = json.loads(pf_overview.read_text(encoding="utf-8")) if pf_overview.exists() else {}
|
16 |
|
17 |
+
for pfin in tqdm(list(evals_dir.rglob("*.json")), desc="Generating overview JSON"):
|
18 |
if pfin.stem == "models":
|
19 |
continue
|
20 |
short_name = pfin.stem.split("_", 2)[2].lower()
|