Run this model with HF Jobs

Run XLearning-SCU/HERO-9B 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/XLearning-SCU/HERO-9B. 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/XLearning-SCU/HERO-9B 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/XLearning-SCU/HERO-9B. 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/XLearning-SCU/HERO-9B. 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.

HERO logo

HERO-9B

Doing More with Less Tokens: Hierarchical Reinforcement Learning for Efficient Coding Agents

Paper Code Hugging Face Models Hugging Face Trajectories

πŸ” Overview

HERO-9B is post-trained from Qwen3.5-9B using HERO (HiErarchical ReinfOrcement learning) to improve token efficiency while prioritizing task resolution.

Item Description
Base model Qwen/Qwen3.5-9B
Parameters 9B (dense)
Architecture and tokenizer Inherited from Qwen3.5-9B
Training HERO on 640 multilingual SWE tasks from SWE-Gym, Multi-SWE-bench, and SWE-rebench
Intended use Repository-level coding agents
Format Hugging Face weights and tokenizer

HERO combines capability-based efficiency gating, resolution-first clipping, and efficiency credit at trajectory and turn levels. Qwen3.5 is the backbone; this release contains the HERO post-trained weights.

Usage

Follow the preparation guide in the HERO code repository. From that repository's root, with this model saved under ../models/HERO-9B/:

MODEL=../models/HERO-9B bash eval/run_eval_swebench_verified.sh
MODEL=../models/HERO-9B bash eval/run_eval_swebench_multilingual.sh

Evaluation Settings

The released evaluation scripts use the following defaults for both SWE-bench Verified and SWE-bench Multilingual:

Setting Value
Agent scaffold Claude Code
Inference backend SGLang
Temperature 0.6
Top-p 0.95
Context length 131,072 tokens
Maximum output per call 16,000 tokens
Maximum agent turns 200
Automatic context compaction Disabled
Tools Default tools, excluding WebFetch, WebSearch, and Agent

See the evaluation script for configuration options.

License

Apache-2.0. See LICENSE. We acknowledge the Qwen team for the base model.

πŸ“– Citation

If you find HERO useful, please cite our paper:

@misc{li2026hero,
  title         = {Doing More with Less Tokens: Hierarchical Reinforcement Learning for Efficient Coding Agents},
  author        = {Haobin Li and Liang Jiang and Zhenyu Huang and Mouxing Yang and Xi Peng},
  year          = {2026},
  eprint        = {2609.38885},
  archivePrefix = {arXiv},
  primaryClass  = {cs.SE},
  url           = {https://arxiv.org/abs/2609.38885}
}
Downloads last month
48
Safetensors
Model size
9B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for XLearning-SCU/HERO-9B

Finetuned
Qwen/Qwen3.5-9B
Finetuned
(1,654)
this model
Merges
5 models
Quantizations
2 models

Space using XLearning-SCU/HERO-9B 1

Collection including XLearning-SCU/HERO-9B

Paper for XLearning-SCU/HERO-9B