On Pretraining for Project-Level Code Completion
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 25 of its 30 references that are in the map. First posted on arXiv 15 Oct 2025.
Builds on
25 of 30 references.
References · 25
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
13 more
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 353
- 2023Effective Long-Context Scaling of Foundation Modelscited by 303
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 183
- 2024CodeGemma: Open Code Models Based on Gemmacited by 150
- 2024OpenCoder: The Open Cookbook for Top-Tier Code Large Language Modelscited by 130
- 2023Scaling Laws of RoPE-based Extrapolationcited by 125
- 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 112
- 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 65
- 2024Long Code Arena: a Set of Benchmarks for Long-Context Code Modelscited by 50
- 2024Understanding the RoPE Extensions of Long-Context LLMs: An Attention Perspectivecited by 15
- 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completioncited by 14
- 2024HiRoPE: Length Extrapolation for Code Models Using Hierarchical Positioncited by 8
Built on by
Citing papers per year: 2026: 1.
1 paper.