Image-Text-to-Text
Safetensors
English
qwen3_5
qwen3.5
gptq
int8
quantized
coding
agentic
vlm
vision
conversational
8-bit precision
Instructions to use raydelossantos/OmniCoder-9B-GPTQ-Int8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- vLLM
How to use raydelossantos/OmniCoder-9B-GPTQ-Int8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "raydelossantos/OmniCoder-9B-GPTQ-Int8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "raydelossantos/OmniCoder-9B-GPTQ-Int8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/raydelossantos/OmniCoder-9B-GPTQ-Int8
- SGLang
How to use raydelossantos/OmniCoder-9B-GPTQ-Int8 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 "raydelossantos/OmniCoder-9B-GPTQ-Int8" \ --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": "raydelossantos/OmniCoder-9B-GPTQ-Int8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "raydelossantos/OmniCoder-9B-GPTQ-Int8" \ --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": "raydelossantos/OmniCoder-9B-GPTQ-Int8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use raydelossantos/OmniCoder-9B-GPTQ-Int8 with Docker Model Runner:
docker model run hf.co/raydelossantos/OmniCoder-9B-GPTQ-Int8
Fix config.json: use VLM structure (model_type=qwen3_5, Qwen3_5ForConditionalGeneration) with quantization_config
Browse files- config.json +27 -19
config.json
CHANGED
|
@@ -2,7 +2,9 @@
|
|
| 2 |
"architectures": [
|
| 3 |
"Qwen3_5ForConditionalGeneration"
|
| 4 |
],
|
|
|
|
| 5 |
"model_type": "qwen3_5",
|
|
|
|
| 6 |
"text_config": {
|
| 7 |
"attention_bias": false,
|
| 8 |
"attention_dropout": 0.0,
|
|
@@ -63,7 +65,7 @@
|
|
| 63 |
"num_attention_heads": 16,
|
| 64 |
"num_hidden_layers": 32,
|
| 65 |
"num_key_value_heads": 4,
|
| 66 |
-
"pad_token_id":
|
| 67 |
"partial_rotary_factor": 0.25,
|
| 68 |
"rms_norm_eps": 1e-06,
|
| 69 |
"rope_parameters": {
|
|
@@ -78,10 +80,32 @@
|
|
| 78 |
"rope_type": "default"
|
| 79 |
},
|
| 80 |
"tie_word_embeddings": false,
|
| 81 |
-
"transformers_version": "5.3.0.dev0",
|
| 82 |
"use_cache": true,
|
| 83 |
-
"vocab_size": 248320
|
|
|
|
| 84 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
"quantization_config": {
|
| 86 |
"bits": 8,
|
| 87 |
"checkpoint_format": "gptq",
|
|
@@ -130,21 +154,5 @@
|
|
| 130 |
"pack_dtype": "int32",
|
| 131 |
"quant_method": "gptq",
|
| 132 |
"sym": true
|
| 133 |
-
},
|
| 134 |
-
"vision_config": {
|
| 135 |
-
"deepstack_visual_indexes": [],
|
| 136 |
-
"depth": 27,
|
| 137 |
-
"hidden_act": "gelu_pytorch_tanh",
|
| 138 |
-
"hidden_size": 1152,
|
| 139 |
-
"in_channels": 3,
|
| 140 |
-
"initializer_range": 0.02,
|
| 141 |
-
"intermediate_size": 4304,
|
| 142 |
-
"model_type": "qwen3_5",
|
| 143 |
-
"num_heads": 16,
|
| 144 |
-
"num_position_embeddings": 2304,
|
| 145 |
-
"out_hidden_size": 4096,
|
| 146 |
-
"patch_size": 16,
|
| 147 |
-
"spatial_merge_size": 2,
|
| 148 |
-
"temporal_patch_size": 2
|
| 149 |
}
|
| 150 |
}
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"Qwen3_5ForConditionalGeneration"
|
| 4 |
],
|
| 5 |
+
"image_token_id": 248056,
|
| 6 |
"model_type": "qwen3_5",
|
| 7 |
+
"pad_token_id": 248055,
|
| 8 |
"text_config": {
|
| 9 |
"attention_bias": false,
|
| 10 |
"attention_dropout": 0.0,
|
|
|
|
| 65 |
"num_attention_heads": 16,
|
| 66 |
"num_hidden_layers": 32,
|
| 67 |
"num_key_value_heads": 4,
|
| 68 |
+
"pad_token_id": null,
|
| 69 |
"partial_rotary_factor": 0.25,
|
| 70 |
"rms_norm_eps": 1e-06,
|
| 71 |
"rope_parameters": {
|
|
|
|
| 80 |
"rope_type": "default"
|
| 81 |
},
|
| 82 |
"tie_word_embeddings": false,
|
|
|
|
| 83 |
"use_cache": true,
|
| 84 |
+
"vocab_size": 248320,
|
| 85 |
+
"model_type": "qwen3_5_text"
|
| 86 |
},
|
| 87 |
+
"tie_word_embeddings": false,
|
| 88 |
+
"transformers_version": "5.3.0.dev0",
|
| 89 |
+
"unsloth_fixed": true,
|
| 90 |
+
"video_token_id": 248057,
|
| 91 |
+
"vision_config": {
|
| 92 |
+
"deepstack_visual_indexes": [],
|
| 93 |
+
"depth": 27,
|
| 94 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 95 |
+
"hidden_size": 1152,
|
| 96 |
+
"in_channels": 3,
|
| 97 |
+
"initializer_range": 0.02,
|
| 98 |
+
"intermediate_size": 4304,
|
| 99 |
+
"model_type": "qwen3_5",
|
| 100 |
+
"num_heads": 16,
|
| 101 |
+
"num_position_embeddings": 2304,
|
| 102 |
+
"out_hidden_size": 4096,
|
| 103 |
+
"patch_size": 16,
|
| 104 |
+
"spatial_merge_size": 2,
|
| 105 |
+
"temporal_patch_size": 2
|
| 106 |
+
},
|
| 107 |
+
"vision_end_token_id": 248054,
|
| 108 |
+
"vision_start_token_id": 248053,
|
| 109 |
"quantization_config": {
|
| 110 |
"bits": 8,
|
| 111 |
"checkpoint_format": "gptq",
|
|
|
|
| 154 |
"pack_dtype": "int32",
|
| 155 |
"quant_method": "gptq",
|
| 156 |
"sym": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
}
|
| 158 |
}
|