Skip to content

Commit

Permalink
[WeeklyReport] ooooo-create 2024.08.12~2024.08.25 (#356)
Browse files Browse the repository at this point in the history
Co-authored-by: yinfan98 <[email protected]>
  • Loading branch information
ooooo-create and yinfan98 authored Sep 27, 2024
1 parent 3bbcea2 commit 839e673
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
### 姓名

方国勇

### 实习项目

PIR 专项

### 本周工作

适配 PIR 单测:

- 修复 [`test_adamw_op_(xpu)`](https://github.com/PaddlePaddle/Paddle/pull/66982) 单测。
- 旧 IR 下使用 `paddle.static.create_global_var` 来创建 Variable 对象,在 PIR 下使用 `paddle.pir.core.create_persistable_value` 来替代。
- 在 startup program 中初始化 Value(shadow_output), 在 main_program 中使用 data op 来定义一个 Value,两者在 Scope 中通过 name 来重用,parameter 也是。
- `clone(for_test=True)`
- [`test_while_op,test_norm_nn_grad`](https://github.com/PaddlePaddle/Paddle/pull/66785)
- 打开 `shuffle_batch` pir 下 op 自动生成, 使用 paddle.full([0], 0, "int64") 来创建一个未赋值的 value。

其他相关PR
- https://github.com/PaddlePaddle/Paddle/pull/66785
- https://github.com/PaddlePaddle/Paddle/pull/66959
- https://github.com/PaddlePaddle/Paddle/pull/66816
- https://github.com/PaddlePaddle/Paddle/pull/66757
- https://github.com/PaddlePaddle/Paddle/pull/66734
- https://github.com/PaddlePaddle/Paddle/pull/66709


### 下周工作

1. **继续跟进PIR在基础框架侧的单测修复工作**

### 导师点评

good work
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
### 姓名

方国勇

### 实习项目

PIR 专项

### 本周工作

适配 PIR 单测:

- **修改单测写法**
- https://github.com/PaddlePaddle/Paddle/pull/67230
- test_slice_scatter,包含 pir mode 判断的方法,需要在 test_with_pir_api 下运行。
- https://github.com/PaddlePaddle/Paddle/pull/67399
- 完善 Optest `check_inplace_output_with_place` 中 PIR 跳过的判断逻辑,os.envs,加上 FLAGS 判断
- https://github.com/PaddlePaddle/Paddle/pull/67403
- test_elementwise_nn_grad,`triple_grad_check` 属于单op的梯度检查,PIR下使用多 op 组合实现,加上 OldIRGuard

- **适配 API**
- https://github.com/PaddlePaddle/Paddle/pull/67230
- test_multiplex_op, 添加 api 下的类型检查
- https://github.com/PaddlePaddle/Paddle/pull/67389
- 适配 python/paddle/signal.py 中的 API
- 同步 binary_cross_entropy_with_logits 旧 IR 下的 typeerror
- 适配 paddle.view
- https://github.com/PaddlePaddle/Paddle/pull/67452
- 因为 PIR 下不支持 stride api,添加在动转静下 view tensor 被 inplace 使用导致行为不一致的报错
- https://github.com/PaddlePaddle/Paddle/pull/67619
- base.Dataloader, PyReader,在 iterable 为 True 时 create_py_reader,和静态图下没有差异,PIR 下减少相关 LOD 的检查,可以正常运行。
- iterable 为 False 会在 Program 插入算子,因为被标记废弃,没有进行适配

### 下周工作

1. **PIR在分布式下的单测修复工作**

### 导师点评

good work

0 comments on commit 839e673

Please sign in to comment.