diff --git a/README.md b/README.md index b256078c95316c6a92d3aef96334861efbbcabc3..59eac93789a5dd304481d6e46c50d06eef72477d 100644 --- a/README.md +++ b/README.md @@ -22,13 +22,13 @@ PaddleSlim会从底层能力、技术咨询合作和业务场景等角度支持 - 功能模块 + 功能模块 - 算法 + 算法 - 教程与文档 + 教程与文档 @@ -51,7 +51,7 @@ PaddleSlim会从底层能力、技术咨询合作和业务场景等角度支持
  • Opt Slim Pruner: Ye Y , You G , Fwu J K , et al. Channel Pruning via Optimal Thresholding[J]. 2020.
    -
    +
  • @@ -88,7 +88,7 @@ PaddleSlim会从底层能力、技术咨询合作和业务场景等角度支持 Quantization Aware Training: Krishnamoorthi R . Quantizing deep convolutional networks for efficient inference: A whitepaper[J]. 2018.
  • - Post Training Quantization 原理 + Post Training Quantization 原理
  • Embedding Quantization: Miyashita D , Lee E H , Murmann B . Convolutional Neural Networks using Logarithmic Data Representation[J]. 2016. @@ -201,6 +201,29 @@ PaddleSlim会从底层能力、技术咨询合作和业务场景等角度支持 ```bash pip install paddleslim -i https://pypi.tuna.tsinghua.edu.cn/simple ``` +### 量化和Paddle版本的对应关系 + +如果在ARM和GPU上预测,每个版本都可以,如果在CPU上预测,请选择Paddle 2.0对应的PaddleSlim 1.1.0版本 + +- Paddle 1.7 系列版本,需要安装PaddleSlim 1.0.1版本 + +```bash +pip install paddleslim==1.0.1 -i https://pypi.tuna.tsinghua.edu.cn/simple +``` + +- Paddle 1.8 系列版本,需要安装PaddleSlim 1.1.1版本 + +```bash +pip install paddleslim==1.1.1 -i https://pypi.tuna.tsinghua.edu.cn/simple +``` + +- Paddle 2.0 系列版本,需要安装PaddleSlim 1.1.0版本 + +```bash +pip install paddleslim==1.1.0 -i https://pypi.tuna.tsinghua.edu.cn/simple +``` + + ## 使用 diff --git a/README_en.md b/README_en.md index 996cbe3456920899c6c5321d28787927fa102ca1..fd7cf0fef814b65dca8336bcff0e08084b5c0a8d 100644 --- a/README_en.md +++ b/README_en.md @@ -56,6 +56,30 @@ Paddle >= 1.7.0 pip install paddleslim -i https://pypi.org/simple ``` +### quantization + +If you want to use quantization in PaddleSlim, please install PaddleSlim as follows. + +If you want to use quantized model in ARM and GPU, any PaddleSlim version is ok and you should install 1.1.0 for CPU. + +- For Paddle 1.7, install PaddleSlim 1.0.1 + +```bash +pip install paddleslim==1.0.1 -i https://pypi.tuna.tsinghua.edu.cn/simple +``` + +- For Paddle 1.8,install PaddleSlim 1.1.1 + +```bash +pip install paddleslim==1.1.1 -i https://pypi.tuna.tsinghua.edu.cn/simple +``` + +- For Paddle 2.0 ,install PaddleSlim 1.1.0 + +```bash +pip install paddleslim==1.1.0 -i https://pypi.tuna.tsinghua.edu.cn/simple +``` + ## Usage - [QuickStart](https://paddlepaddle.github.io/PaddleSlim/quick_start/index_en.html): Introduce how to use PaddleSlim by simple examples.