On Pretraining for Project-Level Code Completion

Maksim Sapronov, Evgeniy Glukhov
10/15/2025
cs.SEcs.LG

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Repository-level pretraining is commonly used to enable large language models for code to leverage codebase-wide context. This enhances their ability to generate accurate and context-aware code completions. In this work, we investigate how different repository-processing strategies affect in-context learning in OpenCoder, a 1.5B-parameter model. We extend its context window from 4,096 to 16,384 tokens by training on additional 1B tokens of curated repository-level data. Despite relying on a smaller dataset than competing models (which often use hundreds of billions of tokens), our model achieves comparable performance on the Long Code Arena benchmark. We find that various repository-processing techniques yield similarly strong results, with the primary gain coming from adapting to a new rotary positional embedding (RoPE) scaling parameter. Finally, we show that a simpler file-level training approach at the original sequence length remains highly effective, opening up repository-level code completion research to settings with more constrained data and compute resources.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sapronov2025pretraining,
  title  = {On Pretraining for Project-Level Code Completion},
  author = {Maksim Sapronov and Evgeniy Glukhov},
  year   = {2025},
  eprint = {2510.13697},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.13697v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.13697.svg)](https://codeofpaper.com/paper/2510.13697)

Discussion