momentino
commited on
Commit
·
e63790f
1
Parent(s):
76e8fac
fix: urls
Browse files- planbench.py +132 -134
planbench.py
CHANGED
@@ -46,161 +46,159 @@ _URLS_prefix = {
|
|
46 |
}
|
47 |
_URLS = {
|
48 |
"blocksworld_plan_generation": {
|
49 |
-
"test": _URLS_prefix["blocksworld"] + "task_1_plan_generation.json"
|
50 |
},
|
51 |
"blocksworld_plan_optimality": {
|
52 |
-
"test": _URLS_prefix["blocksworld"] + "task_2_plan_optimality.json"
|
53 |
},
|
54 |
"blocksworld_plan_verification": {
|
55 |
-
"test": _URLS_prefix["blocksworld"] + "task_3_plan_verification.json"
|
56 |
},
|
57 |
"blocksworld_plan_reuse": {
|
58 |
-
"test": _URLS_prefix["blocksworld"] + "task_4_plan_reuse.json"
|
59 |
},
|
60 |
"blocksworld_plan_generalization": {
|
61 |
-
"test": _URLS_prefix["blocksworld"] + "task_5_plan_reuse.json"
|
62 |
},
|
63 |
"blocksworld_replanning": {
|
64 |
-
"test": _URLS_prefix["blocksworld"] + "task_6_replanning.json"
|
65 |
},
|
66 |
"blocksworld_plan_execution": {
|
67 |
-
"test": _URLS_prefix["blocksworld"] + "task_7_plan_execution.json"
|
68 |
},
|
69 |
"blocksworld_plan_shuffling": {
|
70 |
-
"test": _URLS_prefix["blocksworld"] + "task_8_1_goal_shuffling.json"
|
71 |
},
|
72 |
"blocksworld_plan_full_to_partial": {
|
73 |
-
"test": _URLS_prefix["blocksworld"] + "task_8_2_full_to_partial.json"
|
74 |
},
|
75 |
"blocksworld_partial_to_full": {
|
76 |
-
"test": _URLS_prefix["blocksworld"] + "task_8_3_partial_to_full.json"
|
77 |
-
},
|
78 |
-
"blocksworld_3_plan_generation": {
|
79 |
-
|
80 |
-
},
|
81 |
-
"blocksworld_3_plan_optimality": {
|
82 |
-
|
83 |
-
},
|
84 |
-
"blocksworld_3_plan_verification": {
|
85 |
-
|
86 |
-
},
|
87 |
-
"blocksworld_3_plan_reuse": {
|
88 |
-
|
89 |
-
},
|
90 |
-
"blocksworld_3_plan_generalization": {
|
91 |
-
|
92 |
-
},
|
93 |
-
"blocksworld_3_replanning": {
|
94 |
-
|
95 |
-
},
|
96 |
-
"blocksworld_3_plan_execution": {
|
97 |
-
|
98 |
-
},
|
99 |
-
"blocksworld_3_plan_shuffling": {
|
100 |
-
|
101 |
-
},
|
102 |
-
"blocksworld_3_plan_full_to_partial": {
|
103 |
-
|
104 |
-
},
|
105 |
-
"blocksworld_3_partial_to_full": {
|
106 |
-
|
107 |
-
},
|
108 |
-
|
109 |
-
"
|
110 |
-
|
111 |
-
|
112 |
-
"
|
113 |
-
|
114 |
-
|
115 |
-
"
|
116 |
-
|
117 |
-
|
118 |
-
"
|
119 |
-
|
120 |
-
|
121 |
-
"
|
122 |
-
|
123 |
-
|
124 |
-
"
|
125 |
-
|
126 |
-
|
127 |
-
"
|
128 |
-
|
129 |
-
|
130 |
-
"
|
131 |
-
|
132 |
-
|
133 |
-
"
|
134 |
-
|
135 |
-
|
136 |
-
"
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
"
|
142 |
-
|
143 |
-
|
144 |
-
"
|
145 |
-
|
146 |
-
|
147 |
-
"
|
148 |
-
|
149 |
-
|
150 |
-
"
|
151 |
-
|
152 |
-
|
153 |
-
"
|
154 |
-
|
155 |
-
|
156 |
-
"
|
157 |
-
|
158 |
-
|
159 |
-
"
|
160 |
-
|
161 |
-
|
162 |
-
"
|
163 |
-
|
164 |
-
|
165 |
-
"
|
166 |
-
|
167 |
-
|
168 |
-
"
|
169 |
-
|
170 |
-
|
171 |
-
"
|
172 |
-
|
173 |
-
},
|
174 |
-
"
|
175 |
-
|
176 |
-
},
|
177 |
-
"
|
178 |
-
|
179 |
-
},
|
180 |
-
"
|
181 |
-
|
182 |
-
},
|
183 |
-
"
|
184 |
-
|
185 |
-
},
|
186 |
-
"
|
187 |
-
|
188 |
-
},
|
189 |
-
"
|
190 |
-
|
191 |
-
},
|
192 |
-
"
|
193 |
-
|
194 |
-
},
|
195 |
-
"
|
196 |
-
|
197 |
-
}
|
198 |
-
"logistics_partial_to_full": {
|
199 |
-
"test": _URLS_prefix["logistics"] + "task_8_3_partial_to_full.json"
|
200 |
-
}
|
201 |
}
|
202 |
|
203 |
|
|
|
204 |
class PlanBench(datasets.GeneratorBasedBuilder):
|
205 |
""" LMentry is a benchmark for measuring language model performance on tasks that are trivial to humans. LMentry consists of 25 tasks which humans are generally expected to perform perfectly, e.g. writing a sentence containing a specific word, identifying which words in a list belong to a specific category, choosing which of two words is longer, or identifying which of two words rhymes with a third word.
|
206 |
"""
|
|
|
46 |
}
|
47 |
_URLS = {
|
48 |
"blocksworld_plan_generation": {
|
49 |
+
"test": _URLS_prefix["blocksworld"] + "/task_1_plan_generation.json"
|
50 |
},
|
51 |
"blocksworld_plan_optimality": {
|
52 |
+
"test": _URLS_prefix["blocksworld"] + "/task_2_plan_optimality.json"
|
53 |
},
|
54 |
"blocksworld_plan_verification": {
|
55 |
+
"test": _URLS_prefix["blocksworld"] + "/task_3_plan_verification.json"
|
56 |
},
|
57 |
"blocksworld_plan_reuse": {
|
58 |
+
"test": _URLS_prefix["blocksworld"] + "/task_4_plan_reuse.json"
|
59 |
},
|
60 |
"blocksworld_plan_generalization": {
|
61 |
+
"test": _URLS_prefix["blocksworld"] + "/task_5_plan_reuse.json"
|
62 |
},
|
63 |
"blocksworld_replanning": {
|
64 |
+
"test": _URLS_prefix["blocksworld"] + "/task_6_replanning.json"
|
65 |
},
|
66 |
"blocksworld_plan_execution": {
|
67 |
+
"test": _URLS_prefix["blocksworld"] + "/task_7_plan_execution.json"
|
68 |
},
|
69 |
"blocksworld_plan_shuffling": {
|
70 |
+
"test": _URLS_prefix["blocksworld"] + "/task_8_1_goal_shuffling.json"
|
71 |
},
|
72 |
"blocksworld_plan_full_to_partial": {
|
73 |
+
"test": _URLS_prefix["blocksworld"] + "/task_8_2_full_to_partial.json"
|
74 |
},
|
75 |
"blocksworld_partial_to_full": {
|
76 |
+
"test": _URLS_prefix["blocksworld"] + "/task_8_3_partial_to_full.json"
|
77 |
+
},
|
78 |
+
"blocksworld_3_plan_generation": {
|
79 |
+
"test": _URLS_prefix["blocksworld_3"] + "/task_1_plan_generation.json"
|
80 |
+
},
|
81 |
+
"blocksworld_3_plan_optimality": {
|
82 |
+
"test": _URLS_prefix["blocksworld_3"] + "/task_2_plan_optimality.json"
|
83 |
+
},
|
84 |
+
"blocksworld_3_plan_verification": {
|
85 |
+
"test": _URLS_prefix["blocksworld_3"] + "/task_3_plan_verification.json"
|
86 |
+
},
|
87 |
+
"blocksworld_3_plan_reuse": {
|
88 |
+
"test": _URLS_prefix["blocksworld_3"] + "/task_4_plan_reuse.json"
|
89 |
+
},
|
90 |
+
"blocksworld_3_plan_generalization": {
|
91 |
+
"test": _URLS_prefix["blocksworld_3"] + "/task_5_plan_reuse.json"
|
92 |
+
},
|
93 |
+
"blocksworld_3_replanning": {
|
94 |
+
"test": _URLS_prefix["blocksworld_3"] + "/task_6_replanning.json"
|
95 |
+
},
|
96 |
+
"blocksworld_3_plan_execution": {
|
97 |
+
"test": _URLS_prefix["blocksworld_3"] + "/task_7_plan_execution.json"
|
98 |
+
},
|
99 |
+
"blocksworld_3_plan_shuffling": {
|
100 |
+
"test": _URLS_prefix["blocksworld_3"] + "/task_8_1_goal_shuffling.json"
|
101 |
+
},
|
102 |
+
"blocksworld_3_plan_full_to_partial": {
|
103 |
+
"test": _URLS_prefix["blocksworld_3"] + "/task_8_2_full_to_partial.json"
|
104 |
+
},
|
105 |
+
"blocksworld_3_partial_to_full": {
|
106 |
+
"test": _URLS_prefix["blocksworld_3"] + "/task_8_3_partial_to_full.json"
|
107 |
+
},
|
108 |
+
"mystery_blocksworld_plan_generation": {
|
109 |
+
"test": _URLS_prefix["mystery_blocksworld"] + "/task_1_plan_generation.json"
|
110 |
+
},
|
111 |
+
"mystery_blocksworld_plan_optimality": {
|
112 |
+
"test": _URLS_prefix["mystery_blocksworld"] + "/task_2_plan_optimality.json"
|
113 |
+
},
|
114 |
+
"mystery_blocksworld_plan_verification": {
|
115 |
+
"test": _URLS_prefix["mystery_blocksworld"] + "/task_3_plan_verification.json"
|
116 |
+
},
|
117 |
+
"mystery_blocksworld_plan_reuse": {
|
118 |
+
"test": _URLS_prefix["mystery_blocksworld"] + "/task_4_plan_reuse.json"
|
119 |
+
},
|
120 |
+
"mystery_blocksworld_plan_generalization": {
|
121 |
+
"test": _URLS_prefix["mystery_blocksworld"] + "/task_5_plan_reuse.json"
|
122 |
+
},
|
123 |
+
"mystery_blocksworld_replanning": {
|
124 |
+
"test": _URLS_prefix["mystery_blocksworld"] + "/task_6_replanning.json"
|
125 |
+
},
|
126 |
+
"mystery_blocksworld_plan_execution": {
|
127 |
+
"test": _URLS_prefix["mystery_blocksworld"] + "/task_7_plan_execution.json"
|
128 |
+
},
|
129 |
+
"mystery_blocksworld_plan_shuffling": {
|
130 |
+
"test": _URLS_prefix["mystery_blocksworld"] + "/task_8_1_goal_shuffling.json"
|
131 |
+
},
|
132 |
+
"mystery_blocksworld_plan_full_to_partial": {
|
133 |
+
"test": _URLS_prefix["mystery_blocksworld"] + "/task_8_2_full_to_partial.json"
|
134 |
+
},
|
135 |
+
"mystery_blocksworld_partial_to_full": {
|
136 |
+
"test": _URLS_prefix["mystery_blocksworld"] + "/task_8_3_partial_to_full.json"
|
137 |
+
},
|
138 |
+
"mystery_blocksworld_3_plan_generation": {
|
139 |
+
"test": _URLS_prefix["mystery_blocksworld_3"] + "/task_1_plan_generation.json"
|
140 |
+
},
|
141 |
+
"mystery_blocksworld_3_plan_optimality": {
|
142 |
+
"test": _URLS_prefix["mystery_blocksworld_3"] + "/task_2_plan_optimality.json"
|
143 |
+
},
|
144 |
+
"mystery_blocksworld_3_plan_verification": {
|
145 |
+
"test": _URLS_prefix["mystery_blocksworld_3"] + "/task_3_plan_verification.json"
|
146 |
+
},
|
147 |
+
"mystery_blocksworld_3_plan_reuse": {
|
148 |
+
"test": _URLS_prefix["mystery_blocksworld_3"] + "/task_4_plan_reuse.json"
|
149 |
+
},
|
150 |
+
"mystery_blocksworld_3_plan_generalization": {
|
151 |
+
"test": _URLS_prefix["mystery_blocksworld_3"] + "/task_5_plan_reuse.json"
|
152 |
+
},
|
153 |
+
"mystery_blocksworld_3_replanning": {
|
154 |
+
"test": _URLS_prefix["mystery_blocksworld_3"] + "/task_6_replanning.json"
|
155 |
+
},
|
156 |
+
"mystery_blocksworld_3_plan_execution": {
|
157 |
+
"test": _URLS_prefix["mystery_blocksworld_3"] + "/task_7_plan_execution.json"
|
158 |
+
},
|
159 |
+
"mystery_blocksworld_3_plan_shuffling": {
|
160 |
+
"test": _URLS_prefix["mystery_blocksworld_3"] + "/task_8_1_goal_shuffling.json"
|
161 |
+
},
|
162 |
+
"mystery_blocksworld_3_plan_full_to_partial": {
|
163 |
+
"test": _URLS_prefix["mystery_blocksworld_3"] + "/task_8_2_full_to_partial.json"
|
164 |
+
},
|
165 |
+
"mystery_blocksworld_3_partial_to_full": {
|
166 |
+
"test": _URLS_prefix["mystery_blocksworld_3"] + "/task_8_3_partial_to_full.json"
|
167 |
+
},
|
168 |
+
"logistics_plan_generation": {
|
169 |
+
"test": _URLS_prefix["logistics"] + "/task_1_plan_generation.json"
|
170 |
+
},
|
171 |
+
"logistics_plan_optimality": {
|
172 |
+
"test": _URLS_prefix["logistics"] + "/task_2_plan_optimality.json"
|
173 |
+
},
|
174 |
+
"logistics_plan_verification": {
|
175 |
+
"test": _URLS_prefix["logistics"] + "/task_3_plan_verification.json"
|
176 |
+
},
|
177 |
+
"logistics_plan_reuse": {
|
178 |
+
"test": _URLS_prefix["logistics"] + "/task_4_plan_reuse.json"
|
179 |
+
},
|
180 |
+
"logistics_plan_generalization": {
|
181 |
+
"test": _URLS_prefix["logistics"] + "/task_5_plan_reuse.json"
|
182 |
+
},
|
183 |
+
"logistics_replanning": {
|
184 |
+
"test": _URLS_prefix["logistics"] + "/task_6_replanning.json"
|
185 |
+
},
|
186 |
+
"logistics_plan_execution": {
|
187 |
+
"test": _URLS_prefix["logistics"] + "/task_7_plan_execution.json"
|
188 |
+
},
|
189 |
+
"logistics_plan_shuffling": {
|
190 |
+
"test": _URLS_prefix["logistics"] + "/task_8_1_goal_shuffling.json"
|
191 |
+
},
|
192 |
+
"logistics_plan_full_to_partial": {
|
193 |
+
"test": _URLS_prefix["logistics"] + "/task_8_2_full_to_partial.json"
|
194 |
+
},
|
195 |
+
"logistics_partial_to_full": {
|
196 |
+
"test": _URLS_prefix["logistics"] + "/task_8_3_partial_to_full.json"
|
197 |
+
}
|
|
|
|
|
|
|
198 |
}
|
199 |
|
200 |
|
201 |
+
|
202 |
class PlanBench(datasets.GeneratorBasedBuilder):
|
203 |
""" LMentry is a benchmark for measuring language model performance on tasks that are trivial to humans. LMentry consists of 25 tasks which humans are generally expected to perform perfectly, e.g. writing a sentence containing a specific word, identifying which words in a list belong to a specific category, choosing which of two words is longer, or identifying which of two words rhymes with a third word.
|
204 |
"""
|