Text Generation
Transformers
Safetensors
PyTorch
English
qwen3_5
image-text-to-text
text-generation-inference
omnimergekit
Merge
reasoning
chain-of-thought
sft
agent
tool-use
function-calling
coder
conversational
Instructions to use prithivMLmods/Orion-9B-Agentic-CodeCore-Merge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Orion-9B-Agentic-CodeCore-Merge with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/Orion-9B-Agentic-CodeCore-Merge") 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("prithivMLmods/Orion-9B-Agentic-CodeCore-Merge") model = AutoModelForMultimodalLM.from_pretrained("prithivMLmods/Orion-9B-Agentic-CodeCore-Merge", 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 prithivMLmods/Orion-9B-Agentic-CodeCore-Merge with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Orion-9B-Agentic-CodeCore-Merge" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Orion-9B-Agentic-CodeCore-Merge", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/Orion-9B-Agentic-CodeCore-Merge
- SGLang
How to use prithivMLmods/Orion-9B-Agentic-CodeCore-Merge 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 "prithivMLmods/Orion-9B-Agentic-CodeCore-Merge" \ --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": "prithivMLmods/Orion-9B-Agentic-CodeCore-Merge", "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 "prithivMLmods/Orion-9B-Agentic-CodeCore-Merge" \ --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": "prithivMLmods/Orion-9B-Agentic-CodeCore-Merge", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prithivMLmods/Orion-9B-Agentic-CodeCore-Merge with Docker Model Runner:
docker model run hf.co/prithivMLmods/Orion-9B-Agentic-CodeCore-Merge
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# **Orion-9B-Agentic-CodeCore-Merge**
|
| 6 |
+
|
| 7 |
+
> Orion-9B-Agentic-CodeCore-Merge is a merged 9B-parameter coding and reasoning model designed for long-horizon coding tasks, agentic coding, and agentic reasoning. It is built by merging [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B) as the base model with [MiMo-V2.6-Distill-Qwen-9B](https://huggingface.co/XiaomiMiMo/MiMo-V2.6-Distill-Qwen-9B), [OxCoder-9B](https://huggingface.co/OrionLLM/OxCoder-9B), and [Ornith-1.5-9B](https://huggingface.co/ornith-ai/Ornith-1.5-9B), combining their capabilities for code generation, multi-step problem solving, instruction following, and autonomous coding workflows. The model is intended for complex software-engineering tasks that require sustained reasoning across multiple steps, code understanding, modification, debugging, and tool-oriented agentic workflows. This model is experimental and may generate artifacts.
|
| 8 |
+
|
| 9 |
+
* *GGUF: [Orion-9B-Agentic-CodeCore-Merge-GGUF](https://huggingface.co/prithivMLmods/Orion-9B-Agentic-CodeCore-Merge-GGUF). Note: The Multi-Token Prediction (MTP) heads are not preserved in this format. The model runs as a standard single-token-per-step autoregressive decoder.*
|
| 10 |
+
|
| 11 |
+
## Merge Recipe
|
| 12 |
+
|
| 13 |
+
```bash
|
| 14 |
+
hf download XiaomiMiMo/MiMo-V2.6-Distill-Qwen-9B \
|
| 15 |
+
--local-dir ./models/MiMo-V2.6-Distill-Qwen-9B
|
| 16 |
+
|
| 17 |
+
hf download ornith-ai/Ornith-1.5-9B \
|
| 18 |
+
--local-dir ./models/Ornith-1.5-9B
|
| 19 |
+
|
| 20 |
+
hf download OrionLLM/OxCoder-9B \
|
| 21 |
+
--local-dir ./models/OxCoder-9B
|
| 22 |
+
|
| 23 |
+
hf download Qwen/Qwen3.5-9B \
|
| 24 |
+
--local-dir ./models/Qwen3.5-9B
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
```bash
|
| 28 |
+
python omnimergekit.py \
|
| 29 |
+
--base models/Qwen3.5-9B --task-base ./models/Qwen3.5-9B \
|
| 30 |
+
--source models/MiMo-V2.6-Distill-Qwen-9B \
|
| 31 |
+
--source models/OxCoder-9B \
|
| 32 |
+
--source models/Ornith-1.5-9B \
|
| 33 |
+
--weights 0.55,0.30,0.15 \
|
| 34 |
+
--method omnimerge_v2 --density 0.53 --darex-q 0.75 --seed 42 \
|
| 35 |
+
--no-auto-mlp-skip --skip-patterns visual.,mtp. \
|
| 36 |
+
--output prithivMLmods/Orion-9B-Agentic-CodeCore-Merge
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
## omnimergekit
|
| 40 |
+
|
| 41 |
+
Tools for model merging, expert pruning, differential competence-map extraction, and GGUF quantization — [omnimergekit](https://github.com/mann1x/omnimergekit)
|