Skip to content

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

rm triton from requirements.txt (#824)

Wenhua Chengc898d132b5ba
diff --git a/README.md b/README.md
index 40ef60bc2..3ef30b538 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@ AutoRound
===========================
<h3> Advanced Quantization Algorithm for LLMs</h3>
-[![python](https://img.shields.io/badge/python-3.9%2B-blue)](https://github.com/intel/auto-round)
+[![python](https://img.shields.io/badge/python-3.10%2B-blue)](https://github.com/intel/auto-round)
[![version](https://img.shields.io/badge/release-0.7.0-green)](https://github.com/intel/auto-round)
[![license](https://img.shields.io/badge/license-Apache%202-9C27B0)](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.py
index 47088ef96..dcb794521 100644
--- a/auto_round/utils.py
+++ b/auto_round/utils.py
@@ -17,7 +17,6 @@ import copy
import gc
import importlib
import json
-import logging
import os
import re
import sys
@@ -66,7 +65,7 @@ class SupportedFormats:
return True if key in self._support_list else False
def __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 this
INNER_SUPPORTED_LAYER_TYPES = ("FP8Linear",)
# INNER_SUPPORTED_LAYER_TYPES = (transformers.integrations.finegrained_fp8.FP8Linear,)
diff --git a/requirements.txt b/requirements.txt
index 282f3a5b6..13809cc16 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -8,7 +8,6 @@ packaging
pillow
numba
tbb
-triton ## for fp8 model
torch
transformers>=4.38
threadpoolctl