Skip to content

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

update release package and bump version (#1327)

chen, suyue007021949b73
diff --git a/.azure-pipelines/code-scan.yml b/.azure-pipelines/code-scan.yml
index 7e2f24002..bc1cd951f 100644
--- a/.azure-pipelines/code-scan.yml
+++ b/.azure-pipelines/code-scan.yml
@@ -13,7 +13,7 @@ pr:
- setup.py
- requirements.txt
- requirements-cpu.txt
- - requirements-lib.txt
+ - requirements-hpu.txt
- .azure-pipelines/code-scan.yml
- .azure-pipelines/scripts/codeScan
diff --git a/.azure-pipelines/template/ut-template.yml b/.azure-pipelines/template/ut-template.yml
index 0bf1a31d6..bd7191067 100644
--- a/.azure-pipelines/template/ut-template.yml
+++ b/.azure-pipelines/template/ut-template.yml
@@ -52,7 +52,7 @@ steps:
- ${{ if eq(parameters.imageSource, 'pull') }}:
- script: |
docker exec ${{ parameters.utContainerName }} bash -c "cd /auto-round \
- && python setup.py bdist_wheel lib \
+ && python setup.py bdist_wheel hpu \
&& pip install dist/*.whl \
&& pip install -r test/test_hpu/requirements.txt \
&& pip list"
diff --git a/.azure-pipelines/unit-test-hpu.yml b/.azure-pipelines/unit-test-hpu.yml
index aef6a0fdc..a25f49bcc 100644
--- a/.azure-pipelines/unit-test-hpu.yml
+++ b/.azure-pipelines/unit-test-hpu.yml
@@ -12,7 +12,7 @@ pr:
- auto_round_extension
- test/test_hpu
- setup.py
- - requirements-lib.txt
+ - requirements-hpu.txt
- .azure-pipelines/scripts/ut
- .azure-pipelines/template/docker-template.yml
- .azure-pipelines/template/ut-template.yml
diff --git a/.github/workflows/manual-binary-build-publish.yml b/.github/workflows/manual-binary-build-publish.yml
index 4ee856063..94c9dac99 100644
--- a/.github/workflows/manual-binary-build-publish.yml
+++ b/.github/workflows/manual-binary-build-publish.yml
@@ -6,7 +6,7 @@ on:
workflow_dispatch:
inputs:
branch:
- default: 'v0.9.3'
+ default: 'v0.10.0'
description: 'Tag to build the binary'
required: true
type: string
@@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- option: ["full", "lib", "hpu"]
+ option: ["full", "hpu"]
fail-fast: true
steps:
- name: Checkout out Repo
diff --git a/README.md b/README.md
index 6875c8533..4f4b4a3df 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
<h3> Advanced Quantization Algorithm for LLMs</h3>
[![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.9.5-green)](https://github.com/intel/auto-round)
+[![version](https://img.shields.io/badge/release-0.9.6-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">
<img alt="Model Checkpoints" src="https://img.shields.io/badge/%F0%9F%A4%97%20HF-Models-F57C00">
@@ -96,7 +96,7 @@ Includes [multiple gpus quantization](https://github.com/intel/auto-round/blob/m
pip install auto-round
# HPU
-pip install auto-round-lib
+pip install auto-round-hpu
```
<details>
@@ -107,7 +107,7 @@ pip install auto-round-lib
pip install .
# HPU
- python setup.py install lib
+ python setup.py install hpu
```
</details>
diff --git a/auto_round/version.py b/auto_round/version.py
index 281b376f6..a01262931 100644
--- a/auto_round/version.py
+++ b/auto_round/version.py
@@ -14,4 +14,4 @@
"""Intel® auto-round: An open-source Python library
supporting popular model weight only compression based on signround."""
-__version__ = "0.9.6"
+__version__ = "0.10.0"
diff --git a/requirements-lib.txt b/requirements-hpu.txt
similarity index 100%
rename from requirements-lib.txt
rename to requirements-hpu.txt
diff --git a/setup.py b/setup.py
index 724ff4ee8..c78aa1d78 100644
--- a/setup.py
+++ b/setup.py
@@ -112,16 +112,16 @@ PKG_INSTALL_CFG = {
}
###############################################################################
-# Configuration for auto_round_lib
+# Configuration for auto-round-hpu package
# From pip:
-# pip install auto-round-lib
+# pip install auto-round-hpu
# From source:
-# python setup.py lib install
+# python setup.py hpu install
###############################################################################
-LIB_REQUIREMENTS_FILE = "requirements-lib.txt"
-LIB_INSTALL_CFG = {
+HPU_REQUIREMENTS_FILE = "requirements-hpu.txt"
+HPU_INSTALL_CFG = {
"include_packages": find_packages(
include=[
"auto_round",
@@ -130,31 +130,22 @@ LIB_INSTALL_CFG = {
"auto_round_extension.*",
],
),
- "install_requires": fetch_requirements(LIB_REQUIREMENTS_FILE),
+ "install_requires": fetch_requirements(HPU_REQUIREMENTS_FILE),
}
if __name__ == "__main__":
- package_name = "auto_round"
- # There are two ways to install hpu-only package:
- # 1. python setup.py lib install
- # 2. Within the gaudi docker where the HPU is available, we install the "auto_round_lib" by default.
- # 3. This package is deprecated and will be removed from v1.0.0 release, please replace with auto_round_hpu.
- is_user_requesting_library_build = "lib" in sys.argv
- if is_user_requesting_library_build:
- sys.argv.remove("lib")
- should_build_library = is_user_requesting_library_build or BUILD_HPU_ONLY
- if should_build_library:
- package_name = "auto_round_lib"
+ package_name = "auto-round"
# From v0.9.3, auto-round-hpu will be published to replace auto-round-lib.
hpu_build = "hpu" in sys.argv
if hpu_build:
sys.argv.remove("hpu")
- package_name = "auto_round_hpu"
- if should_build_library or hpu_build:
- INSTALL_CFG = LIB_INSTALL_CFG
+ should_build_hpu = hpu_build or BUILD_HPU_ONLY
+ if should_build_hpu:
+ package_name = "auto-round-hpu"
+ INSTALL_CFG = HPU_INSTALL_CFG
else:
INSTALL_CFG = PKG_INSTALL_CFG
@@ -184,5 +175,5 @@ if __name__ == "__main__":
"License :: OSI Approved :: Apache Software License",
],
include_package_data=True,
- package_data={"": ["mllm/templates/*.json", "*.abi3.so", "*.pyd"]},
+ package_data={"": ["mllm/templates/*.json"]},
)