Instructions to use VnimanieAI/Qwen3.8-Flash-Next-W4A16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VnimanieAI/Qwen3.8-Flash-Next-W4A16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="VnimanieAI/Qwen3.8-Flash-Next-W4A16") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("VnimanieAI/Qwen3.8-Flash-Next-W4A16") model = AutoModelForMultimodalLM.from_pretrained("VnimanieAI/Qwen3.8-Flash-Next-W4A16", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use VnimanieAI/Qwen3.8-Flash-Next-W4A16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "VnimanieAI/Qwen3.8-Flash-Next-W4A16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VnimanieAI/Qwen3.8-Flash-Next-W4A16", "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/VnimanieAI/Qwen3.8-Flash-Next-W4A16
- SGLang
How to use VnimanieAI/Qwen3.8-Flash-Next-W4A16 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 "VnimanieAI/Qwen3.8-Flash-Next-W4A16" \ --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": "VnimanieAI/Qwen3.8-Flash-Next-W4A16", "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 "VnimanieAI/Qwen3.8-Flash-Next-W4A16" \ --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": "VnimanieAI/Qwen3.8-Flash-Next-W4A16", "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 VnimanieAI/Qwen3.8-Flash-Next-W4A16 with Docker Model Runner:
docker model run hf.co/VnimanieAI/Qwen3.8-Flash-Next-W4A16
Lobotomized
I don't want to look a gift horse in the mouth, but this quant as it stands is not very good.
Long story short, I ran a private agentic benchmark I have on it; let me just paste the results:
- DeepSeek-V4-Flash (effort low) - reasoning tokens: 33~65k chars, pass rate: 100%, ELO: 867±39
- VnimanieAI/Qwen3.8-Flash-Next-W4A16 (effort xhigh) - reasoning tokens: 335~681k chars, pass rate: 50%, ELO: 564±287
According to ArtificialAnalysis this model's supposed to be stronger than DeepSeek-V4-Flash, and yet not only it needs 10x more tokens, but it has half the pass rate, and much lower ELO score in the benchmark.
For comparison, here are the results for the cyankiwi/Qwen3.8-Flash-Next-AWQ-INT4 quant: (Note: the benchmark scale was reconfigured, so ELO is not directly comparable; but, just look at how it performs now compared to DeepSeek)
- DeepSeek-V4-Flash (effort low) - reasoning tokens: 15.4k, ELO: 949.2±26.7
- DeepSeek-V4-Flash (effort high) - reasoning tokens: 29.8k, ELO: 975.3±44.0
- cyankiwi/Qwen3.8-Flash-Next-AWQ-INT4 (effort low) - reasoning tokens: 43.4k, ELO: 1034.9±38.0
- cyankiwi/Qwen3.8-Flash-Next-AWQ-INT4 (effort medium) - reasoning tokens: 85.9k, ELO: 1101.4±53.2
- cyankiwi/Qwen3.8-Flash-Next-AWQ-INT4 (effort xhigh) - reasoning tokens: 64.7k, ELO: 1087.0±16.8
So, yes, this particular quant seems to be lobotomized, overthinks a lot and is much worse than DeepSeek-V4-Flash. A non-lobotomized quant thinks much less, and is better than DeepSeek-V4-Flash.
I've seen passrate like this on GPQA Diamond, yet this exact model has beaten Deepseek on it with 0.877 ± 0.010 result. Such low passrate you've seen may be caused by extremely small token limit. Yet I admit, that model thinks A LOT. Will test cyankiwi model on the same HW and presets and return back with results.
For both quants the token limits were exactly the same (i.e. unlimited), and for this particular benchmark the model is graded as it goes -- i.e. there's no single "submits result" at the end -- it continuously submits as it's working, since it's not a simple pass/fail benchmark, but an optimization problem (hence the ELO score).
I also ran it on another task, but that one is more subjective -- having it translate text (in context) from one language to another, and it was also producing worse results than the cyankiwi one.
So it was definitely broken. Of course, it's possible this isn't your fault and could be due to sglang being buggy or something like that (which wouldn't surprise me).
Note that your quant is 128-symmetric and uncallibrated, and cyankiwi is 32-assymetric and callibrated, so on that alone it probably bumps up the quality.
Thanks for the data point. Rather than argue impressions, here is the full methodology and the results we've published to the card, so they can be checked and reproduced.
Serving (all benchmarks below): this exact checkpoint on 8×RTX 3090, vLLM dev build (qwen4_exp), TP8 + --enable-expert-parallel, MTP speculative decoding (depth 4), --max-model-len 262144, KV pool pinned at 8.2 GB/GPU, --reasoning-parser qwen3. Sampling per the base card's thinking-mode recommendation: temperature=1.0, top_p=0.95, top_k=20. Long generations run over streaming (non-streaming connections in our chain die at ~7.5 min — worth checking in any harness that hits multi-minute reasoning).
GPQA Diamond — 198 questions, zero-shot CoT, deterministic choice shuffle (seed 1234), two-pass budget protocol applied identically to both models: pass 1 at max_tokens=32768; every truncated answer re-asked once at max_tokens=131072; the denominator stays 198 and unrescued truncations count as errors. DeepSeek V4 Flash 0731 (via OpenRouter) as reference under the same harness, prompts and parser:
- this quant: strict @32k 0.601 ± 0.035 (75/198 truncated), budget-corrected @131k 0.874 ± 0.024 (74 of the 75 answered at 131k, 54 of them correctly; 1 still truncated)
- DeepSeek V4 Flash: strict 0.854 ± 0.025 (16 truncated), corrected 0.894 ± 0.022
MMLU_RU — 1000-question paired subsample (seed 1234), same two-pass protocol (8k → 32k): this quant 0.815 strict / 0.877 ± 0.010 corrected; DeepSeek 0.837 / 0.861.
τ²-Bench Airline — 50 tasks, shared user simulator: this quant 0.740, DeepSeek V4 Flash 0.700, qwen3.8-flash via OpenRouter 0.680. Single trial, differences within noise.
So the reasoning-token burn you observed is real and we measure it too: at the default xhigh effort, 37.9% of GPQA answers overflow a 32k completion budget (DeepSeek: 8.1%). That cost is now stated in the card's Limitations along with the mitigations (reasoning_effort, enable_thinking: false, max_tokens ≥ 32768), and any harness that caps completions below ~32k will see empty answers and failed tasks. What we do not see at matched budgets is a capability gap: corrected GPQA/MMLU land next to DeepSeek on the identical harness.
Your AWQ comparison is worth taking seriously, and we intend to: cyankiwi's recipe keeps attention unquantized and calibrates (AWQ g32, asymmetric), ours quantizes attention with RTN g128 — a host-RAM-constrained choice, stated as such in the card. We are pulling that checkpoint to run the same GPQA/MMLU harness on the same 8×3090 rig, including reasoning-length stats per question, and we'll post the numbers here either way. If you can share your harness's completion budget, sampling and serving setup, we'll include a repro of your setting too.
One important detail on the serving stack: this checkpoint has never been validated on SGLang — it is built for vLLM specifically. The expert tensors are unpacked to experts.{i}.{gate,up,down}_proj to match vLLM's packed_modules_mapping expectations (item 3 in the card's Decision & test registry), and the whole deployment recipe — PLE offload via VLLM_PLE_CPU_OFFLOAD, mandatory --enable-expert-parallel, the compilation-config workaround — is vLLM-specific. If SGLang reads the pack-quantized layout differently or silently falls back to another kernel path, the failure mode would be exactly what you describe: no crash, the model runs, but output quality and reasoning discipline degrade.
We also have direct history with SGLang on this model family: our previous production model (Qwen3.8-27B INT8) ran on SGLang at TP=4 just fine, but at TP=8 SGLang (both stable and nightly at the time) crashed on long prefills — that is why this deployment went to vLLM in the first place. The card's Deployment section documents the exact vLLM setup we validate against.
If you get a chance, re-running your benchmark with this quant served by vLLM per the card's recipe would be a very interesting data point. Meanwhile our cyankiwi-on-vLLM run (same rig, same harness, per-question reasoning-length stats) should cleanly separate serving-stack artifact from quant recipe — numbers to follow either way.
One important detail on the serving stack: this checkpoint has never been validated on SGLang
FWIW neither was the cyankiwi model. Your model actually worked out-of-box on sglang for me with their in-progress PRs, and just running it as-is (e.g. chatting with it normally) was perfectly fine!
The cyankiwi model on the other hand did not even launch on sglang, and I had to fix three separate bugs to get it to even start and not produce total garbage output.
Again, it's possible that the codepath on sglang is broken and that's what regressed your model, but if that's the case then it must be a very subtle corruption, because normally it responds seemingly fine when you chat with it, it's just it performs pretty bad in actual tasks.
Results, as promised — and you were right about the overthinking. Same rig (8×RTX 3090), same vLLM build and launch recipe (only --kv-cache-memory lowered to 7 GB for the AWQ — its weights are ~3.4 GiB/GPU larger), same 40 GPQA Diamond questions (the 20 that truncated at 32k in our full run + 20 that didn't), same sampling (t=1.0, top_p=0.95, top_k=20), max_tokens=32768, length measured by usage.completion_tokens:
- Non-truncating questions (n=20): median completion 3,391 tokens (cyankiwi AWQ) vs 9,812 (ours) — ~3× less reasoning; shorter on 18/20 questions; 0 truncations vs 2; 16 vs 15 correct.
- Hard questions (n=20, the ones our quant truncated at 32k): the AWQ truncated 10/20 vs our 16/20, and answered 10 correctly vs our 4.
- Overall on the 40-question sample: 26/40 vs 19/40.
So the overthinking is confirmed, and it is not an SGLang artifact: on the identical vLLM stack the cyankiwi AWQ reasons far more economically and scores better. The difference is the quant recipe — calibrated AWQ g32 asymmetric with attention left in BF16, versus our data-free RTN g128 symmetric with attention quantized.
The card now says this explicitly, right at the top: if you have more than 4×24 GB, use cyankiwi's quant — credit where due. Ours remains the option for 4×3090 rigs (the AWQ's weights don't fit at TP4 on 24 GB cards), with the verbosity caveat documented. A v2 of this quant (attention unquantized, calibration if we can fit it into host RAM) is on the roadmap.
Thanks for pushing on this — the thread made the model card better.
Hey Vnimanie,
Thanks for sharing your work. I've also been testing your quant on 4x3090, and its main selling point is 760k KV size at FP8. But even when KV is at FP16, the model really struggles a lot in real world applications. It constantly ignores system prompt, and often fails with tool calls.
I've switched to Intel/Qwen3.8-Flash-Next-W4A16-AutoRound which does not have any of these issues, but reduces KV size to 560k at FP8.
One easily reproducible test where I can see the quality degradation is tool-eval-bench. . But your quant performs especially bad when the context size grows over 128k, which this benchmark does not test.
Could you please look into it?