Skip to content

【Hackathon 10th Spring No.8】CrystalFormer模型复现#268

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

【Hackathon 10th Spring No.8】CrystalFormer模型复现#268
r-cloudforge wants to merge 6 commits intoPaddlePaddle:developfrom
CloudForge-Solutions:task/008-crystalformer-reproduction

Conversation

@r-cloudforge
Copy link
Copy Markdown

通过迁移 https://github.com/omron-sinicx/crystalformer 项目实现 CrystalFormer 的PaddlePaddle版本复现。

主要改动

  1. 新增 ppmat/models/crystalformer/ 模型目录 — CrystalFormer编码器实现,包括高斯RBF、晶格距离计算、周期注意力机制
  2. 新增 property_prediction/configs/crystalformer/ 训练配置
  3. 新增 test/crystalformer/ 测试代码 — 14个单元测试,覆盖各子模块和完整前向/反向传播

模型特性

  • 基于Transformer的晶体结构编码器,支持周期性注意力
  • 高斯径向基函数(RBF)距离编码
  • 晶格感知距离计算
  • 基于PaddleMaterials标准API
  • 已注册到 ppmat/models/__init__.py

测试

cd test && python -m pytest crystalformer/ -v
# 14 passed

参考链接

cloudforge1 and others added 5 commits March 28, 2026 10:00
Implement Lattice-aware Transformer for crystal property prediction.
Includes GaussianRBF, LatticeDistanceComputer, LatticeAttention, and
14 unit tests covering periodic distances and crystal batching.

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
- Expand class docstring with explicit simplification details
- Update README with lattice_range explanation
- Note graph converter compatibility in config

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