Mellum: Production-Grade in-IDE Contextual Code Completion with Multi-File Project Understanding
Nikita Pavlichenko, Iurii Nazarov, Ivan Dolgov, Ekaterina Garanina, Dmitry Ustalov, Ivan Bondyrev, Kseniia Lysaniuk, Evgeniia Vu, Kirill Chekmenev, Joseph Shtok, Yaroslav Golubev, Anton Semenkin, and Uladzislau Sazanovich
October, 2025. Published on arXiv.
Abstract. We present the Mellum models family, open-weight code completion models designed for interactive use in JetBrains IDEs. Mellums have 4B parameters, adopt a Llama-style architecture, and are pre-trained on ~4T tokens of permissively licensed, multi-language code. Our studies show that (i) careful data curation and staged training significantly improve the model's quality, (ii) editor-critical capabilities such as context packing are necessary for high-quality suggestions, and (iii) a compact, task-focused model can meet the cost and latency constraints of interactive completion.
In the paper, we describe an end-to-end industrial pipeline for producing contextualized in-editor completion: disciplined data governance, multi-stage training that includes fill-in-the-middle and project context via supervised fine-tuning, and alignment via direct preference optimization using feedback from real-world scenarios. Our quality evaluations include both large-scale offline benchmarks and online telemetry from production deployments in JetBrains IDEs. Mellums are released under the Apache-2.0 license on HuggingFace, with a public model card providing a reproducible reference for practitioners. Our experience offers a pragmatic blueprint for taking a focused, open model from a research prototype to at scale production for hundreds of thousands of users.
Pre-print DataCiting publications
- The More You Tune, the More They Spill? An empirical study of data leakage from code models under fine-tuning, quantization, and parameter-efficient adaptation
F Salerno, A Al-Kaswan, M Izadi · Empirical Software Engineering · 2027 - The Poisoned Chalice
R Koohestani · 2026 - AST-PAC: AST-guided Membership Inference for Code
R Koohestani, A Al-Kaswan, J Katzy · Proceedings of the 34th … · 2026 - Teaching LLMs a Low-Resource Language: Enhancing Code Completion in Pharo
K Kier, A Giagnorio, O AbedelKader, O Zaitsev · arXiv preprint arXiv … · 2026 - Mellum2 Technical Report
M Kojic, I Bondyrev, A de Moor, J Shtok · arXiv preprint arXiv … · 2026 - The Poisoned Chalice of LLM Evaluation Report
J Katzy, A Al-Kaswan, RM Popescu · Proceedings of the 34th … · 2026 - Unveiling the power of code pre-trained models in automated program repair: A systematic review
S Zhan, X Wang, D Wei, X Xiang, Y Lin, H Wu · Journal of Systems and … · 2026 - Control Models for In-IDE Code Completion
A de Moor, Y Hrynevich, H Badzeika, V Furda · Proceedings of the 3rd … · 2026
