← All models · StarCoder FIM

use case · practical

Practical: fill a real gap

This is fill-in-the-middle doing the job an editor does: you've written the signature and the return, and you want the body. The model reads the prefix and the suffix and writes what belongs between — conditioned on both. Pick a scenario, then edit either half. The exact <fim_prefix>…<fim_suffix>…<fim_middle> wire is shown below.

python
Your filled-in code appears here.
Run to see the FIM wire.

← Basics · StarCoder FIM · Next: Wild →