Run this model with HF Jobs

Run OpenHands/CodeScout-14B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/OpenHands/CodeScout-14B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/OpenHands/CodeScout-14B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/OpenHands/CodeScout-14B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/OpenHands/CodeScout-14B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="OpenHands/CodeScout-14B")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("OpenHands/CodeScout-14B")
model = AutoModelForCausalLM.from_pretrained("OpenHands/CodeScout-14B", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

CodeScout-14B

πŸ“„ Paper β€’ πŸ’» Code β€’ πŸ€— Collection

Strongest CodeScout model β€” open-source SOTA on SWE-Bench code localization.

CodeScout Overview

CodeScout-14B is part of the CodeScout family of open-source RL-trained code search agents. CodeScout models achieve state-of-the-art repository-level code localization using nothing more than a standard Unix terminal β€” no static analysis, no repository graphs, no language-specific tooling.

Key Highlights

  • Open-source SOTA on SWE-Bench Verified, Pro, and Lite for code localization
  • Outperforms 2–18Γ— larger base and post-trained LLMs across all benchmarks
  • Surpasses GPT-5 and approaches Claude Sonnet 4.5 using RepoNavigator, despite using only a bash terminal
  • Achieves 8–33% higher function-level F1 than Qwen3-32B (Thinking)

Results

Performance on SWE-Bench code localization (instance-averaged F1 scores):

Benchmark CodeScout-1.7B CodeScout-4B CodeScout-14B
SWE-Bench Verified β€” File F1 55.46 68.52 68.57
SWE-Bench Verified β€” Func F1 28.22 36.78 40.32
SWE-Bench Pro β€” File F1 40.96 51.77 53.63
SWE-Bench Pro β€” Func F1 18.24 29.03 28.74
SWE-Bench Lite β€” File F1 56.57 67.03 71.84
SWE-Bench Lite β€” Func F1 27.07 39.87 44.43

File-level F1 vs Model Size Function-level F1 vs Model Size

Code localization performance on SWE-Bench Verified. CodeScout (⭐) achieves superior or competitive results over larger open-source LLMs and narrows the gap with closed-source frontier models.

Training

CodeScout-14B is trained directly from Qwen3-14B using GSPO (Group Sequence Policy Optimization) reinforcement learning.

  • Training data: 9,600 instances from SWE-Smith (39K filtered, 128 repos)
  • RL steps: 300
  • Batch size: 32, with 4 rollouts per instance
  • Max context length: 50K tokens (extended with YaRN)
  • Max turns per episode: 4
  • Reward: Multi-level F1 (file + module + function) with auxiliary turn-completion reward
  • Hardware: 8Γ—H100 GPUs
  • Learning rate: 1e-6 (constant)

How It Works

CodeScout uses the OpenHands-Bash scaffold β€” an agent equipped with only a Terminal tool (supporting standard Unix commands like rg, find, grep, ls) and a LocalizationFinish tool for structured output submission. The agent iteratively navigates the repository to identify relevant files, classes, and functions related to a given issue.

The model is trained with GSPO (Group Sequence Policy Optimization) using multi-level F1 rewards at the file, module, and function level.

Intended Use

CodeScout-14B is designed for repository-level code localization: given a GitHub issue description and a code repository, it identifies the relevant files, classes, and functions that need to be modified. It is intended to be used as a localization subagent within larger coding agent pipelines.

Limitations

  • Trained and evaluated exclusively on Python repositories
  • Designed for code localization, not code editing or issue resolution
  • Performance may vary on repositories significantly different from the training distribution
  • Requires the OpenHands-Bash scaffold for optimal performance

Citation

@misc{sutawika2026codescouteffectiverecipereinforcement,
      title={CodeScout: An Effective Recipe for Reinforcement Learning of Code Search Agents}, 
      author={Lintang Sutawika and Aditya Bharat Soni and Bharath Sriraam R R and Apurva Gandhi and Taha Yassine and Sanidhya Vijayvargiya and Yuchen Li and Xuhui Zhou and Yilin Zhang and Leander Melroy Maben and Graham Neubig},
      year={2026},
      eprint={2603.17829},
      archivePrefix={arXiv},
      primaryClass={cs.SE},
      url={https://arxiv.org/abs/2603.17829}, 
}
Downloads last month
60
Safetensors
Model size
15B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for OpenHands/CodeScout-14B

Finetuned
Qwen/Qwen3-14B
Finetuned
(400)
this model
Quantizations
1 model

Datasets used to train OpenHands/CodeScout-14B

Space using OpenHands/CodeScout-14B 1

Collection including OpenHands/CodeScout-14B

Paper for OpenHands/CodeScout-14B