Downloads · 30 days
265
17% of all-time downloads
devan-carlin/Qwen3.8-Flash-Next-W4A16
Qwen3.8-Flash-Next-W4A16 is a text generation model from devan-carlin. Use it when you need the model to write or continue text. It is set up for vllm. The card lists the license as other.
W4A16 (int4 group-128, compressed-tensors) quantization of Qwen3.8-Flash-Next (125B MoE / 6B active). Derived from official BF16 weights. Single-quant int4; no FP8 double-quant.
Downloads · 30 days
265
17% of all-time downloads
All-time downloads
1.6K
Public
Parameters
129B
180 GB on disk
Likes
2
Public
Click a slice to open those files.
.pt102 GB · 57%
How the weights are stored.
I32121B · 94%
From the Hugging Face model README
W4A16 (int4 group-128, compressed-tensors) quantization of Qwen3.8-Flash-Next (125B MoE / 6B active). Derived from official BF16 weights. Single-quant int4; no FP8 double-quant.
This repository provides a community quantization and XPU serving recipe. The base model, architecture, and license are provided by Qwen (Qwen Community License 1.0). Refer to the base model card for the full architecture description.
Served as the multimodal wrapper Qwen4ExpForConditionalGeneration (text + image input via the Qwen3-VL processor).
compressed-tensors.quantization_config ignore list maintains these in BF16: lm_head, embed_tokens, mtp.*, ple.*, visual.*, *.gate, hyper_connection*, indexer*, linear_attn.*, shared_expert*.Configuration used for benchmarking:
Performance measured on this hardware (single stream, 512 tokens, greedy):
Memory is split across two pools for different purposes:
| Pool | Sized for | Contents |
|---|---|---|
| VRAM (4x32GB = 128GB) | weights + KV cache | 77GB W4A16 weights (sharded 4 ways via TP+EP, ~19GB/GPU), fp8 KV cache, activations, and XPU graph workspace |
| Host RAM (>=128GB) | PLE table | 96GB n-gram table (memory-mapped, shared page cache across all 4 ranks) |
--gpu-memory-utilization 0.85 provides VRAM headroom for the 256K context KV cache.Stock vLLM is not compatible. This model requires a patched vLLM with the qwen4_exp model port and XPU W4A16 / GDN kernels:
vllm-project/vllm @ c39076fef2.13.0+xpu0.1.12 (pinned; 0.1.13.2 is broken)The port is a 16-file patch, published and verified:
devan-carlin/vllm @ xpu-qwen4exp — pip install "vllm @ git+https://github.com/devan-carlin/vllm.git@xpu-qwen4exp" (or run the one-shot installer below)setup-vllm-xpu.sh — rustup + venv + torch + kernel pin + build, in one commandqwen4exp-xpu-port.patch — git-apply diff vs the clean baseqwen4exp-vllm-operations.mdThe patch was verified end-to-end: a fresh venv built from the clean base + patch reproduces the reference build (53.4 tok/s on 4x Arc Pro B70).
The model uses an N-gram Embedding (PLE) layer backed by a ~96GB hash table. The table is required for correct output. Disabling it (QWEN4EXP_DISABLE_PLE=1) will result in incorrect output.
This repository includes the table (ple_table_qwen4exp.pt) for out-of-the-box use. It is memory-mapped from host RAM and shared across all tensor-parallel ranks via the page cache; it is never loaded onto the GPU.
PLE_TABLE_PATH to the ple_table_qwen4exp.pt file in this repo.phase_b_ple_table_prep.py script on a machine with sufficient RAM, then point PLE_TABLE_PATH to the result.python -m vllm.entrypoints.openai.api_server \
--model <this-repo> \
--served-model-name qwen-256k \
--host 0.0.0.0 --port 8000 \
--tensor-parallel-size 4 \
--enable-expert-parallel \
--dtype bfloat16 \
--max-model-len 262144 \
--max-num-seqs 4 \
--gpu-memory-utilization 0.85 \
--kv-cache-dtype fp8 \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_xml \
--generation-config vllm \
--override-generation-config '{"temperature": 0.7}'
Environment: VLLM_XPU_ENABLE_XPU_GRAPH=1, UR_L0_SYNC_MODE=BLOCKING, VLLM_WORKER_MULTIPROC_METHOD=spawn, PLE_TABLE_PATH=/path/to/ple_table.pt.
image_url content parts (base64 or URL); the model describes them. Text-only prompts work unchanged.generation_config.json in this repo ships 1.0), but on this checkpoint we observe strange behavior well above 0.7: repetition, incoherent output, and degenerate loops that set in quickly. Greedy (temp 0) is also bad — it tends to lock into repetitive loops. 0.7 is the sweet spot (with high reasoning effort); the launch command above pins it via --override-generation-config. If a client sends its own temperature, that overrides the server default — keep it at or below ~0.7.mtp.* weights are present but skipped at load), and is unreliable on XPU due to GDN causal_conv1d kernel limitations. Keep it disabled.Qwen Community License 1.0 (see LICENSE). Derivative distribution is permitted. Display the model name if MAU >100M or monthly revenue >$20M. MaaS / AI-assistant commercial use requires a separate license from Qwen.