Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
fp8
vllm
llm-compressor
compressed-tensors
qwen3.5
code
agent
sft
omnicoder
tesslate
conversational
Instructions to use RedHatAI/OmniCoder-9B-FP8-Dynamic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RedHatAI/OmniCoder-9B-FP8-Dynamic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RedHatAI/OmniCoder-9B-FP8-Dynamic") 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("RedHatAI/OmniCoder-9B-FP8-Dynamic") model = AutoModelForMultimodalLM.from_pretrained("RedHatAI/OmniCoder-9B-FP8-Dynamic") 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 RedHatAI/OmniCoder-9B-FP8-Dynamic with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RedHatAI/OmniCoder-9B-FP8-Dynamic" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RedHatAI/OmniCoder-9B-FP8-Dynamic", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RedHatAI/OmniCoder-9B-FP8-Dynamic
- SGLang
How to use RedHatAI/OmniCoder-9B-FP8-Dynamic 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 "RedHatAI/OmniCoder-9B-FP8-Dynamic" \ --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": "RedHatAI/OmniCoder-9B-FP8-Dynamic", "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 "RedHatAI/OmniCoder-9B-FP8-Dynamic" \ --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": "RedHatAI/OmniCoder-9B-FP8-Dynamic", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use RedHatAI/OmniCoder-9B-FP8-Dynamic with Docker Model Runner:
docker model run hf.co/RedHatAI/OmniCoder-9B-FP8-Dynamic
File size: 9,650 Bytes
dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 a1e8f2e 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 dc17f56 3d700a9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 | ---
library_name: transformers
license: apache-2.0
language:
- en
pipeline_tag: text-generation
tags:
- fp8
- vllm
- llm-compressor
- compressed-tensors
- qwen3.5
- code
- agent
- sft
- omnicoder
- tesslate
base_model: Tesslate/OmniCoder-9B
---
# OmniCoder-9B-FP8-Dynamic
## Model Overview
- **Model Architecture:** Qwen3_5ForConditionalGeneration
- **Input:** Text
- **Output:** Text
- **Model Optimizations:**
- **Weight quantization:** FP8
- **Activation quantization:** FP8
- **Release Date:** 2026-03-20
- **Version:** 1.0
- **Model Developers:** RedHatAI
This model is a quantized version of [Tesslate/OmniCoder-9B](https://huggingface.co/Tesslate/OmniCoder-9B). See the Evaluation section below for accuracy relative to the unquantized model.
### Model Optimizations
This model was obtained by quantizing the weights and activations of [Tesslate/OmniCoder-9B](https://huggingface.co/Tesslate/OmniCoder-9B) to FP8 data type, ready for inference with vLLM.
This optimization reduces the number of bits per parameter from 16 to 8, reducing the disk size and GPU memory requirements by approximately 50%.
Only the weights and activations of the linear operators within transformer blocks are quantized using [LLM Compressor](https://github.com/vllm-project/llm-compressor).
## Deployment
### Use with vLLM
1. Initialize vLLM server:
```
vllm serve RedHatAI/OmniCoder-9B-FP8-Dynamic --reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder --language-model-only --max-model-len 262144
```
2. Send requests to the server:
```python
from openai import OpenAI
openai_api_key = "EMPTY"
openai_api_base = "http://<your-server-host>:8000/v1"
client = OpenAI(
api_key=openai_api_key,
base_url=openai_api_base,
)
model = "RedHatAI/OmniCoder-9B-FP8-Dynamic"
messages = [
{"role": "user", "content": "Explain the difference between a mutex and a semaphore."},
]
outputs = client.chat.completions.create(
model=model,
messages=messages,
temperature=0.6,
)
generated_text = outputs.choices[0].message.content
print(generated_text)
```
## Creation
This model was created by applying [LLM Compressor](https://github.com/vllm-project/llm-compressor) with FP8 dynamic (W8A8) quantization and exported in compressed-tensors format.
<details>
```python
from transformers import AutoProcessor, Qwen3_5ForConditionalGeneration
from llmcompressor import oneshot
from llmcompressor.modifiers.quantization import QuantizationModifier
MODEL_ID = "Tesslate/OmniCoder-9B"
# Load model and processor.
model = Qwen3_5ForConditionalGeneration.from_pretrained(MODEL_ID, dtype="auto")
processor = AutoProcessor.from_pretrained(MODEL_ID)
# Configure FP8 dynamic quantization:
# * weights: FP8 with per-channel static scales
# * activations: FP8 with dynamic per-token scales
recipe = QuantizationModifier(
targets="Linear",
scheme="FP8_DYNAMIC",
ignore=[
"lm_head",
"re:.*model.embed_tokens.*",
"re:.*visual.*",
"re:.*conv1d.*",
],
)
# Apply quantization (no calibration data required).
oneshot(model=model, recipe=recipe)
# Save in compressed-tensors format.
SAVE_DIR = MODEL_ID.rstrip("/").split("/")[-1] + "-FP8-Dynamic"
model.save_pretrained(SAVE_DIR)
processor.save_pretrained(SAVE_DIR)
```
</details>
## Evaluation
This model was evaluated on GSM8K-Platinum, MMLU-Pro, IFEval, Math 500, GPQA Diamond, AIME 25, and LiveCodeBench v6 using [lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness) and [lighteval](https://github.com/huggingface/lighteval), served with [vLLM](https://github.com/vllm-project/vllm). SWE-Bench Verified was evaluated using [mini-swe-agent](https://github.com/SWE-agent/mini-swe-agent) and the [SWE-bench](https://github.com/SWE-bench/SWE-bench) harness.
### Accuracy
<table>
<thead>
<tr>
<th>Category</th>
<th>Benchmark</th>
<th>Tesslate/OmniCoder-9B</th>
<th>RedHatAI/OmniCoder-9B-FP8-Dynamic</th>
<th>Recovery</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="5"><b>Reasoning</b></td>
<td>GSM8K-Platinum (0-shot)</td>
<td>94.27</td>
<td>93.19</td>
<td>98.9%</td>
</tr>
<tr>
<td>MMLU-Pro (0-shot)</td>
<td>82.42</td>
<td>81.69</td>
<td>99.1%</td>
</tr>
<tr>
<td>Math 500 (0-shot)</td>
<td>83.20</td>
<td>84.47</td>
<td>101.5%</td>
</tr>
<tr>
<td>AIME 25 (0-shot)</td>
<td>77.08</td>
<td>74.17</td>
<td>96.2%</td>
</tr>
<tr>
<td>GPQA Diamond (0-shot)</td>
<td>81.99</td>
<td>81.48</td>
<td>99.4%</td>
</tr>
<tr>
<td rowspan="2"><b>Instruction Following</b></td>
<td>IFEval prompt-level strict (0-shot)</td>
<td>74.92</td>
<td>69.19</td>
<td>92.4%</td>
</tr>
<tr>
<td>IFEval inst-level strict (0-shot)</td>
<td>76.42</td>
<td>70.70</td>
<td>92.5%</td>
</tr>
<tr>
<td rowspan="2"><b>Coding</b></td>
<td>LiveCodeBench v6 (0-shot)</td>
<td>54.10</td>
<td>54.86</td>
<td>101.4%</td>
</tr>
<tr>
<td>SWE-Bench Verified (resolve rate)</td>
<td>28.20</td>
<td>30.20</td>
<td>107.1%</td>
</tr>
</tbody>
</table>
### Reproduction
The results were obtained using the following commands:
<details>
The model was served with vLLM using the following command:
```
vllm serve RedHatAI/OmniCoder-9B-FP8-Dynamic --reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder --language-model-only --max-model-len 262144
```
Each benchmark was run multiple times with different random seeds. Most tasks used 3 seeds (42, 1234, 4158). AIME 25 used 8 seeds (42, 1234, 4158, 5322, 1356, 9843, 3344, 5678). Scores are averaged across all seeds.
#### lm-eval benchmarks
##### IFEval (0-shot)
```
lm_eval --model local-chat-completions \
--tasks ifeval \
--model_args "model=RedHatAI/OmniCoder-9B-FP8-Dynamic,max_length=262144,base_url=http://0.0.0.0:8000/v1/chat/completions,num_concurrent=64,max_retries=3,tokenized_requests=False,tokenizer_backend=None,timeout=2400" \
--apply_chat_template \
--output_path results_ifeval.json \
--seed 42 \
--gen_kwargs "do_sample=True,temperature=0.6,top_p=0.95,top_k=20,min_p=0.0,max_gen_toks=64000,presence_penalty=0.0,seed=42"
```
##### MMLU-Pro (0-shot)
```
lm_eval --model local-chat-completions \
--tasks mmlu_pro_chat \
--model_args "model=RedHatAI/OmniCoder-9B-FP8-Dynamic,max_length=262144,base_url=http://0.0.0.0:8000/v1/chat/completions,num_concurrent=128,max_retries=3,tokenized_requests=False,tokenizer_backend=None,timeout=1200" \
--num_fewshot 0 \
--apply_chat_template \
--output_path results_mmlu_pro.json \
--seed 42 \
--gen_kwargs "do_sample=True,temperature=0.6,top_p=0.95,top_k=20,min_p=0.0,max_gen_toks=64000,presence_penalty=0.0,seed=42"
```
##### GSM8K-Platinum (0-shot)
```
lm_eval --model local-chat-completions \
--tasks gsm8k_platinum_cot_llama \
--model_args "model=RedHatAI/OmniCoder-9B-FP8-Dynamic,max_length=262144,base_url=http://0.0.0.0:8000/v1/chat/completions,num_concurrent=64,max_retries=3,tokenized_requests=False,tokenizer_backend=None,timeout=1200" \
--num_fewshot 0 \
--apply_chat_template \
--output_path results_gsm8k_platinum.json \
--seed 42 \
--gen_kwargs "do_sample=True,temperature=0.6,top_p=0.95,top_k=20,min_p=0.0,max_gen_toks=64000,presence_penalty=0.0,seed=42"
```
#### lighteval benchmarks
**litellm_config.yaml**
```yaml
model_parameters:
provider: "hosted_vllm"
model_name: "hosted_vllm/RedHatAI/OmniCoder-9B-FP8-Dynamic"
base_url: "http://0.0.0.0:8000/v1"
api_key: ""
timeout: 2400
concurrent_requests: 256
generation_parameters:
temperature: 0.6
max_new_tokens: 50000
top_p: 0.95
presence_penalty: 0.0
top_k: 20
seed: 42
```
##### Math 500, GPQA Diamond, LiveCodeBench v6 (0-shot)
```
lighteval endpoint litellm litellm_config.yaml \
"math_500|0,gpqa:diamond|0,lcb:codegeneration_v6|0" \
--output-dir results_lighteval \
--save-details
```
##### AIME 25 (0-shot)
```
lighteval endpoint litellm litellm_config.yaml \
"aime25|0" \
--output-dir results_aime25 \
--save-details
```
#### SWE-Bench Verified
SWE-Bench Verified was evaluated with [mini-swe-agent](https://github.com/SWE-agent/mini-swe-agent) for agent rollouts against the vLLM server, and scored with the [SWE-bench](https://github.com/SWE-bench/SWE-bench) evaluation harness.
**registry.yaml**
```yaml
{
"RedHatAI/OmniCoder-9B-FP8-Dynamic": {
"max_tokens": 262144,
"input_cost_per_token": 0.0,
"output_cost_per_token": 0.0,
"litellm_provider": "hosted_vllm",
"mode": "chat"
}
}
```
Set the model endpoint in `swebench.yaml`:
```yaml
model:
model_name: "hosted_vllm/RedHatAI/OmniCoder-9B-FP8-Dynamic"
model_kwargs:
api_base: "http://0.0.0.0:8100/v1"
api_key: ""
temperature: 0.2
top_p: 0.95
presence_penalty: 0.0
top_k: 20
max_new_tokens: 240000
```
Run agent rollouts:
```
LITELLM_MODEL_REGISTRY_PATH=registry.yaml \
mini-extra swebench \
--subset inference-optimization/SWE-bench_Verified \
--split test \
--config swebench.yaml \
--workers 64 \
--output verified_swe_instances
```
Score predictions with the SWE-bench harness:
```
python -m swebench.harness.run_evaluation \
--dataset_name inference-optimization/SWE-bench_Verified \
--predictions_path ./verified_swe_instances/preds.json \
--max_workers 8 \
--run_id validate-verified_swe_instances \
--cache_level instance
```
</details>
|