Instructions to use henryen/OriGent-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use henryen/OriGent-SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="henryen/OriGent-SFT") 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-SFT") model = AutoModelForMultimodalLM.from_pretrained("henryen/OriGent-SFT", 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-SFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "henryen/OriGent-SFT" # 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-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/henryen/OriGent-SFT
- SGLang
How to use henryen/OriGent-SFT 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-SFT" \ --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-SFT", "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-SFT" \ --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-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use henryen/OriGent-SFT with Docker Model Runner:
docker model run hf.co/henryen/OriGent-SFT
OriGent-SFT
OriGent Suite: OriGent-RL · OriGent-SFT · OriGent-SFT-Data · OriGent-RL-Data
OriGent-SFT is the Stage-1 long-context supervised fine-tuned hardware engineering agent initialized from Qwen3.6-35B-A3B. It serves both as a standalone repository-level hardware agent (66.8% on HWE-Bench v1.1, +26.0 pp over Base) and as the initialization checkpoint for OriGent-RL (74.2%).
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 (this model) | 66.8% (278.7) | 272 / 285 / 279 | +26.0 pp |
| OriGent-RL | 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). - Training Data:
8,444verified hardware engineering tasks (9,664segments:9,054multi-turn interaction segments and610standalone context-compaction summary samples;436,576supervised assistant turns after the 8K reasoning mask) across61repositories disjoint from RL (23repos) and HWE-Bench (6repos). Sanitized teacher trajectories and the8,861-task Harbor suite are released inhenryen/OriGent-SFT-Data. - Optimization: 3 epochs (
906updates) at global batch size32, cosine learning rate1e-5to1e-6(90warmup steps), sequence-packed 256K context window, and turn-level reasoning loss masking on assistant turns exceeding8,192reasoning tokens.
Quick Start (Serving with SGLang / vLLM)
SGLang (Recommended for OpenCode)
python3 -m sglang.launch_server \
--model-path henryen/OriGent-SFT \
--served-model-name origent-sft \
--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-SFT \
--served-model-name origent-sft \
--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 - 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
- 9
Model tree for henryen/OriGent-SFT
Base model
Qwen/Qwen3.6-35B-A3B