Instructions to use nicosuter/Qwen3.8-27B-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nicosuter/Qwen3.8-27B-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="nicosuter/Qwen3.8-27B-AWQ") 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("nicosuter/Qwen3.8-27B-AWQ") model = AutoModelForMultimodalLM.from_pretrained("nicosuter/Qwen3.8-27B-AWQ", 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 nicosuter/Qwen3.8-27B-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nicosuter/Qwen3.8-27B-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nicosuter/Qwen3.8-27B-AWQ", "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/nicosuter/Qwen3.8-27B-AWQ
- SGLang
How to use nicosuter/Qwen3.8-27B-AWQ 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 "nicosuter/Qwen3.8-27B-AWQ" \ --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": "nicosuter/Qwen3.8-27B-AWQ", "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 "nicosuter/Qwen3.8-27B-AWQ" \ --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": "nicosuter/Qwen3.8-27B-AWQ", "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 nicosuter/Qwen3.8-27B-AWQ with Docker Model Runner:
docker model run hf.co/nicosuter/Qwen3.8-27B-AWQ
Qwen3.8-27B-AWQ
A mixed-precision quantization of the language path in
Qwen/Qwen3.8-27B: W4A16 asymmetric
AWQ on the MLP and attention projections, int8 group quantization on the Gated
DeltaNet input projections. The vision tower is left in source precision, so
this is still a multimodal checkpoint. Images run through an unquantized
encoder into a quantized decoder.
Recipe, calibration builder, evaluation protocol and raw results: github.com/nicosuter/Qwen3.8-27B-AWQ
Provenance
| Upstream model | Qwen/Qwen3.8-27B |
| Pinned revision | 1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0 |
| Method | AWQ W4A16 asymmetric, group size 128, on the MLP and attention projections; int8 symmetric, group size 128, weights only, on in_proj_qkv and in_proj_z |
| Format | compressed-tensors, mixed-precision |
| Quantized with | llm-compressor @ 623c8ce, compressed-tensors 0.18.1a20260806, Transformers @ a597f97, PyTorch 2.10.0 |
| Calibration | 256 pinned public text, long-context, and vision samples, up to 32,768 tokens |
| Hardware | 2x NVIDIA H200, one BF16 replica per GPU, disjoint 128-row calibration partitions with AWQ statistics reduced across ranks |
| Recipe source | nicosuter/Qwen3.8-27B-AWQ, the quant/, eval/ and common/ directories |
run-metadata.json, pip-freeze.txt, the exact calibration manifest.jsonl
and its SHA256 ship alongside the weights here. If you want to reproduce or
audit any of this, start there and in the repository, not from this card.
What is and is not quantized
These modules stay in source precision:
- the vision tower (
visual/vision) - the MTP head
- Gated DeltaNet
in_proj_aandin_proj_b lm_head
The Gated DeltaNet in_proj_qkv and in_proj_z projections are int8 rather
than 4-bit. Everything else that is a Linear gets W4A16.
Calibration data
| Samples | Source | Config / split |
|---|---|---|
| 52 | nvidia/Open-SWE-Traces |
openhands / qwen35_122b |
| 52 | nvidia/Open-SWE-Traces |
sweagent / qwen35_122b |
| 32 | lambda/hermes-agent-reasoning-traces |
kimi |
| 4 | lambda/hermes-agent-reasoning-traces |
glm-5.1 |
| 28 | nvidia/Nemotron-Post-Training-Dataset-v1 |
stem |
| 28 | nvidia/Nemotron-Post-Training-Dataset-v1 |
math |
| 4 | nvidia/Nemotron-Post-Training-Dataset-v1 |
tool_calling |
| 12 | HuggingFaceM4/the_cauldron |
vqav2 |
| 9 each | HuggingFaceM4/the_cauldron |
textvqa, chartqa, docvqa, ai2d |
| 8 | HuggingFaceFW/fineweb-edu |
coherent windows of at least 1,536 tokens |
Revisions: Open-SWE ad4805a, Lambda b92885e, Nemotron 74e23eb, Cauldron
847a98a, FineWeb-Edu 87f0914.
Evaluation
Across five counted suites this checkpoint is within two tenths of a point of
Qwen/Qwen3.8-27B-FP8 overall. The suites cover executable coding, tool calls
and two kinds of multimodal input, plus a long-context check that is reported
but no longer counted. Nothing here tests agentic use. This model card will be
expanded with further evals in the near future.
Both checkpoints were scored on the same items in the same order. Recovery is
the AWQ score divided by the FP8 one, averaged across the counted suites with
the geometric mean. Intervals are a bootstrap over 20,000 resamples, clustered
by item. Every suite ran over its whole item set on H200 NVL cards. GPQA
Diamond, LiveCodeBench and MMMU-Pro ran twice per checkpoint and their rows
pool both passes; the other three ran once. The protocol is in
EVAL.md.
| suite | items | FP8 | AWQ | delta | recovery (95% CI) |
|---|---|---|---|---|---|
| BFCL | 3486 | 81.27 | 81.33 | +0.06 | 100.07% [98.99, 101.16] |
| GPQA Diamond | 198 | 89.90 | 88.64 | -1.26 | 98.60% [96.00, 101.16] |
| LiveCodeBench v6 | 175 | 87.71 | 89.14 | +1.43 | 101.63% [98.34, 105.15] |
| MMMU-Pro | 1730 | 76.91 | 75.84 | -1.07 | 98.61% [97.21, 100.00] |
| Multimodal | 600 | 86.08 | 86.34 | +0.26 | 100.31% [98.76, 101.88] |
| macro | 5 suites | 84.37 | 84.26 | -0.12 | 99.84% [98.86, 100.82] |
| RULER (not counted) | 200 | 92.17 | 92.90 | +0.72 | 100.79% [98.00, 103.68] |
BFCL is the static split of
gorilla-llm/Berkeley-Function-Calling-Leaderboard: simple through
parallel-multiple, irrelevance, and their six live counterparts, which are
real user-submitted prompts shipped as static data. The executable, REST,
multi-turn and chatable categories need the Gorilla simulators, so they are
excluded, and the Java, JavaScript and SQL splits have answers this Python
matcher cannot read. Tools are passed to the model natively. Neither checkpoint
produced a malformed tool call.
LiveCodeBench v6 is pass@1: an item counts only if it passes every public and private test. Multimodal is DocVQA, ChartQA and TextVQA, 200 items each, scored with their published metrics. MMMU-Pro is the ten-option config across thirty subjects.
RULER is synthesized here at 4k, 32k and 128k rather than the upstream benchmark, so its scores compare these two checkpoints and nothing else. It no longer counts toward the macro. Its 150 retrieval items score between 99.07 and 100.00 on both checkpoints, which leaves the suite score to the 50 counting items, and those turn on whether the model runs out of output budget before it finishes transcribing the list. That measures the window rather than long-context quality. RULER still runs as a smoke check.
No suite's interval excludes zero. MMMU-Pro comes closest: its interval runs from -2.17 to exactly zero.
The same protocol, against the same baseline arm, also scored four other
published AWQ quantizations of this model. Their results and the quantization
scheme each one uses are in
results/2026-08-23-published-quants;
the intervals there are wide enough that most of those checkpoints do not
separate from each other, and the write-up says so.
What this does not cover
- No agentic suite.
- Repeat passes move these numbers by more than the numbers themselves. MMMU-Pro recovered 97.45% on its first pass and 99.77% on its second, same two checkpoints, nothing changed in between. The row above pools both. The three suites that ran once carry the same noise with no way to see it.
- 91% of items score the same on both checkpoints, mostly at ceiling, so the effective sample is far smaller than the item counts suggest. On BFCL, 124 items improve and 122 regress, and the +0.06 is what is left once they cancel.
- Nothing here resolves to a tenth of a point, and the small suites resolve worst: GPQA Diamond's interval is +/-2.3 points around a measured -1.26, and LiveCodeBench's +/-2.9 around +1.43.
- RULER truncated 15 baseline and 12 candidate items at the 262,144-token window even with the output cap removed. Its 128k counting task is left out: one pass over the word list needs more output than the window leaves, and it scored zero on both checkpoints.
What this cost
39 H200-hours in total. The first pass over both checkpoints and every suite took 25 of them, in one job on 4x H200 over 6h13. The second pass over GPQA Diamond, LiveCodeBench and MMMU-Pro took the other 14, on 8x H200 over 1h48.
Note to other quantizers: a paired quality check against another model is a few GPU hours on four cards. If you publish a quantization, you can afford to measure it rather than inherit the upstream model's numbers.
Usage
vLLM
vllm serve nicosuter/Qwen3.8-27B-AWQ \
--max-model-len 262144 \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_coder
The weights are 21.5 GB before any KV cache. To save VRAM, drop what you are not
using: --limit-mm-per-prompt '{"image": 0}' for the vision tower, and the
0.85 GB MTP shard if you are not running speculation.
Use the upstream generation policy: thinking enabled, temperature=1.0,
top_p=0.95, top_k=20, min_p=0, no presence penalty, repetition penalty
1.0. Qwen warns that greedy decoding degrades thinking-mode output and can
trigger repetition loops, and that warning carries over here.
MTP / speculative decoding
The 15 MTP tensors are copied unchanged from the pinned source checkpoint into a dedicated BF16 shard after AWQ serialization. Native speculation can be enabled with:
--speculative-config '{"method":"mtp","num_speculative_tokens":3}'
Limitations
- Long context is only tested synthetically, and the synthetic test turned out weak enough that we stopped counting it. RULER at 4k, 32k and 128k found no difference. But the recurrent path is quantized at 8 bits, and error in a recurrent state builds up along the sequence instead of staying bounded per token. Finding a planted string in generated text does not probe that.
- An unquantized vision tower does not make multimodal output safe: image tokens still pass through a quantized decoder. On document, chart and scene text the multimodal suite found no difference. MMMU-Pro, which runs the reasoning after perception through the quantized path, moved most between repeat passes, so its number is the least settled one here.
License
Apache 2.0, following the upstream model.
- Downloads last month
- 5,046
Model tree for nicosuter/Qwen3.8-27B-AWQ
Base model
Qwen/Qwen3.8-27B