v2.3.2
PaddlePaddle/Paddlev2.3.2Aug 16, 2022by jzhang533
AI Summary
This release focused on bug fixes including profiler improvements, CUDA 11.7 compatibility, and PHI C++ API issues. Deployment features included NVCC_LAZY loading and expanded ONNX Runtime backend support.
Key Highlights
- Profiler input shape collection for static and dynamic graphs
- NVCC_LAZY operator loading option
- PHI C++ API fixes for standalone executables
New Features
- NVCC_LAZY operator loading option
- ONNX Runtime backend support for partial_sum and bilinear_interp
- TensorRT support for squeeze2/unsqueeze2/cast/slice
Full Release Notes
# 2.3.2 Release Note 2.3.2 版本修复了已知问题,并新增了少量功能。 ## 训练框架(含分布式) - 性能分析器增加对静态图和动态图的算子的输入张量的input shape的采集。([#44245](https://github.com/PaddlePaddle/Paddle/pull/44245)、 [#44384](https://github.com/PaddlePaddle/Paddle/pull/44384)、 [#44654](https://github.com/PaddlePaddle/Paddle/pull/44654)) - 修复部分单测在CUDA 11.7环境失败的问题。([#44785](https://github.com/PaddlePaddle/Paddle/pull/44785)、 [#44796](https://github.com/PaddlePaddle/Paddle/pull/44796)) - 修复量化后训练与量化感知训练时,部分 scale 命名不统一问题。([#44903](https://github.com/PaddlePaddle/Paddle/pull/44903)) - 修复在外部基于paddle开放的PHI C++ API,编写C++程序并且编译为可执行文件使用的场景中,因为PHI中ContextPool没有初始化而报错的问题。([#43910](https://github.com/PaddlePaddle/Paddle/pull/43910)) - 修复paddle编译产出的core_(no)avx.so动态库so name与实际文件名不一致,导致外部链接的时候报错找不到 libpaddle_pybind.so的问题。([#43977](https://github.com/PaddlePaddle/Paddle/pull/43977)) - 修复自定义算子中调用`Tensor.stream()`获取的stream与实际运行时stream不一致的问题。([#44500](https://github.com/PaddlePaddle/Paddle/pull/44500)) - 修复在新动态图模式下执行自定义算子出现输入属性类型解析错误的问题。([#44938](https://github.com/PaddlePaddle/Paddle/pull/44938)) - 修复性能数据采集器因为线程局部变量被释放而丢失数据的问题。([#44384](https://github.com/PaddlePaddle/Paddle/pull/44384)) - 修复PACT感知量化训练中支持量化新格式的问题;增强量化新格式C++ kernel计算逻辑;支持Reduce Max算子量化。([#44876](https://github.com/PaddlePaddle/Paddle/pull/44872)) ## 部署方向(Paddle Inference) - FusedMultiTransformer 新增 normalize_before=False 功能,支持 layer_norm 计算在 attention 和 feed forward 后的 Transformer 结构。([#44931](https://github.com/PaddlePaddle/Paddle/pull/44931)) - 新增 NVCC_LAZY 算子按需加载选项,通过 `export CUDA_MODULE_LOADING=LAZY`,即可实现算子按需加载。([#44957](https://github.com/PaddlePaddle/Paddle/pull/44957) [#44997](https://github.com/PaddlePaddle/Paddle/pull/44997)) - ONNX Runtime后端新增支持partial_sum、partial_concat、bilinear_interp、conv3d、pool3d、multiclass_nms convert。([#44791](https://github.com/PaddlePaddle/Paddle/pull/44791)) - 优化ONNX Runtime后端:支持Clone接口、支持获取输入mutable data,降低内存消耗。([#44766](https://github.com/PaddlePaddle/Paddle/pull/44766)) - 新增 squeeze2、unsqueeze2、cast、slice TensorRT convert 支持。([#44887](https://github.com/PaddlePaddle/Paddle/pull/44887)、[#44837](https://github.com/PaddlePaddle/Paddle/pull/44837)、[#44757](https://github.com/PaddlePaddle/Paddle/pull/44757)) - 修复skip layernorm fp16 kernel计算错误的问题。([#45041](https://github.com/PaddlePaddle/Paddle/pull/45041)) # 2.3.2 Release Note V2.3.2 fixed known bugs, and added a tiny set of features. ## Training Framework (distributed included) - Profiler collects input tensors' shape for static graph and dynamic graph operators. ([#44245](https://github.com/PaddlePaddle/Paddle/pull/44245), [#44384](https://github.com/PaddlePaddle/Paddle/pull/44384), [#44654](https://github.com/PaddlePaddle/Paddle/pull/44654)) - Fixed failed unit tests in CUDA 11.7. ([#44785](https://github.com/PaddlePaddle/Paddle/pull/44785), [#44796](https://github.com/PaddlePaddle/Paddle/pull/44796)) - Fixed scale name incosistency issue when being used in post training quantization and quantization aware training. ([#44903](https://github.com/PaddlePaddle/Paddle/pull/44903)) - Fixed ContextPool in PHI uninitialized issue when PHI's C++ APIs are being used to compile a standalone executable. ([#43910](https://github.com/PaddlePaddle/Paddle/pull/43910)) - Fixed the compiled output core_(no)avx.so's so name is not consistent with the actual file name issue, so libpaddle_pybind.so could be linked correctly. ([#43977](https://github.com/PaddlePaddle/Paddle/pull/43977)) - Fixed the issue that `Tensor.stream()` is not returning the correct stream when being used in a customized operator. ([#44500](https://github.com/PaddlePaddle/Paddle/pull/44500)) - Fixed iniput attribute type parsing error when customized operator is being executed in new dynamic graph mode. ([#44938](https://github.com/PaddlePaddle/Paddle/pull/44938)) - Fixed the issue that profiler's performence data collector is missing data caused by thread local variables not being freed correctly. ([#44384](https://github.com/PaddlePaddle/Paddle/pull/44384)) - Fixed issue of supporting new format of PACT context aware training; Improved quatization new format C++ kernel computation logic; support Reduce Max operator quatization. ([#44876](https://github.com/PaddlePaddle/Paddle/pull/44872)) ## Deployment Direction (Paddle Inference) - FusedMultiTransformer added normalize_before=False, which supports layer_norm to compute the Transformer structure after attention and feed forward. ([#44931](https://github.com/PaddlePaddle/Paddle/pull/44931)) - Added NVCC_LAZY operators loaded by demand option, which could be enabled by setting `export CUDA_MODULE_LOADING=LAZY`. ([#44957](https://github.com/PaddlePaddle/Paddle/pull/44957), [#44997](https://github.com/PaddlePaddle/Paddle/pull/44997)) - ONNX Runtime backends added support for partial_sum, partial_concat, bilinear_interp, conv3d, pool3d, multiclass_nms convert. ([#44791](https://github.com/PaddlePaddle/Paddle/pull/44791)) - Optimized ONNX Runtime backend support: support Clone interface, support getting input mutable data, reduce memory consumption. ([#44766](https://github.com/PaddlePaddle/Paddle/pull/44766)) - Added squeeze2, unsqueeze2, cast, slice TensorRT convert. ([#44887](https://github.com/PaddlePaddle/Paddle/pull/44887), [#44837](https://github.com/PaddlePaddle/Paddle/pull/44837), [#44757](https://github.com/PaddlePaddle/Paddle/pull/44757)) - Fixed skip layernorm fp16 kernel computation error. ([#45041](https://github.com/PaddlePaddle/Paddle/pull/45041))