AntonioJun commited on
Commit
9d1c799
·
verified ·
1 Parent(s): 2856505

reasoning-note arm plumbing

Browse files
Files changed (1) hide show
  1. calibration/run.py +10 -1
calibration/run.py CHANGED
@@ -74,6 +74,7 @@ def run_grid(
74
  rebuild=False,
75
  strip_schema_legend=False,
76
  prose_legend=False,
 
77
  ):
78
  """Run every (model, budget) pair through harness.B.launch -- the unmodified
79
  extended path, only ``reasoning_budget`` varies -- on the operator's questions."""
@@ -89,7 +90,8 @@ def run_grid(
89
  for index, (model, budget) in enumerate(plan, start=1):
90
  print(f"=== calibration {index}/{len(plan)}: {model} @ {budget} tokens ===", flush=True)
91
  variant = (
92
- f"{budget}-prose-legend" if prose_legend
 
93
  else f"{budget}-no-legend" if strip_schema_legend
94
  else budget
95
  )
@@ -113,6 +115,7 @@ def run_grid(
113
  reasoning_budget=budget,
114
  question_ids=question_ids,
115
  strip_schema_legend=strip_schema_legend or prose_legend,
 
116
  **harness_kwargs,
117
  )
118
 
@@ -156,6 +159,11 @@ def main():
156
  help="legacy-legend arm: prose legend before the code instead of the embedded "
157
  "schema block; results land in a '<budget>-prose-legend' sibling directory",
158
  )
 
 
 
 
 
159
  parser.add_argument("--rebuild", action="store_true")
160
  args = parser.parse_args()
161
 
@@ -194,6 +202,7 @@ def main():
194
  rebuild=args.rebuild,
195
  strip_schema_legend=args.strip_schema_legend,
196
  prose_legend=args.prose_legend,
 
197
  )
198
  except ValueError as exc:
199
  parser.error(str(exc))
 
74
  rebuild=False,
75
  strip_schema_legend=False,
76
  prose_legend=False,
77
+ reasoning_note=False,
78
  ):
79
  """Run every (model, budget) pair through harness.B.launch -- the unmodified
80
  extended path, only ``reasoning_budget`` varies -- on the operator's questions."""
 
90
  for index, (model, budget) in enumerate(plan, start=1):
91
  print(f"=== calibration {index}/{len(plan)}: {model} @ {budget} tokens ===", flush=True)
92
  variant = (
93
+ f"{budget}-reasoning" if reasoning_note
94
+ else f"{budget}-prose-legend" if prose_legend
95
  else f"{budget}-no-legend" if strip_schema_legend
96
  else budget
97
  )
 
115
  reasoning_budget=budget,
116
  question_ids=question_ids,
117
  strip_schema_legend=strip_schema_legend or prose_legend,
118
+ reasoning_note=reasoning_note,
119
  **harness_kwargs,
120
  )
121
 
 
159
  help="legacy-legend arm: prose legend before the code instead of the embedded "
160
  "schema block; results land in a '<budget>-prose-legend' sibling directory",
161
  )
162
+ parser.add_argument(
163
+ "--reasoning-note", action="store_true", dest="reasoning_note",
164
+ help="Thinking-with-Spatial-Code step-by-step note prefixed to the "
165
+ "post-prompt; results land in a '<budget>-reasoning' sibling directory",
166
+ )
167
  parser.add_argument("--rebuild", action="store_true")
168
  args = parser.parse_args()
169
 
 
202
  rebuild=args.rebuild,
203
  strip_schema_legend=args.strip_schema_legend,
204
  prose_legend=args.prose_legend,
205
+ reasoning_note=args.reasoning_note,
206
  )
207
  except ValueError as exc:
208
  parser.error(str(exc))