Instructions to use OrionLLM/OxCoder-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OrionLLM/OxCoder-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OrionLLM/OxCoder-9B") 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)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("OrionLLM/OxCoder-9B") model = AutoModelForMultimodalLM.from_pretrained("OrionLLM/OxCoder-9B", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OrionLLM/OxCoder-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OrionLLM/OxCoder-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OrionLLM/OxCoder-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OrionLLM/OxCoder-9B
- SGLang
How to use OrionLLM/OxCoder-9B 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 "OrionLLM/OxCoder-9B" \ --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": "OrionLLM/OxCoder-9B", "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 "OrionLLM/OxCoder-9B" \ --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": "OrionLLM/OxCoder-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use OrionLLM/OxCoder-9B with Docker Model Runner:
docker model run hf.co/OrionLLM/OxCoder-9B
Introduction
We are proud to introduce OxCoder-9B, our lightweight coding model for long-horizon tasks, agentic coding, and agentic reasoning. Despite featuring only 9 billion parameters, OxCoder-9B marks a substantial leap in agentic capabilities — particularly in Agentic Terminal and Agentic Coding tasks — punching far above its weight class and rivaling models many times its size. This release represents our strongest commitment yet to delivering frontier-level agentic performance in a compact, efficient, and openly accessible package.
- Trained on Frontier Agent Traces: Built from Fable-5.1 and GLM-5.3 agentic coding trajectories across Claude Code, OpenCode and Codex — OxCoder-9B has been distilled from some of the most capable agentic systems available, giving it a unique advantage in real-world software engineering scenarios.
- 262K Native Context: Equipped with a full 262,144 token native context window, enabling the model to handle complex, multi-file codebases and long-horizon reasoning tasks with ease.
- Error Recovery: Learns read-before-write patterns, responds to LSP diagnostics, and applies minimal edit diffs instead of full rewrites — making it robust in iterative coding environments where precision matters.
- Front-end Reasoning: OxCoder-9B exhibits remarkably strong front-end reasoning capabilities for its size, demonstrating a deep understanding of UI logic, component architecture, and web-native patterns that is rare in sub-10B models.
Benchmark
* All results reported for OxCoder-9B are averaged over five independent runs. A dash (—) means the score was not reported for that model.
* Terminal-Bench 2.1 (Terminus-2): We evaluate Terminal-Bench 2.1 using the Harbor/Terminus-2 framework with parser=json, temperature=1.0, top_p=1.0, and a 256K context window. Each run uses a 2-hour timeout with 32 CPU cores and 32GB RAM.
* Terminal-Bench 2.1 (Claude Code): We evaluate Terminal-Bench 2.1 using Claude Code 2.1.126 with parser=json, temperature=1.0, top_p=1.0.
* SWE-bench Verified and Pro: using the OpenHands harness with temp=1.0, top_p=0.95, 256K context window. Anti-hacking safeguards are applied throughout evaluation: Git history is removed from the local repository image to prevent access to prior solutions or commits; network access is disabled, preventing the model from retrieving external information or resources.
* NL2Repo: with temperature=1.0, top_p=1.0, 256K context, 48K output. Access to the specified GitHub repositories and pip packages is blocked to prevent reward hacking.
* HLE: Evaluated using GLM-5.3 as the judge model.
* MCP-Atlas: Evaluated using GLM-5.3 as the judge model.
* ClawEval: temp=0.6 and 256K context.
* Baseline scores for Ornith-1.5-9B, Ornith-1.0-9B, Qwen3.5-9B and Gemma-4-31B are taken from the Ornith-1.5-9B model card and were produced under that team's evaluation settings, which differ from ours on some benchmarks (context window, timeouts and judge model).
OxCoder-9B is developed by OrionLLM and released under the Apache 2.0 License.
- Downloads last month
- 2,172
Model tree for OrionLLM/OxCoder-9B
Base model
Qwen/Qwen3.5-9B-BaseSpace using OrionLLM/OxCoder-9B 1
Evaluation results
- Idavidrein/gpqa · Diamond View evaluation results leaderboard 86.9
- SWE-bench/SWE-bench_Verified · Swe Bench Resolved View evaluation results leaderboard 73.5
- harborframework/terminal-bench-2.1 · Terminalbench 2 1 leaderboard
- Harness: Claude Code View evaluation results50.8 *
- Harness: Terminus-2 View evaluation results49.6 *
- ScaleAI/SWE-bench_Pro · SWE Bench Pro View evaluation results leaderboard 49.1
- cais/hle · Hle

