PTQ-Level Efficiency, QAT-Level Accuracy | 训练后量化的效率,量化感知训练的精度
ci:
autofix_prs: true
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-json
- id: check-yaml
- id: check-case-conflict
- id: debug-statements
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.6
hooks:
- id: insert-license
files: |
(?x)^(
auto_round/.*(py|yaml|yml|sh)|
auto_round_extension/.*(py|yaml|yml|sh)
)$
exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$
args:
[
--license-filepath=.github/license_template.txt,
--use-current-year,
--detect-license-in-X-top-lines=40,
--skip-license-insertion-comment=Copyright,
]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.10.0
hooks:
- id: black
files: (.*\.py)$
exclude: |
(?x)^(
.azure-pipelines/scripts/cuda_unit_test/.+|
auto_round/export/export_to_gguf/conversion/.+
)$
- repo: https://github.com/asottile/blacken-docs
rev: 1.20.0
hooks:
- id: blacken-docs
args: [--line-length=120, --skip-errors]
additional_dependencies:
- black==26.5.1
- repo: https://github.com/codespell-project/codespell
rev: v2.4.3
hooks:
- id: codespell
args: [-w]
exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$
additional_dependencies:
- tomli
- repo: https://github.com/crate-ci/typos
rev: typos-dict-v0.14.2
hooks:
- id: typos
exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$
- repo: https://github.com/pycqa/isort
rev: 9.0.2
hooks:
- id: isort
exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.10
hooks:
- id: ruff
args: [--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.15.0
hooks:
- id: markdown-link-check
args: [-q, -c .azure-pipelines/scripts/codeScan/markdown-link-check/markdown-link-check.json]
- repo: https://github.com/PyCQA/bandit
rev: "1.9.4"
hooks:
- id: bandit
files: |
(?x)^(
auto_round/.*\.py|
auto_round_extension/.*\.py
)$
exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$
args: [-r, -lll, -iii, auto_round/, auto_round_extension/]