[Minor] Add more detailed explanation on quantization argument (#2145)

This commit is contained in:
Woosuk Kwon
2023-12-17 01:56:16 -08:00
committed by GitHub
parent 3a765bd5e1
commit 30fb0956df
2 changed files with 10 additions and 4 deletions
+4 -3
View File
@@ -38,9 +38,10 @@ class LLM:
However, if the `torch_dtype` in the config is `float32`, we will
use `float16` instead.
quantization: The method used to quantize the model weights. Currently,
we support "awq", "gptq" and "squeezellm". If None, we assume the
model weights are not quantized and use `dtype` to determine the
data type of the weights.
we support "awq", "gptq" and "squeezellm". If None, we first check
the `quantization_config` attribute in the model config file. If
that is None, we assume the model weights are not quantized and use
`dtype` to determine the data type of the weights.
revision: The specific model version to use. It can be a branch name,
a tag name, or a commit id.
tokenizer_revision: The specific tokenizer version to use. It can be a