Skip to content

Commit 127f2fb

Browse files
authored
Merge branch 'PFCCLab:main' into Xuxuanang/WeeklyReport2
2 parents fb8fec1 + 1a6efc8 commit 127f2fb

File tree

163 files changed

+2669
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+2669
-0
lines changed
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
## 本文档用于发布 PaddleTest 中发现的符号推导相关 BUG
2+
3+
## Bug 复现指南
4+
5+
1. 下载 PaddleTest 仓库
6+
``` bash
7+
git clone https://github.com/PaddlePaddle/PaddleTest.git
8+
```
9+
10+
2. 编译安装 Paddle 包
11+
``` bash
12+
cd Paddle/build
13+
cmake .. -DPYTHON_EXECUTABLE=/usr/bin/python3.10 \
14+
-DWITH_GPU=ON \
15+
-DWITH_PROFILER=OFF \
16+
-DPY_VERSION=3.10 \
17+
-DWITH_DISTRIBUTE=OFF \
18+
-DON_INFER=ON \
19+
-DWITH_TESTING=ON \
20+
-DWITH_CINN=ON
21+
22+
make -j 32
23+
python -m pip uninstall paddlepaddle-gpu -y
24+
python -m pip install python/dist/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
25+
```
26+
3. 运行 PaddleTest 中的子图单测
27+
### 方法1
28+
直接使用 python 运行单测,
29+
例如layercase/sublayer1000/Clas_cases/CSWinTransformer_CSWinTransformer_base_384/SIR_236.py
30+
然后直接运行
31+
``` bash
32+
python SIR_236.py
33+
```
34+
和CI的单测代码类似,这时不会走CE测试框架的逻辑。
35+
36+
### 方法2
37+
切换目录
38+
``` bash
39+
cd PaddleTest/framework/e2e/PaddleLT_new
40+
```
41+
42+
设置环境变量
43+
``` bash
44+
export FLAGS_prim_all=True # 开启组合算子策略
45+
export FLAGS_prim_enable_dynamic=true #组合算子允许动态Shape
46+
export FLAGS_print_ir=1 # 会打印日志,供RD调试
47+
export FLAGS_enable_pir_api=1 # 会开启新IR
48+
export FLAGS_cinn_new_group_scheduler=1
49+
export FLAGS_group_schedule_tiling_first=1
50+
export FLAGS_cinn_bucket_compile=1
51+
export FRAMEWORK=paddle # 设置FRAMEWORK,paddle/torch
52+
export PLT_SET_DEVICE="gpu" # gpu/cpu
53+
export PLT_DEVICE_ID=0 # 设置 device_id
54+
55+
source ./scene/set_pts_env.sh # 设定默认环境变量
56+
```
57+
58+
找到 layertest.py,找到代码最后几行,设定需要排查的 子图(layerfile)和 测试配置(testing)
59+
60+
*注意:执行路径下应该没有framework/e2e/PaddleLT_new,只用写layertest/…/ 后面的路径*
61+
``` python
62+
if __name__ == "__main__":
63+
layerfile = "layercase/sublayer1000/Clas_cases/CSWinTransformer_CSWinTransformer_base_384/SIR_236.py" # 子图case路径
64+
testing = "yaml/dy^dy2stcinn_eval.yml" # 配置yaml设定为dy^dy2stcinn_eval.yml即可
65+
single_test = LayerTest(title="your_name", layerfile=layerfile, testing=testing)
66+
single_test._case_run()
67+
```
68+
69+
运行 layertest.py,python 版本要与编译安装的 python 版本一致
70+
``` bash
71+
python layertest.py
72+
# python layertest.py > SIR_35.txt 2>&1
73+
```
74+
75+
## Bug 列表
76+
|Bug 编号 |Bug 目录 | Bug描述 | 认领人 |
77+
|---|---|---|---|
78+
|✅1|[SIR_32.py](https://github.com/PaddlePaddle/PaddleTest/blob/develop/framework/e2e/PaddleLT_new/layercase/sublayer160/Seg_cases/isanet_isanet_resnet50_os8_cityscapes_769x769_80k/SIR_32.py)| ![Alt text](src/SIR_32_bug_info.png)| [ooooo-create](https://github.com/ooooo-create) [✅Paddle#69167](https://github.com/PaddlePaddle/Paddle/pull/69167),[✅PaddleTest#2981](https://github.com/PaddlePaddle/PaddleTest/pull/2981)|
79+
|✅2 | [SIR_35.py](https://github.com/PaddlePaddle/PaddleTest/blob/develop/framework/e2e/PaddleLT_new/layercase/sublayer160/Seg_cases/isanet_isanet_resnet50_os8_cityscapes_769x769_80k/SIR_35.py) | ![Alt text](src/SIR_35_bug_info.png)| [ooooo-create](https://github.com/ooooo-create) [✅Paddle#69167](https://github.com/PaddlePaddle/Paddle/pull/69167),[✅PaddleTest#2981](https://github.com/PaddlePaddle/PaddleTest/pull/2981)|
80+
|3|[kron_3_func.py](https://github.com/PaddlePaddle/PaddleTest/blob/develop/framework/e2e/PaddleLT_new/layerApicase/math_sublayer/kron_3_func.py)|![98200f282bc865643e5760fd8499c687](https://github.com/user-attachments/assets/a824769f-f197-49df-aab6-2a14dc976cce)
81+
| |
82+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## 🚀 本目录用于「CINN 符号推导扩量任务」集训营项目学习资料分享
2+
3+
- 👨‍💻 学员: [ooooo-create](https://github.com/ooooo-create) [AndPuQing](https://github.com/AndPuQing)
4+
- 👦🏻 导师: [gongshaotian](https://github.com/gongshaotian)
35.4 KB
Loading
44 KB
Loading

Docs/Hackathon_8th/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## 📖 本目录用于存放各学员参与「第八期飞护航计划集训营」项目时的学习文档

Docs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Camp/
3535
│ │ ├── ...
3636
| ├── Hackathon_7th
3737
│ │ ├── ...
38+
| ├── Hackathon_8th
39+
│ │ ├── ...
3840
└── ...
3941
```
4042

Meetup/Hackathon_8th/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## 📖 本目录用于存放各学员参与「第八期飞护航计划集训营」项目时的学习文档

Meetup/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ Camp/
3535
│ │ └── ...
3636
│ ├── Hackathon_6th
3737
│ │ ├── ...
38+
| ├── Hackathon_7th
39+
│ │ ├── ...
40+
| ├── Hackathon_8th
41+
│ │ ├── ...
3842
└── ...
3943
```
4044

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
### 姓名
2+
3+
梁嘉铭
4+
5+
### 实习项目
6+
7+
PIR 专项
8+
9+
### 本周工作
10+
11+
本双周工作集中在对于 `静手``自动并行` 单测的修复以及单测deprecated。
12+
13+
相关PR
14+
15+
- https://github.com/PaddlePaddle/Paddle/pull/67743
16+
- https://github.com/PaddlePaddle/Paddle/pull/67824
17+
- https://github.com/PaddlePaddle/Paddle/pull/67872
18+
19+
20+
### 下周工作
21+
22+
1. **继续跟进PIR分布式单测修复工作**
23+
24+
### 导师点评
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### 姓名
2+
3+
梁嘉铭
4+
5+
### 实习项目
6+
7+
PIR 专项
8+
9+
### 本周工作
10+
11+
本周工作分别完成对:
12+
13+
- `cholesky_solve`: https://github.com/PaddlePaddle/Paddle/pull/69005
14+
- `reindexgraph`: https://github.com/PaddlePaddle/Paddle/pull/68973
15+
- `rank_attention`: https://github.com/PaddlePaddle/Paddle/pull/68967
16+
17+
CINN InferSymbolShape支持。
18+
19+
### 下周工作
20+
21+
继续完成对其他Op的InferSymbolShape支持。
22+
23+
### 导师点评
24+
25+
导师点评:任务量达标,能深入分析各算子推导过程中遇到的问题

0 commit comments

Comments
 (0)