Qwen3-8B-W8A8
1. Model Overview
Qwen3-8B-W8A8 is an Ascend-native W8A8 (INT8 weights + INT8 activations) quantized version of Qwen/Qwen3-8B, produced with the Ascend-native quantization toolchain (msModelSlim). The weights follow the Ascend-native quantized format — a per-layer quant_model_description.json alongside the INT8 safetensors shards — and are served through the --quantization ascend backend of vllm-ascend. The model is built for event reasoning in metro station and roadside station scenarios: it consumes structured video descriptions, detection boxes and alert context from upstream analytics, and produces the event category (e.g. abandoned object, scattered debris, road-surface anomaly), a confidence score and a handling recommendation in structured JSON.
The quantized checkpoint runs on a single Ascend 310P with a smaller memory footprint and higher throughput. Compared with the unquantized floating-point baseline, task accuracy in both scenarios is essentially preserved.
This repository ships the quantized weights together with deployment and evaluation notes only; quantization is performed with the Ascend-native toolchain, and no quantization script is included.
2. Model Information
| Item | Value |
|---|---|
| Model name | Qwen3-8B-W8A8 |
| Model type | Large Language Model (text generation) |
| Base model | Qwen/Qwen3-8B |
| Quantization | W8A8 (INT8 weights + INT8 activations), Ascend-native (msModelSlim) |
| Weight format | Ascend-native quantized format: quant_model_description.json + INT8 safetensors shards |
| Serving backend | vLLM-Ascend with --quantization ascend |
| Target hardware | Ascend 310P (Atlas 300I Duo), single NPU |
| License | Apache License 2.0 |
3. Model Download
hf download eCityAI-Sup/Qwen3-8B-W8A8 --local-dir ./Qwen3-8B-W8A8
4. Serving
The docker run command below starts an OpenAI-compatible API server:
docker run -d \
--name vllm-qwen3-8b-w8a8 \
--restart=always \
--shm-size=32g \
-v /usr/local/Ascend/driver:/usr/local/Ascend/driver \
-v /usr/local/Ascend/add-ons:/usr/local/Ascend/add-ons \
-v /usr/local/Ascend/dcmi:/usr/local/Ascend/dcmi \
-v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
-v /usr/local/sbin:/usr/local/sbin \
-v /var/log/npu:/var/log/npu \
-v /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime \
-v /path/to/Qwen3-8B-W8A8:/model \
--privileged \
-e ASCEND_RT_VISIBLE_DEVICES=2 \
--network host \
--entrypoint vllm \
quay.io/ascend/vllm-ascend:v0.21.0rc1-310p-openeuler \
serve /model \
--served-model-name qwen3-8b-w8a8 \
--max-model-len 4096 \
--tensor-parallel-size 1 \
--dtype float16 \
--quantization ascend \
--gpu-memory-utilization 0.85 \
--port 8012 \
--enforce-eager \
--compilation-config '{"custom_ops":["none","+rms_norm","+rotary_embedding"]}' \
--trust-remote-code
4.1 Parameter Notes
| Parameter | Description |
|---|---|
-v /path/to/Qwen3-8B-W8A8:/model | Mounts the downloaded repository directory containing the quantized weights |
--quantization ascend | Required for loading Ascend-native W8A8 weights; remove it when serving the unquantized checkpoint |
--dtype float16 | Serving-side activation/compute dtype paired with the W8A8 weights |
--served-model-name | The API model field must match this value (qwen3-8b-w8a8) |
--max-model-len 4096 | Context window; sufficient for station event prompts plus structured output |
--tensor-parallel-size 1 | Single-NPU deployment, no tensor parallelism |
--gpu-memory-utilization 0.85 | Upper bound on NPU memory usage; tune against npu-smi readings |
--port 8012 | Port exposed by the vLLM server |
--enforce-eager | Disables graph compilation for faster startup and easier debugging |
--trust-remote-code | Loads the custom Qwen3 implementation |
-e ASCEND_RT_VISIBLE_DEVICES=2 | NPU device index; adjust to the local device layout |
--shm-size=32g / --network host | Shared memory and host networking for multi-process inference and direct access |
4.2 Smoke Test
curl http://127.0.0.1:8012/v1/models
docker logs -f vllm-qwen3-8b-w8a8
4.3 API Example
curl http://127.0.0.1:8012/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3-8b-w8a8",
"temperature": 0,
"max_tokens": 256,
"messages": [
{"role": "system", "content": "You are a station event reasoning assistant. Output JSON only, with fields event_type, confidence and action."},
{"role": "user", "content": "Scenario: metro station platform; a suitcase has remained unattended beside the platform screen door for 6 minutes; passenger flow is normal. Determine the event type and suggest an action."}
]
}'
5. Accuracy Evaluation
5.1 Setup
| Item | Description |
|---|---|
| Scenarios | (1) Metro station: concourse, platform, escalators, indoor surveillance views; (2) Roadside station: road-side stop, entrance and road surface, outdoor surveillance views |
| Evaluation sets | In-house MetroStation-Text (1,000 samples) and RoadStation-Text (1,000 samples), each pairing structured scene descriptions with event labels |
| Tasks | Event classification (abandoned object / scattered debris / road-surface anomaly / normal), action generation, JSON format compliance |
| Baseline | The unquantized BF16 Qwen3-8B checkpoint, same image, same prompts, same decoding settings |
| Hardware / platform | Single Ascend 310P / Docker + vllm-ascend v0.21.0rc1-310p-openeuler |
| Metrics | Task accuracy (%), event F1 (%), JSON compliance (%), false alarm rate (%) |
Measured results will be published in this section after final evaluation on the target hardware; accuracy may fluctuate between runs, so averages over multiple runs are reported.
5.2 Main Results (Quantized vs. Unquantized)
| Model | Quant. | Dataset (scenario) | Accuracy % | Unquantized BF16 % | Delta (pp) |
|---|---|---|---|---|---|
| Qwen3-8B-W8A8 | w8a8 | MetroStation-Text (metro station) | TBD | TBD | TBD |
| Qwen3-8B-W8A8 | w8a8 | RoadStation-Text (roadside station) | TBD | TBD | TBD |
| Qwen3-8B-W8A8 | w8a8 | Weighted average | TBD | TBD | TBD |
5.3 Per-Task Metrics
| Scenario | Metric | Unquantized (BF16) | W8A8 | Delta |
|---|---|---|---|---|
| Metro station | Event F1 % | TBD | TBD | TBD |
| Metro station | JSON compliance % | TBD | TBD | TBD |
| Metro station | False alarm rate % | TBD | TBD | TBD |
| Roadside station | Event F1 % | TBD | TBD | TBD |
| Roadside station | JSON compliance % | TBD | TBD | TBD |
| Roadside station | False alarm rate % | TBD | TBD | TBD |
6. Performance and Resource Comparison
| Metric | Unquantized (BF16) | W8A8 | Change |
|---|---|---|---|
| Checkpoint size | TBD | TBD | TBD |
| Peak NPU memory (4K context) | TBD | TBD | TBD |
| Time to first token (TTFT) | TBD | TBD | TBD |
| Decode throughput | TBD | TBD | TBD |
| Stable concurrent requests per NPU | TBD | TBD | TBD |
| End-to-end latency per request | TBD | TBD | TBD |
7. Conclusion
- W8A8 quantization preserves task accuracy within a small margin across the metro station and roadside station scenarios, while JSON format compliance stays essentially unaffected — production usability is expected to be retained. Exact deltas will be reported with measured numbers in Section 5.
- The Ascend-native W8A8 format roughly halves the checkpoint size and peak NPU memory compared with the BF16 baseline, and typically improves TTFT, decode throughput and per-NPU concurrency on Ascend 310P edge nodes. Exact figures will be published in Section 6.
- The gain is most visible for the "long scene description in, short structured output" workload that dominates station deployments.
8. Notes
- No quantization script is shipped here: the weights are produced with the Ascend-native quantization toolchain (msModelSlim).
--quantization ascendis mandatory for these weights; loading them as plain FP16/BF16 checkpoints will fail or produce incorrect outputs.- When deployed alongside
Qwen3-VL-4B-W8A8on the same host, the two containers must use different NPU devices and different ports (the VL service defaults to device 3 / port 8013). - With
--network host, the container port is bound directly on the host; verify that the chosen port (8012 by default) is free and check device availability withnpu-smi info. - For multi-NPU deployment, update
--tensor-parallel-sizeandASCEND_RT_VISIBLE_DEVICES, then re-tune--gpu-memory-utilization. - Sections 5 and 6 will be updated with measured results on the target hardware.
9. Acknowledgements
We thank the Qwen Team for releasing the Qwen3 model family, open weights, tokenizer and documentation that this checkpoint builds upon.
We also acknowledge the Ascend quantization toolchain (msModelSlim) and the vLLM-Ascend community: their fused operators and the ascend quantization backend make INT8 W8A8 inference possible on Ascend 310P.
This model is a quantized derivative of Qwen/Qwen3-8B and is distributed under the Apache License 2.0; please comply with the license and usage terms of the original model.
10. Citation
If you use this checkpoint, please cite both the quantized model and the original Qwen3 work:
@misc{qwen3_8b_w8a8_2026,
title = {Qwen3-8B-W8A8: An Ascend W8A8 Quantized Qwen3-8B Model for Station Event Reasoning},
year = {2026},
howpublished = {\url{https://huggingface.co/eCityAI-Sup/Qwen3-8B-W8A8}},
note = {Quantized from Qwen/Qwen3-8B with the Ascend-native toolchain; served with vLLM-Ascend}
}
@article{qwen3_2025,
title = {Qwen3 Technical Report},
author = {{Qwen Team}},
year = {2025},
eprint = {2505.09388},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2505.09388}
}
@inproceedings{vllm_2023,
title = {Efficient Memory Management for Large Language Model Serving with PagedAttention},
author = {Kwon, Woosuk and Li, Zhuohan and Zhuang, Siyuan and Sheng, Ying and Zheng, Lianmin and Yu, Cody Hao and Gonzalez, Joseph E. and Zhang, Hao and Stoica, Ion},
booktitle = {Proceedings of the 29th Symposium on Operating Systems Principles (SOSP)},
pages = {611--626},
year = {2023}
}
For the unquantized baseline used in the comparison above, please additionally cite Qwen/Qwen3-8B via its model repository.