FIM-Mid-7B is the mid-trained checkpoint of the FIM 7B pipeline:
Qwen2.5-Coder-7B-Instruct after function-aware FIM mid-training,
before agent post-training. Post-training this checkpoint on R2E-Gym agent trajectories produces
TIGER-Lab/FIM-7B.
It is released for reproducibility and further post-training. The paper deliberately never scores mid-training-only checkpoints — a FIM-only model has degraded instruction-following and cannot be compared fairly against instruction-tuned baselines; every reported gain is one that survives post-training.
1CUDA_VISIBLE_DEVICES=0 \
2python -m vllm.entrypoints.openai.api_server \
3 --model TIGER-Lab/FIM-Mid-7B \
4 --served-model-name FIM-Mid-7B \
5 --host 127.0.0.1 \
6 --port 8400 \
7 --tensor-parallel-size 1 \
8 --max-model-len 32768 \
9 --gpu-memory-utilization 0.9 \
10 > vllm_fim_mid7b.log 2>&1 &
To reproduce FIM-7B, run R2E-Gym trajectory SFT from this checkpoint — the exact config is
posttraining/r2egym/FIM_Posttrain_7B.yaml (LLaMA-Factory, full fine-tuning, lr
1.0e-5, 2 epochs, cutoff 32768), which already points at this repo id. See
posttraining/r2egym/ for the walkthrough.
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}