init
Browse files
experiments/baseline_lm_lc.py
CHANGED
@@ -44,10 +44,10 @@ for lm, ppl_class, batch, pretty_name in [
|
|
44 |
("facebook/opt-iml-max-1.3b", LM, 1, "OPT-IML\textsubscript{MAX-1.3B}"),
|
45 |
# ("davinci", OpenAI, None, "GPT-3\textsubscript{davinci}")
|
46 |
]:
|
47 |
-
os.makedirs(f"
|
48 |
scorer = None
|
49 |
for d in data:
|
50 |
-
ppl_file = f"
|
51 |
|
52 |
if not os.path.exists(ppl_file):
|
53 |
|
|
|
44 |
("facebook/opt-iml-max-1.3b", LM, 1, "OPT-IML\textsubscript{MAX-1.3B}"),
|
45 |
# ("davinci", OpenAI, None, "GPT-3\textsubscript{davinci}")
|
46 |
]:
|
47 |
+
os.makedirs(f"results/lm_lc/{os.path.basename(lm)}", exist_ok=True)
|
48 |
scorer = None
|
49 |
for d in data:
|
50 |
+
ppl_file = f"results/lm_lc/{os.path.basename(lm)}/ppl.{d['relation_type'].replace(' ', '_').replace('/', '__')}.jsonl"
|
51 |
|
52 |
if not os.path.exists(ppl_file):
|
53 |
|
experiments/baseline_lm_qa.py
CHANGED
@@ -44,10 +44,10 @@ for lm, ppl_class, batch, pretty_name in [
|
|
44 |
("facebook/opt-iml-max-1.3b", LM, 1, "OPT-IML\textsubscript{MAX-1.3B}"),
|
45 |
# ("davinci", OpenAI, None, "GPT-3\textsubscript{davinci}")
|
46 |
]:
|
47 |
-
os.makedirs(f"
|
48 |
scorer = None
|
49 |
for d in data:
|
50 |
-
ppl_file = f"
|
51 |
|
52 |
if not os.path.exists(ppl_file):
|
53 |
|
|
|
44 |
("facebook/opt-iml-max-1.3b", LM, 1, "OPT-IML\textsubscript{MAX-1.3B}"),
|
45 |
# ("davinci", OpenAI, None, "GPT-3\textsubscript{davinci}")
|
46 |
]:
|
47 |
+
os.makedirs(f"results/lm_qa/{os.path.basename(lm)}", exist_ok=True)
|
48 |
scorer = None
|
49 |
for d in data:
|
50 |
+
ppl_file = f"results/lm_qa/{os.path.basename(lm)}/ppl.{d['relation_type'].replace(' ', '_').replace('/', '__')}.jsonl"
|
51 |
|
52 |
if not os.path.exists(ppl_file):
|
53 |
|