Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Paddle Toolkit Development Competition No.5】Paddle 适配 torch-harmonics #1013

Closed
wants to merge 6 commits into from

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Nov 10, 2024

PR types

Others

PR changes

Others

Describe

Paddle 适配 torch-harmonics
RFC PaddlePaddle/community#1002

安装依赖triton,triton依赖torch,会同时安装 torch

examples/train_sfno.py 运行比较
Paddle
image

Torch
image

单测59项运行完成
image

Notebooks/支持运行文件
conditioning_sht.ipynb
getting_started.ipynb
helmholtz.ipynb
plot_spherical_harmonics.ipynb
quadrature.ipynb
shallow_water_equations.ipynb
train_sfno.ipynb

Notebooks/gradient_analysis.ipynb 中SGD使用complex64类型参数不支持,不支持运行

Copy link

paddle-bot bot commented Nov 10, 2024

Thanks for your contribution!

@lijialin03
Copy link
Contributor

pytest时有一个循环引用的报错:
image

@lijialin03
Copy link
Contributor

paddle3.0下,test_convolution 报错,大概看了一下可能是因为reshape的shape不对,比如应该是.reshape([-1, 1, 1])但是现在是.reshape(-1, 1, 1)
image

@co63oc
Copy link
Contributor Author

co63oc commented Nov 15, 2024

paddle3.0下,test_convolution 报错,大概看了一下可能是因为reshape的shape不对,比如应该是.reshape([-1, 1, 1])但是现在是.reshape(-1, 1, 1)

paddle_aux对reshape的参数是有修改的应该是可以,我再看下

@co63oc
Copy link
Contributor Author

co63oc commented Nov 15, 2024

image
安装的3.0.0.dev20241111版本,test_convolution.py没有问题
image
utils/paddle_aux.py 处理reshape的部分,在源文件中引入paddle_aux 会替换reshape
image

@lijialin03
Copy link
Contributor

image 安装的3.0.0.dev20241111版本,test_convolution.py没有问题 image utils/paddle_aux.py 处理reshape的部分,在源文件中引入paddle_aux 会替换reshape image

确实,是triton版本的问题,更新到 3.1.0 test全部跑通

@co63oc
Copy link
Contributor Author

co63oc commented Nov 15, 2024

确实,是triton版本的问题,更新到 3.1.0 test全部跑通

好的

@co63oc
Copy link
Contributor Author

co63oc commented Nov 18, 2024

已创建私有仓库 https://github.com/PFCCLab/paddle_harmonics

@HydrogenSulfate
Copy link
Collaborator

已创建私有仓库 https://github.com/PFCCLab/paddle_harmonics

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants