mirror of
https://github.com/lmg-anon/mikupad.git
synced 2026-01-26 09:58:00 +00:00
1
Fill‐In‐The‐Middle (FIM)
lmg-anon edited this page 2025-11-01 00:29:39 -03:00
Mikupad allows you to seamlessly use models to generate text that connects a preceding part (prefix) and a following part (suffix).
- Usage:
- Ensure your selected Instruct Template has a FIM template defined (e.g.,
[SUFFIX]{suffix}[PREFIX]{prefix}). - Place the
{fill}placeholder in your prompt where you want the text to be inserted. - When you press Predict, the model will generate text to bridge the gap.
- Ensure your selected Instruct Template has a FIM template defined (e.g.,
- Alternative: If no FIM template is available, you can use
{predict}. The model will generate from that point, but it will not be aware of the text that comes after the placeholder.