Repository navigation
Description
Summary
The OpenHands Eval Monitor reports 0% Critic 1 Acceptance for every recent litellm_proxy/step-3.7-flash benchmark run (swebench test, swebench full, and swtbench full), e.g. run 26911702062 at SDK commit b0fedcd.
The run-infer-progress.txt for the run shows output, critic1, critic2, critic3 = 0, 5, 0, 0, i.e. all 5 instances completed in critic_attempt_1 ended up in output_errors.jsonl instead of output.jsonl. The same pattern (output=0 while critic1 grows) is visible across all 3 parallel step-3.7-flash runs:
| Run | benchmark | snapshot |
|---|---|---|
| 26911702062 | swebench (test) | 0, 5, 0, 0 |
| 26911681478 | swebench (full) | 0, 15, 0, 0 |
| 26911672129 | swtbench (full) | 0, 17, 0, 0 |
By contrast, the most recent successful swebench run (26850544298, MiniMax-M3) shows output growing in lockstep with critic1 (e.g. 1, 1, 0, 0 → 8, 8, 0, 0).
Root cause
Datadog logs from the runtime pods (service:eval-agent-server, image_tag:b0fedcd*, @levelname:ERROR) are flooded with the same exception:
litellm.RateLimitError: Error code: 429 - OpenAIException -
request limited RPM reached, current: 11, limit: 10.
Please top up at https://platform.stepfun.ai/top-up.
Rate limit rules: https://platform.stepfun.ai/docs/en/pricing/details#tiered-rate-limits
No fallback model group found for original model_group=step-3.7-flash. ...
LiteLLM Retried: 3 times, LiteLLM Max Retries: 3
The StepFun API tier currently provisioned for step-3.7-flash has an RPM cap of 10. The eval runs many instances in parallel (no num_infer_workers override is passed), and each instance immediately and continuously exceeds that cap. The SDK retries RateLimitError (it's in LLM_RETRY_EXCEPTIONS in openhands-sdk/openhands/sdk/llm/llm.py), but with the default settings — num_retries=5, retry_min_wait=8s, retry_max_wait=64s, exponential backoff — the total retry budget is roughly 8+16+32+64+64 ≈ 3 minutes, which is not enough to outlast the 10 RPM bucket when 5+ workers are all hammering at it. Every conversation eventually exhausts retries and gets recorded as an error, so output.jsonl stays empty and the eval-monitor reads acceptance as output / critic1 = 0 / N = 0%.
This is not an issue with the AgentFinishedCritic or with the model failing to emit FinishAction / a non-empty git patch — instances never get to the point of being evaluated because every step throws a 429 first.
Reproduction
- Trigger Run Eval workflow with
model_ids=step-3.7-flash, any swebench/swtbench preset. - Watch
run-infer-progress.txt:outputcolumn stays at 0 while critic1 column grows up toeval_limit. - Check Datadog (or runtime logs in the corresponding
kube_job:eval-<run_id>-step-3-7-f-inferpod): every error islitellm.RateLimitError ... current: 11, limit: 10.
Proposed fix
The cleanest SDK-side fix that doesn't require infra changes is to bump the retry envelope in the step-3.7-flash entry of .github/run-eval/resolve_model_config.py so the SDK retry loop survives a full RPM window reset. Concretely:
"step-3.7-flash": {
"id": "step-3.7-flash",
"display_name": "Step 3.7 Flash",
"llm_config": {
"model": "litellm_proxy/step-3.7-flash",
"temperature": 0.0,
# StepFun's current tier caps step-3.7-flash at 10 RPM, so the
# default retry envelope (~3min) isn't enough to outlast a
# crowded 60s bucket under parallel inference. Stretch retries
# so the SDK can recover instead of erroring out the instance.
"num_retries": 12,
"retry_min_wait": 30,
"retry_max_wait": 120,
},
},This is a config-only change in the eval-resolver dict; num_retries, retry_min_wait, and retry_max_wait are already first-class fields on LLM (see openhands-sdk/openhands/sdk/llm/llm.py).
Longer-term remediations (out of scope for this issue, but worth tracking):
- Top up the StepFun account so the model has a realistic RPM headroom for parallel inference.
- Add per-model concurrency limits to the eval harness so we don't oversubscribe RPM-constrained providers.
- Have the LiteLLM proxy honor the upstream
Retry-Afterheader so the SDK doesn't blindly back off when the bucket is still hot.
Acceptance criteria
- A swebench
eval_limit=5run ofstep-3.7-flashlands withoutput > 0andCritic 1 Acceptance > 0%on the eval-monitor. - No regression in
tests/cross/test_resolve_model_config.py::test_step_3_7_flash_config.
This issue was created by an AI agent (OpenHands) on behalf of @juanmichelini after investigating the eval-monitor link above.
Activity