Skip to content

【Hackathon 10th Spring No.16】DiffSyn模型复现#270

Open
r-cloudforge wants to merge 6 commits intoPaddlePaddle:developfrom
CloudForge-Solutions:task/016-diffsyn-reproduction
Open

【Hackathon 10th Spring No.16】DiffSyn模型复现#270
r-cloudforge wants to merge 6 commits intoPaddlePaddle:developfrom
CloudForge-Solutions:task/016-diffsyn-reproduction

Conversation

@r-cloudforge
Copy link
Copy Markdown

通过迁移 https://github.com/eltonpan/zeosyn_gen 项目实现 DiffSyn 的PaddlePaddle版本复现。

主要改动

  1. 新增 ppmat/models/diffsyn/ 模型目录 — 完整的DiffSyn扩散模型实现,包括1D U-Net和DDPM调度器
  2. 新增 structure_generation/configs/diffsyn/ 训练配置
  3. 新增 test/diffsyn/ 测试代码 — 26个单元测试

模型特性

  • 1D U-Net + DDPM扩散模型,用于沸石合成条件生成
  • 完整的DDPM调度器:前向扩散 + 反向去噪采样
  • 正弦位置编码、残差连接、预归一化
  • 权重标准化卷积 (WSConv1D)
  • 支持条件和无条件生成
  • 基于PaddleMaterials标准API:forward(data){"loss_dict", "pred_dict"}
  • sample() 方法支持完整的去噪采样流程
  • 已注册到 ppmat/models/__init__.py

测试

cd test && python -m pytest diffsyn/ -v
# 26 passed

参考链接

cloudforge1 and others added 5 commits March 28, 2026 10:00
Implement conditional 1D DDPM for zeolite synthesis conditions.
Includes Unet1D denoiser, cosine beta schedule, classifier-free
guidance, DDPM/DDIM sampling, and 26 unit tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


cloudforge1 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Apr 11, 2026

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Apr 11, 2026
…anspose

- Remove overwritten matmul computations in Attention1D.forward()
- Fix LinearAttention1D.forward() transpose logic for context@q multiplication

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants