Using FastChat
GPTQ 4bit Inference
Support GPTQ 4bit inference with GPTQ-for-LLaMa.
- Window user: use the
old-cuda
branch. - Linux user: recommend the
fastest-inference-4bit
branch.
Install
Setup environment:
Chat with the CLI:
Start model worker:
Benchmark
LLaMA-13B | branch | Bits | group-size | memory(MiB) | PPL(c4) | Median(s/token) | act-order | speed up |
---|---|---|---|---|---|---|---|---|
FP16 | fastest-inference-4bit | 16 | - | 26634 | 6.96 | 0.0383 | - | 1x |
GPTQ | triton | 4 | 128 | 8590 | 6.97 | 0.0551 | - | 0.69x |
GPTQ | fastest-inference-4bit | 4 | 128 | 8699 | 6.97 | 0.0429 | true | 0.89x |
GPTQ | fastest-inference-4bit | 4 | 128 | 8699 | 7.03 | 0.0287 | false | 1.33x |
GPTQ | fastest-inference-4bit | 4 | -1 | 8448 | 7.12 | 0.0284 | false | 1.44x |