Skip to content

PTQ-Level Efficiency, QAT-Level Accuracy | 训练后量化的效率,量化感知训练的精度

update readme (#571)

Wenhua Cheng1bad5ee2de12
diff --git a/README.md b/README.md
index ce16b4e1f..76f984d62 100644
--- a/README.md
+++ b/README.md
@@ -34,17 +34,18 @@ and [fbaldassarri](https://huggingface.co/fbaldassarri).
## What's New
-* [2025/05] AutoRound now supports all GGUF `q*_k_s` formats. Improved algorithms for certain configurations (e.g., q2_k_s) are planned for release in about two months, stay tuned!
-
-* [2025/05] AutoRound has been integrated into **vLLM**. You can now run models in the AutoRound format directly with
+* [2025/05] AutoRound now supports all GGUF `q*_k_s` formats. Improved algorithm for certain configurations (e.g.,
+ q2_k_s) are planned for release in about two months, stay tuned!
+* [2025/05] AutoRound has been integrated into **vLLM**. You can now run models in the AutoRound format directly with
vLLM versions later than v0.85.post1.
* [2025/04] AutoRound provides some recipes for **Qwen3** series, please refer
to [Qwen3-8B-sym-recipe](./docs/Qwen3-8B-sym-recipe.md) and [Qwen3-14B-sym-recipe](./docs/Qwen3-14B-sym-recipe.md) for
more details.
-* [2025/04] AutoRound has been integrated into **Transformers**. You can run models in the AutoRound format directly with
+* [2025/04] AutoRound has been integrated into **Transformers**. You can run models in the AutoRound format directly
+ with
Transformers versions later than 4.51.3.
- * [2025/03] The INT2-mixed **DeepSeek-R1** model (~200GB) retains 97.9% accuracy. Check
- out [OPEA/DeepSeek-R1-int2-mixed-sym-inc](https://huggingface.co/OPEA/DeepSeek-R1-int2-mixed-sym-inc).
+* [2025/03] The INT2-mixed **DeepSeek-R1** model (~200GB) retains 97.9% accuracy. Check
+ out [OPEA/DeepSeek-R1-int2-mixed-sym-inc](https://huggingface.co/OPEA/DeepSeek-R1-int2-mixed-sym-inc).
## Installation
@@ -153,13 +154,12 @@ W2G64 Average Accuracy of 13 tasks and Time Cost Results(Testing was conducted o
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
+from auto_round import AutoRound
model_name = "Qwen/Qwen3-0.6B"
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto")
tokenizer = AutoTokenizer.from_pretrained(model_name)
-from auto_round import AutoRound
-
bits, group_size, sym = 4, 128, True
autoround = AutoRound(model, tokenizer, bits=bits, group_size=group_size, sym=sym)
@@ -279,8 +279,10 @@ models. Besides, recently 3 bits may have some accuracy issues in Transformers.
**AutoAWQ Format**: This format is well-suited for asymmetric 4-bit quantization on CUDA devices and is widely
adopted within the community, **only 4-bits quantization is supported**.
-**GGUF** Format: This format is well-suited for CPU devices and is widely adopted by the community. Mixed-bit
-configs like `q4_k_m` are not supported yet.
+**GGUF** Format: This format is well-suited for CPU devices and is widely adopted by the community. Mixed-bit
+configs like `q4_k_m` are not supported yet. Please note: In contrast to the official implementation, AutoRound does not
+quantize the embedding layer or the LM head layer by default.
+
### Quantization Costs
Testing was conducted on the Nvidia A100 80G using the nightly version of PyTorch 2.6.0.dev20241029+cu124. Please note