Means over three evaluation seeds, identical harness for both arms (paper Table 1):
FIM-7B is evaluated with the
R2E-Gym agent scaffold (fixed by its post-training pipeline). The complete pinned walkthrough lives at
evaluation/swebench/released_checkpoints.md.
1CUDA_VISIBLE_DEVICES=0 \
2VLLM_ALLOW_LONG_MAX_MODEL_LEN=1 \
3python -m vllm.entrypoints.openai.api_server \
4 --model TIGER-Lab/FIM-7B \
5 --served-model-name FIM-7B \
6 --host 127.0.0.1 \
7 --port 8400 \
8 --tensor-parallel-size 1 \
9 --max-model-len 65536 \
10 --hf-overrides '{"max_position_embeddings": 65536}' \
11 --enable-prefix-caching \
12 --gpu-memory-utilization 0.9 \
13 > vllm_fim7b.log 2>&1 &
From an upstream, unmodified
R2E-Gym checkout (Docker required):
1export OPENAI_API_KEY=EMPTY
2export LLM_BASE_URL="http://127.0.0.1:8400/v1"
3
4uv run python src/r2egym/agenthub/run/edit.py runagent_multiple \
5 --dataset "R2E-Gym/SWE-Bench-Verified" \
6 --split "test" \
7 --start_idx 0 \
8 --k 500 \
9 --traj_dir "./traj" \
10 --exp_name "FIM-7B_swebench_verified_r1" \
11 --llm_name "openai/FIM-7B" \
12 --scaffold "r2egym" \
13 --backend "docker" \
14 --use_fn_calling False \
15 --temperature 0 \
16 --max_steps 40 \
17 --max_steps_absolute 100 \
18 --max_workers 6 \
19 --max_reward_calc_time 1200 \
20 --max_tokens 65536 \
21 --use_existing True
Convert the trajectories to a submission and score with the official harness —
evaluation/swebench/score.sh. The reported number is
resolved_instances / total_instances.
1@article{wang2026fim,
2 title={Function-Aware Fill-in-the-Middle as Mid-Training for Coding Agent Foundation Models},
3 author={Wang, Yubo and Liang, Jiarong and Zhang, Yuxuan and Liu, Xuye and Wei, Cong and Zhang, Yuyu and Nie, Ping and Chen, Wenhu},
4 journal={arXiv preprint arXiv:2607.12463},
5 year={2026}
6}