init
Browse files
experiments/baseline_lm_lc.py
CHANGED
@@ -14,7 +14,7 @@ prompt_dict = {
|
|
14 |
"is influenced by": "Complete the following list with examples of what has influenced different entities",
|
15 |
"is similar to": "Complete the following list with examples of entities that are similar"
|
16 |
}
|
17 |
-
data = load_dataset("cardiffnlp/
|
18 |
full_result = []
|
19 |
for lm, ppl_class, batch, pretty_name in [
|
20 |
("t5-small", EncoderDecoderLM, 256, "T5\textsubscript{SMALL}"),
|
@@ -40,7 +40,7 @@ for lm, ppl_class, batch, pretty_name in [
|
|
40 |
("facebook/opt-iml-30b", LM, 1, "OPT-IML\textsubscript{30B}"),
|
41 |
("facebook/opt-iml-max-1.3b", LM, 1, "OPT-IML\textsubscript{MAX-1.3B}"),
|
42 |
("facebook/opt-iml-max-30b", LM, 1, "OPT-IML\textsubscript{MAX-30B}"),
|
43 |
-
("davinci", OpenAI, None, "GPT-3\textsubscript{davinci}")
|
44 |
]:
|
45 |
os.makedirs(f"experiments/results/lm_lc/{os.path.basename(lm)}", exist_ok=True)
|
46 |
scorer = None
|
|
|
14 |
"is influenced by": "Complete the following list with examples of what has influenced different entities",
|
15 |
"is similar to": "Complete the following list with examples of entities that are similar"
|
16 |
}
|
17 |
+
data = load_dataset("cardiffnlp/relentless", split="test")
|
18 |
full_result = []
|
19 |
for lm, ppl_class, batch, pretty_name in [
|
20 |
("t5-small", EncoderDecoderLM, 256, "T5\textsubscript{SMALL}"),
|
|
|
40 |
("facebook/opt-iml-30b", LM, 1, "OPT-IML\textsubscript{30B}"),
|
41 |
("facebook/opt-iml-max-1.3b", LM, 1, "OPT-IML\textsubscript{MAX-1.3B}"),
|
42 |
("facebook/opt-iml-max-30b", LM, 1, "OPT-IML\textsubscript{MAX-30B}"),
|
43 |
+
# ("davinci", OpenAI, None, "GPT-3\textsubscript{davinci}")
|
44 |
]:
|
45 |
os.makedirs(f"experiments/results/lm_lc/{os.path.basename(lm)}", exist_ok=True)
|
46 |
scorer = None
|
experiments/baseline_lm_qa.py
CHANGED
@@ -14,7 +14,7 @@ prompt_dict = {
|
|
14 |
"is influenced by": "what has influenced different entities",
|
15 |
"is similar to": "examples of entities that are similar"
|
16 |
}
|
17 |
-
data = load_dataset("cardiffnlp/
|
18 |
full_result = []
|
19 |
for lm, ppl_class, batch, pretty_name in [
|
20 |
("t5-small", EncoderDecoderLM, 256, "T5\textsubscript{SMALL}"),
|
|
|
14 |
"is influenced by": "what has influenced different entities",
|
15 |
"is similar to": "examples of entities that are similar"
|
16 |
}
|
17 |
+
data = load_dataset("cardiffnlp/relentless", split="test")
|
18 |
full_result = []
|
19 |
for lm, ppl_class, batch, pretty_name in [
|
20 |
("t5-small", EncoderDecoderLM, 256, "T5\textsubscript{SMALL}"),
|