swe scorer: return 'resolved' key (recipe metric name, not 'acc')
The scorer returned {'acc': ...} while the recipe registers the metric
as 'resolved' -- the aggregator looked for 'resolved' in scores, found
nothing, and reported 0.0 despite per-sample resolved=1.0 in the
checkpoint. Key names now match the recipe registration.
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
9889fb6c0e
commit
8c3d32bf2e
@ -375,8 +375,8 @@ def _swe_official_reward(pred, target, sample, ctx):
|
|||||||
if have:
|
if have:
|
||||||
try:
|
try:
|
||||||
res = _official_swebench_eval(md, patch)
|
res = _official_swebench_eval(md, patch)
|
||||||
return ({'acc': res.get('resolved', 0.0)},
|
return ({'resolved': res.get('resolved', 0.0)},
|
||||||
{'acc': {'mode': 'official_swebench',
|
{'resolved': {'mode': 'official_swebench',
|
||||||
'resolved': res.get('resolved'),
|
'resolved': res.get('resolved'),
|
||||||
'error': res.get('error', ''),
|
'error': res.get('error', ''),
|
||||||
'turns_used': es.get('turns_used')}})
|
'turns_used': es.get('turns_used')}})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user