Image-Text-to-Text
Safetensors
English
Chinese
qwen3_5
qwen
qwen3.5
Dense
vLLM
SGLang
conversational
4-bit precision
gptq
Instructions to use Xingyu-Zheng/Qwen3.6-27B-INT4-FOEM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- vLLM
How to use Xingyu-Zheng/Qwen3.6-27B-INT4-FOEM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Xingyu-Zheng/Qwen3.6-27B-INT4-FOEM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Xingyu-Zheng/Qwen3.6-27B-INT4-FOEM", "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/Xingyu-Zheng/Qwen3.6-27B-INT4-FOEM
- SGLang
How to use Xingyu-Zheng/Qwen3.6-27B-INT4-FOEM 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 "Xingyu-Zheng/Qwen3.6-27B-INT4-FOEM" \ --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": "Xingyu-Zheng/Qwen3.6-27B-INT4-FOEM", "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 "Xingyu-Zheng/Qwen3.6-27B-INT4-FOEM" \ --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": "Xingyu-Zheng/Qwen3.6-27B-INT4-FOEM", "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 Xingyu-Zheng/Qwen3.6-27B-INT4-FOEM with Docker Model Runner:
docker model run hf.co/Xingyu-Zheng/Qwen3.6-27B-INT4-FOEM
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,93 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- zh
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
base_model:
|
| 7 |
+
- Qwen/Qwen3.6-27B
|
| 8 |
+
tags:
|
| 9 |
+
- qwen
|
| 10 |
+
- qwen3.5
|
| 11 |
+
- Dense
|
| 12 |
+
- vLLM
|
| 13 |
+
- SGLang
|
| 14 |
+
pipeline_tag: image-text-to-text
|
| 15 |
+
datasets:
|
| 16 |
+
- nohurry/Opus-4.6-Reasoning-3000x-filtered
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# ๐Qwen3.6-27B-INT4-FOEM
|
| 20 |
+
|
| 21 |
+
<div align="left">
|
| 22 |
+
<a href=https://ojs.aaai.org/index.php/AAAI/article/view/40123 target="_blank"><img src=https://img.shields.io/badge/Official%20Site-333399.svg?logo=homepage height=22px></a>
|
| 23 |
+
<a href=https://huggingface.co/Xingyu-Zheng/Qwen3.6-27B-INT4-FOEM target="_blank"><img src=https://img.shields.io/badge/%F0%9F%A4%97%20Models-d96902.svg height=22px></a>
|
| 24 |
+
<a href=https://github.com/Xingyu-Zheng/FOEM target="_blank"><img src= https://img.shields.io/badge/Page-bb8a2e.svg?logo=github height=22px></a>
|
| 25 |
+
<a href=https://arxiv.org/abs/2507.11017 target="_blank"><img src=https://img.shields.io/badge/Report-b5212f.svg?logo=arxiv height=22px></a>
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
This is an unofficial quantized version of Qwen3.6-27B.
|
| 29 |
+
|
| 30 |
+
### ๐ง Quantization Framework
|
| 31 |
+
|
| 32 |
+
[GPTQModel](https://github.com/ModelCloud/GPTQModel)
|
| 33 |
+
|
| 34 |
+
## ๐บ๏ธ Quantization Method
|
| 35 |
+
|
| 36 |
+
[FOEM (AAAI 2026)](https://ojs.aaai.org/index.php/AAAI/article/view/40123)
|
| 37 |
+
|
| 38 |
+
FOEM is an improved quantization method over GPTQ. The resulting model preserves the same inference structure as GPTQ, ensuring compatibility with existing deployment pipelines while achieving better accuracy.
|
| 39 |
+
|
| 40 |
+
### ๐ Calibration Dataset
|
| 41 |
+
|
| 42 |
+
We randomly sampled 512 examples from [nohurry/Opus-4.6-Reasoning-3000x-filtered](https://huggingface.co/datasets/nohurry/Opus-4.6-Reasoning-3000x-filtered).
|
| 43 |
+
|
| 44 |
+
## ๐ Usage Example
|
| 45 |
+
|
| 46 |
+
This model can be deployed using standard frameworks such as **vLLM**, just like other GPTQModel-quantized models.
|
| 47 |
+
|
| 48 |
+
Example evaluation command:
|
| 49 |
+
|
| 50 |
+
```bash
|
| 51 |
+
lm-eval --model vllm --model_args pretrained=models/gptqmodel/Qwen3.6-27B-INT4-FOEM,tensor_parallel_size=1,gpu_memory_utilization=0.45 --tasks wikitext --batch_size 1
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
## ๐ Acknowledgements
|
| 55 |
+
Special thanks to [Qwen Team](https://huggingface.co/Qwen) for providing the original model: [Qwen3.6-27B](https://huggingface.co/Qwen/Qwen3.6-27B).
|
| 56 |
+
|
| 57 |
+
## ๐ Citation
|
| 58 |
+
|
| 59 |
+
If you use this model in your research or projects, please cite:
|
| 60 |
+
|
| 61 |
+
```bibtex
|
| 62 |
+
@misc{qwen3.6-27b,
|
| 63 |
+
title = {{Qwen3.6-27B}: Flagship-Level Coding in a {27B} Dense Model},
|
| 64 |
+
author = {{Qwen Team}},
|
| 65 |
+
month = {April},
|
| 66 |
+
year = {2026},
|
| 67 |
+
url = {https://qwen.ai/blog?id=qwen3.6-27b}
|
| 68 |
+
}
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
```bibtex
|
| 72 |
+
@misc{qubitium2024gptqmodel,
|
| 73 |
+
author = {ModelCloud.ai and qubitium@modelcloud.ai},
|
| 74 |
+
title = {GPT-QModel},
|
| 75 |
+
publisher = {GitHub},
|
| 76 |
+
journal = {GitHub repository},
|
| 77 |
+
howpublished = {\url{https://github.com/modelcloud/gptqmodel}},
|
| 78 |
+
note = {Contact: qubitium@modelcloud.ai},
|
| 79 |
+
year = {2024},
|
| 80 |
+
}
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
```bibtex
|
| 84 |
+
@inproceedings{zheng2026first,
|
| 85 |
+
title={First-order error matters: Accurate compensation for quantized large language models},
|
| 86 |
+
author={Zheng, Xingyu and Qin, Haotong and Li, Yuye and Chu, Haoran and Wang, Jiakai and Guo, Jinyang and Magno, Michele and Liu, Xianglong},
|
| 87 |
+
booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
|
| 88 |
+
volume={40},
|
| 89 |
+
number={34},
|
| 90 |
+
pages={28883--28891},
|
| 91 |
+
year={2026}
|
| 92 |
+
}
|
| 93 |
+
```
|