OriGent-RL

arXiv Project Website GitHub

OriGent Suite: OriGent-RL · OriGent-SFT · OriGent-SFT-Data · OriGent-RL-Data

OriGent-RL is an open-weight hardware engineering agent post-trained from Qwen3.6-35B-A3B via long-context supervised fine-tuning (OriGent-SFT) followed by 51 synchronous online GRPO updates across 2,163 repository-level hardware engineering tasks from 23 repositories.

It operates inside interactive shell and container tool harnesses (such as OpenCode 1.18.22) across RTL design and IP, hardware DSLs, EDA software, simulation and verification, and embedded firmware.

Benchmark Performance (HWE-Bench v1.1, 417 Tasks)

Evaluated with OpenCode 1.18.22 (256K context window, 64K max output tokens per turn, 6-hour task budget, temperature = 1.0, top_p = 1.0, top_k = -1):

Model HWE-Bench v1.1 (Mean / 417) Per-Run Solved Gain vs. Base
Qwen3.6-35B-A3B (Base) 40.8% (170.0) 170 —
OriGent-SFT 66.8% (278.7) 272 / 285 / 279 +26.0 pp
OriGent-RL (this model) 74.2% (309.3) 311 / 312 / 305 +33.4 pp

Model & Training Summary

  • Architecture: Qwen3_5MoeForConditionalGeneration (qwen3_5_moe), 40 layers (hybrid linear + full attention), 256 experts, 248,320 vocabulary, BF16 (34 × ~2 GiB safetensors shards, 67 GiB; all 352 frozen visual/MTP tensors preserved).
  • Stage 1 (Long-Context SFT): Trained for 3 epochs (906 updates, batch size 32) on 8,444 verified hardware engineering tasks (9,664 segments: 9,054 interaction segments and 610 standalone compaction-summary samples) across 61 repositories drawn from the 8,861-task / 62-repository SFT pool, disjoint from RL and evaluation, with a 256K context window and 8K turn-level reasoning loss masking.
  • Stage 2 (Online RL — GRPO): Trained for 51 synchronous GRPO updates (64 groups × 8 rollouts, GBS = 512, constant LR 1e-6, kl = 0, entropy = 0, --disable-grpo-std-normalization, prompt-mean token loss) on 2,163 difficulty-screened tasks across 23 held-out repositories using Miles + SGLang + Harbor with Token-In-Token-Out (TITO), Rollout Routing Replay ($R^3$), joint compaction supervision, and frozen MoE router weights.

Quick Start (Serving with SGLang / vLLM)

SGLang (Recommended for OpenCode)

python3 -m sglang.launch_server \
  --model-path henryen/OriGent-RL \
  --served-model-name origent-rl \
  --tp 4 \
  --context-length 262144 \
  --reasoning-parser qwen3 \
  --tool-call-parser qwen3_coder \
  --host 0.0.0.0 \
  --port 30000

vLLM

vllm serve henryen/OriGent-RL \
  --served-model-name origent-rl \
  --tensor-parallel-size 4 \
  --max-model-len 262144 \
  --reasoning-parser qwen3 \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder \
  --host 0.0.0.0 \
  --port 30000

Recommended Sampling & Agent Settings

  • Temperature / Top-p / Top-k: temperature = 1.0, top_p = 1.0, top_k = -1 (pass top_k = -1 explicitly in your client config to override top_k = 20 in the inherited generation_config.json)
  • Multi-turn reasoning: Enable thinking and configure OpenCode with "interleaved": {"field": "reasoning_content"} so reasoning blocks are preserved across tool calls (see evaluation/configs/opencode_eval.example.json in the GitHub repository)
  • Context / Compaction: 262,144 context window, 65,536 max output tokens per turn, OpenCode compaction reserved = 73,728 (auto = true, prune = false)

License

Released under the Apache License 2.0, inheriting the base model license of Qwen/Qwen3.6-35B-A3B.

Citation

@article{cui2026origent,
  title   = {OriGent: Post-Training Hardware Engineering Agents through Scalable Environment Synthesis},
  author  = {Fan Cui and Kexing Zhou and Youwei Zhuo},
  journal = {arXiv preprint arXiv:2611.38637},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.38637}
}
Downloads last month
6
Safetensors
Model size
36B params
Tensor type
F32
·
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for henryen/OriGent-RL

Finetuned
(551)
this model

Collection including henryen/OriGent-RL

Paper for henryen/OriGent-RL