We introduce rnj-1.5-instruct, a long-context follow-up to rnj-1-instruct, that extends the context window from 32k to 160k. For more context and details about the Rnj-1 family, and rnj-1-instruct in particular, please see this page and our blog.
rnj-1.5-instruct extends rnj-1's long context abilities beyond 32k, scoring 77% on RULER on a 128k context window. This release also offers stronger coding abilities on a wider range of harnesses. We improve our SWE-Bench Verified performance on mini-swe-agent by 5% and we outperform, by a significant margin, the best known 8B model results on the SWE-Agent harness, achieving a 40% resolve rate.
The improvements in rnj-1.5 emerge from our work in a few key areas:
Architecture: To ease inference compute and storage costs that grow with sequence length for global self-attention, we explore block-local attention layers [5, 6] which carry fixed compute and storage cost per position. Following [4], we interleave block-local self-attention with global attention, keeping layers predominantly local and a few global layers to enhance associative interactions over long distances. After careful ablations, we discovered a local-global layer pattern LLLGLLLGLLLGLGGGGGLGLLLGLLLGLLLL, where L and G stand for block-local and global self-attention layers respectively, that lumps global layers in the middle and retains the model's global attention capabilities while gaining the latency benefits of local self-attention. Our results support the findings from GLM-5 [1].
Evals: We discovered that RULER's needle-in-a-haystack (NIAH) task has two fundamental issues. (a) The predominant focus on text-based evaluation overlooks measuring long context abilities necessary for coding tasks. (b) The needle is a foreign random string in a coherent English essay, which shifts the task from identifying an indistinguishable needle to picking the "odd one out." We thus created a granular NIAH eval called "lookback evals" from GitHub repositories. In lookback evals, the needles are semantically camouflaged within the haystack. We add a canary marker to the needles to distinguish between the model's recall from its weights versus retrieval capabilities. For granular insights on long-context abilities, we bucket performance for needle positions over (0–8k, 8k–16k, 16k–32k) distances from the end. Rnj-1.5's performance remains consistent across buckets, showcasing stronger retrieval capabilities throughout the long context.
Long context mid-training data:
Long context tasks:
Expanded SWE trajectories: We created a synthetic task generation pipeline that allowed us to mine ~200k SWE tasks from 3500 GitHub repositories. Each task consists of the issue description, dockerized repository at failing commit, pass-to-pass, and fail-to-pass tests. Three teacher models were used to generate ~600k synthetic trajectories in the mini-swe-agent environment, including both resolved and unresolved trajectories.
Software infrastructure: For vLLM compatibility, we implement our block-local self-attention modifications in Triton.
rnj-1.5-instruct
SWE-Bench Verified number for rnj-1.5-instruct is reported with the SWE-Agent harness. With the mini-swe-agent harness, we report a 25% resolve rate. RULER (128k) is overall RULER score at 128k context length.
See the Rnj 1.0 model card. You just need to replace rnj-1.0-instruct with rnj-1.5-instruct. We added support to vLLM in v0.20.0.
See the Rnj 1.0 model card. In addition, we optimized our model for long-context comprehension and not long-context generation. Consequently, rarely we have seen some junk tokens show up with extremely longer generations.
This repository and the model weights are licensed under the Apache License, Version 2.0 (Apache 2.0).
We welcome your questions and feedback. You can contact us at info@essential.ai.
[1] Zeng, Aohan, et al. "GLM-5: from vibe coding to agentic engineering." arXiv preprint arXiv:2602.15763 (2026).
[2] B. Hui et al., "Qwen2.5-Coder Technical Report," arXiv preprint arXiv:2409.12186, 2024. https://arxiv.org/abs/2409.12186
[3] J. Poznanski et al., "olmOCR 2: Unit Test Rewards for Document OCR," arXiv preprint arXiv:2510.19817, 2025. https://arxiv.org/abs/2510.19817
[4] I. Beltagy et al., "Longformer: The long-document transformer." arXiv preprint arXiv:2004.05150 (2020). https://arxiv.org/abs/2004.05150
[5] N. Parmar, et al. "Image transformer." International Conference on Machine Learning. PMLR, 2018.
[6] A. Vaswani, et al. "Scaling local self-attention for parameter efficient visual backbones." Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2021.
[7] A. Ettinger et al. "Olmo 3." arXiv preprint arXiv:2512.13961 (2026). https://arxiv.org/abs/2512.13961
[8] A. Dubey, et al., "The Llama 3 Herd of Models." arXiv preprint arXiv:2407.21783 (2024). https://arxiv.org/abs/2407.21783
[9] A. Yang, et al., "Qwen2.5-1M Technical Report." arXiv preprint arXiv:2501.15383 (2025). https://arxiv.org/abs/2501.15383
@misc{rnj1_5_instruct,
title = {{Rnj-1-5-Instruct}},
author = {{{Essential AI:}} Mike Callahan and Adarsh Chaluvaraju and Aleksa Gordić and Devaansh Gupta and Yash Jain and Philip Monk and Michael Pust and Tim Romanski and Peter Rushton and Ali Shehper and Divya Shivaprasad and Saurabh Srivastava and Anil Thomas and Alok Tripathy and Ameya Velingker and Ashish Vaswani},
year = {2026},
url = {https://huggingface.co/EssentialAI/rnj-1-5-instruct},
note = {Long-context Instruction-tuned model release}
}
model-00004-of-00007.safetensors 4.5 GiBmodel-00005-of-00007.safetensors 4.5 GiBmodel-00006-of-00007.safetensors 4.5 GiBmodel-00003-of-00007.safetensors 4.5 GiBmodel-00002-of-00007.safetensors 4.5 GiBmodel-00001-of-00007.safetensors 4.4 GiBmodel-00007-of-00007.safetensors 3.9 GiBEssentialAI/rnj-1