PTQ-Level Efficiency, QAT-Level Accuracy | 训练后量化的效率,量化感知训练的精度
[pre-commit.ci] pre-commit autoupdate (#2436)
pre-commit-ci[bot]87734fb025f5
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 278174a6e..47c029121 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -32,7 +32,7 @@ repos:]- repo: https://github.com/psf/black-pre-commit-mirror- rev: 26.5.1+ rev: 26.10.0hooks:- id: blackfiles: (.*\.py)$@@ -52,7 +52,7 @@ repos:- black==26.5.1- repo: https://github.com/codespell-project/codespell- rev: v2.4.2+ rev: v2.4.3hooks:- id: codespellargs: [-w]@@ -61,26 +61,26 @@ repos:- tomli- repo: https://github.com/crate-ci/typos- rev: v1.48.0+ rev: typos-dict-v0.14.2hooks:- id: typosexclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$- repo: https://github.com/pycqa/isort- rev: 8.0.1+ rev: 9.0.2hooks:- id: isortexclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$- repo: https://github.com/astral-sh/ruff-pre-commit- rev: v0.16.9+ rev: v0.16.10hooks:- id: ruffargs: [--fix, --exit-non-zero-on-fix, --no-cache]exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$- repo: https://github.com/tcort/markdown-link-check- rev: v3.14.2+ rev: v3.15.0hooks:- id: markdown-link-checkargs: [-q, -c .azure-pipelines/scripts/codeScan/markdown-link-check/markdown-link-check.json]diff --git a/auto_round_extension/ark/auto_round_kernel/sparse_attention.py b/auto_round_extension/ark/auto_round_kernel/sparse_attention.pyindex 9e86faae3..59f68a3c8 100644--- a/auto_round_extension/ark/auto_round_kernel/sparse_attention.py+++ b/auto_round_extension/ark/auto_round_kernel/sparse_attention.py@@ -22,9 +22,7 @@ from . import ()from . import sagev1 as _dense_sagev1from . import sagev1_pvi8 as _dense_sagev1_pvi8-from . import (- sdpa,-)+from . import sdpadef _get_xpu_sparse_kernel_backend() -> str:diff --git a/test/unit/common/algorithms/test_rotation.py b/test/unit/common/algorithms/test_rotation.pyindex 4f8b02016..a55752831 100644--- a/test/unit/common/algorithms/test_rotation.py+++ b/test/unit/common/algorithms/test_rotation.py@@ -62,15 +62,9 @@ from auto_round.algorithms.transforms.hadamard.inplace.hooks import (from auto_round.algorithms.transforms.hadamard.inplace.hooks import (deterministic_hadamard_matrix as inplace_det_hadamard,)-from auto_round.algorithms.transforms.hadamard.inplace.hooks import (- get_hadK,- get_or_create_random_hadamard,-)+from auto_round.algorithms.transforms.hadamard.inplace.hooks import get_hadK, get_or_create_random_hadamardfrom auto_round.algorithms.transforms.hadamard.inplace.hooks import is_pow2 as inplace_is_pow2-from auto_round.algorithms.transforms.hadamard.inplace.hooks import (- matmul_hadU,- matmul_hadUt,-)+from auto_round.algorithms.transforms.hadamard.inplace.hooks import matmul_hadU, matmul_hadUtfrom auto_round.algorithms.transforms.hadamard.inplace.hooks import random_hadamard_matrix as inplace_rand_hadamardfrom auto_round.algorithms.transforms.hadamard.inplace.model_config import (MAPPING_REGISTRY,