PTQ-Level Efficiency, QAT-Level Accuracy | 训练后量化的效率,量化感知训练的精度
refine_doc_0624 (#619)
Weiweib6d243856c4e
diff --git a/README.md b/README.mdindex 6b4e92d0a..6ed389084 100644--- a/README.md+++ b/README.md@@ -23,7 +23,7 @@ AutoRound also offers a variety of useful features, including mixed-bit tuning asupport for exporting to formats like GPTQ/AWQ/GGUF, and flexible tuning recipes. The belowimage presents an overview of AutoRound. Check out our paper on [arxiv](https://arxiv.org/pdf/2309.05516) for moredetails and quantized models in several Hugging Face Spaces,-e.g. [OPEA](https://huggingface.co/OPEA), [Kaitchup](https://huggingface.co/kaitchup)+e.g. [OPEA](https://huggingface.co/OPEA), [Intel](https://huggingface.co/Intel), [Kaitchup](https://huggingface.co/kaitchup)and [fbaldassarri](https://huggingface.co/fbaldassarri).<div align="center">@@ -33,11 +33,11 @@ and [fbaldassarri](https://huggingface.co/fbaldassarri).<div align="left">## What's New-* [2025.05] AutoRound provides some recipes for **DeepSeek-R1-0528**, please refer to [DeepSeek-R1-0528-int2-mixed-sym-inc](./docs/DeepSeek-R1-0528-int2-mixed-sym-inc.md), [DeepSeek-R1-0528-int4-sym-gptq-inc](./docs/DeepSeek-R1-0528-int4-sym-gptq-inc.md) and [DeepSeek-R1-0528-int4-asym-awq-inc](./docs/DeepSeek-R1-0528-int4-asym-awq-inc.md) for more details.+* [2025.05] AutoRound provides some recipes for **DeepSeek-R1-0528**, please refer to [DeepSeek-R1-0528-int2-mixed-sym-inc](https://huggingface.co/Intel/DeepSeek-R1-0528-int2-mixed-sym-inc), [DeepSeek-R1-0528-int4-sym-gptq-inc](https://huggingface.co/Intel/DeepSeek-R1-0528-int4-gptq-inc-auto-round) and [DeepSeek-R1-0528-int4-asym-awq-inc](https://huggingface.co/Intel/DeepSeek-R1-0528-int4-awq-inc-auto-round) for more details.* [2025/05] AutoRound has been integrated into **vLLM**. You can now run models in the AutoRound format directly withvLLM 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+ to [Qwen3-8B-sym-recipe](https://huggingface.co/Intel/Qwen3-8B-int4-AutoRound-inc) and [Qwen3-14B-sym-recipe](https://huggingface.co/Intel/Qwen3-14B-int4-AutoRound-inc) formore details.* [2025/04] AutoRound has been integrated into **Transformers**. You can run models in the AutoRound format directlywith@@ -509,3 +509,4 @@ If you find AutoRound useful for your research, please cite our paper:```+diff --git a/auto_round/export/export_to_autoround/export.py b/auto_round/export/export_to_autoround/export.pyindex 186403dc2..62d434811 100644--- a/auto_round/export/export_to_autoround/export.py+++ b/auto_round/export/export_to_autoround/export.py@@ -379,3 +379,4 @@ def save(model: nn.Module, save_dir: str, max_shard_size: str = "5GB", safe_seriif hasattr(model, "config") and hasattr(model.config, "quantization_config"):with open(os.path.join(save_dir, config_file), "w", encoding="utf-8") as f:json.dump(model.config.quantization_config, f, indent=2)+diff --git a/auto_round/wrapper.py b/auto_round/wrapper.pyindex 5fdb57f87..dd8856b5a 100644--- a/auto_round/wrapper.py+++ b/auto_round/wrapper.py@@ -581,3 +581,4 @@ def unwrapper_block(block, best_params):best_param = Noneorig_layer = m.unwrapper(best_param)set_module(block, n, orig_layer)+