Instructions to use henryen/OriGent-RL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use henryen/OriGent-RL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="henryen/OriGent-RL") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("henryen/OriGent-RL") model = AutoModelForMultimodalLM.from_pretrained("henryen/OriGent-RL", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use henryen/OriGent-RL with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "henryen/OriGent-RL" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "henryen/OriGent-RL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/henryen/OriGent-RL
- SGLang
How to use henryen/OriGent-RL with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "henryen/OriGent-RL" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "henryen/OriGent-RL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "henryen/OriGent-RL" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "henryen/OriGent-RL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use henryen/OriGent-RL with Docker Model Runner:
docker model run hf.co/henryen/OriGent-RL
OriGent-RL
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 (
906updates, batch size 32) on8,444verified hardware engineering tasks (9,664segments:9,054interaction segments and610standalone compaction-summary samples) across61repositories drawn from the8,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
51synchronous GRPO updates (64 groups × 8 rollouts,GBS = 512, constant LR1e-6,kl = 0,entropy = 0,--disable-grpo-std-normalization, prompt-mean token loss) on2,163difficulty-screened tasks across23held-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(passtop_k = -1explicitly in your client config to overridetop_k = 20in the inheritedgeneration_config.json) - Multi-turn reasoning: Enable thinking and configure OpenCode with
"interleaved": {"field": "reasoning_content"}so reasoning blocks are preserved across tool calls (seeevaluation/configs/opencode_eval.example.jsonin the GitHub repository) - Context / Compaction:
262,144context window,65,536max output tokens per turn, OpenCode compactionreserved = 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
Model tree for henryen/OriGent-RL
Base model
Qwen/Qwen3.6-35B-A3B