InternLM / InternLM/lmdeploy

smooth 量化后推理性能没有提升

Open
#2,304 1 comment 0 reactions 1 assignee Assigned to @grimoire View on GitHub
Dominant language
Python
Stars
8.1k
Forks
748
Avg merge
6d 2h
Merged PRs (30d)
54

Description

i use the quantized model by smooth quant , Why hasn't the inference speed increased?

`lmdeploy lite smooth_quant /model/llama2-7b-hf/ --work-dir /model/lmdeploy/llama2-7b-w8/`
使用 smooth 量化后,模型文件由 12.56GB 减小到 6.55GB,推理时显存占用只减少了 1GB,推理速度提升也不明显。
`python profile_throughput.py /dataset/ShareGPT_V3_unfiltered_cleaned_split.json /model/llama2-7b-hf/ --backend pytorch` result is 2850.681 token/s
but `python profile_throughput.py /dataset/ShareGPT_V3_unfiltered_cleaned_split.json /model/lmdeploy/llama2-7b-w8/ --backend pytorch` result is 2896.486 token/s

_Originally posted by @zxy1119 in https://github.com/InternLM/lmdeploy/issues/2295#issuecomment-2286196586_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.