SmoothQuant microsoft/Phi-3.5-mini-instruct for vLLM
A native vLLM checkpoint of chris320211/smoothquant-phi35-mini-vastrtx3090,
the SmoothQuant quantization of microsoft/Phi-3.5-mini-instruct.
The int8 weights are the same bytes, renamed into the compressed-tensors
format (int-quantized: per-channel int8 weights, dynamic per-token int8
activations). No custom code, no trust_remote_code. Made with
QuantPort.
Serve
pip install vllm
vllm serve chris320211/smoothquant-phi35-mini-vastrtx3090-vllm
from vllm import LLM, SamplingParams
llm = LLM("chris320211/smoothquant-phi35-mini-vastrtx3090-vllm")
print(llm.generate("Hello", SamplingParams(max_tokens=32))[0].outputs[0].text)
vLLM results
Measured with vLLM 0.30.0 on NVIDIA GeForce RTX 3090, against vLLM fp16 of microsoft/Phi-3.5-mini-instruct.
WikiText-2 test, 2048-token windows (65504 tokens),
the same windows as the HF benchmark in chris320211/smoothquant-phi35-mini-vastrtx3090.
| vLLM int8 | vLLM fp16 | |
|---|---|---|
| Perplexity | 6.8184 | 6.6260 |
| Prefill tok/s | 17645.9 | 8592.2 |
| Decode tok/s, batch 1 | 145.4 | 90.0 |
| Decode tok/s, batch 16 | 1593.2 | 1071.5 |
- PPL ratio (int8 / fp16): 1.0290
- Drift against the HF benchmark ratio (1.0297): 0.9993. The check requires ≤ 1.02; it tests the export, not the quantization.
- Prefill speedup: 2.05×. Decode speedup: 1.62× at batch 1, 1.49× at batch 16.
Speed numbers are from NVIDIA GeForce RTX 3090. The HF benchmark in chris320211/smoothquant-phi35-mini-vastrtx3090 used a
different GPU and runtime, so compare speed within this table only.
Files
vllm.json: the full serve-check report.vllm_export.json: how the checkpoint was converted (profilew8a8_int8, 1 module kept in fp16).
License
Inherits the license of microsoft/Phi-3.5-mini-instruct
(mit), plus the method repository license.
- Downloads last month
- 229
Model tree for chris320211/smoothquant-phi35-mini-vastrtx3090-vllm
Base model
microsoft/Phi-3.5-mini-instruct