PTQ-Level Efficiency, QAT-Level Accuracy | 训练后量化的效率,量化感知训练的精度
rm triton from requirements.txt (#824)
Wenhua Chengc898d132b5ba
diff --git a/README.md b/README.mdindex 40ef60bc2..3ef30b538 100644--- a/README.md+++ b/README.md@@ -5,7 +5,7 @@ AutoRound===========================<h3> Advanced Quantization Algorithm for LLMs</h3>-[](https://github.com/intel/auto-round)+[](https://github.com/intel/auto-round)[](https://github.com/intel/auto-round)[](https://github.com/intel/auto-round/blob/main/LICENSE)<a href="https://huggingface.co/Intel">diff --git a/auto_round/utils.py b/auto_round/utils.pyindex 47088ef96..dcb794521 100644--- a/auto_round/utils.py+++ b/auto_round/utils.py@@ -17,7 +17,6 @@ import copyimport gcimport importlibimport json-import loggingimport osimport reimport sys@@ -66,7 +65,7 @@ class SupportedFormats:return True if key in self._support_list else Falsedef __str__(self):- ##return "(%s)" % ', '.join(self._support_format + ("gguf:q*_0", "gguf:q*_1", "gguf:q*_k_s"))+ # Return "(%s)" % ', '.join(self._support_format + ("gguf:q*_0", "gguf:q*_1", "gguf:q*_k_s"))return "(%s)" % ", ".join(self._support_list)def __getitem__(self, key):@@ -77,7 +76,7 @@ SUPPORTED_DTYPES = ("int", "mx_fp", "fp", "nv_fp")SUPPORTED_FORMATS = SupportedFormats()SUPPORTED_LAYER_TYPES = (torch.nn.Linear, transformers.pytorch_utils.Conv1D)-##changed to str as it relies triton or others lib to load this+# Changed to str as it relies on triton or others lib to load thisINNER_SUPPORTED_LAYER_TYPES = ("FP8Linear",)# INNER_SUPPORTED_LAYER_TYPES = (transformers.integrations.finegrained_fp8.FP8Linear,)diff --git a/requirements.txt b/requirements.txtindex 282f3a5b6..13809cc16 100644--- a/requirements.txt+++ b/requirements.txt@@ -8,7 +8,6 @@ packagingpillownumbatbb-triton ## for fp8 modeltorchtransformers>=4.38threadpoolctl