Skip to content

v0.4.0

Latest

Choose a tag to compare

@Rette66 Rette66 released this 27 Nov 07:14
· 3 commits to main since this release
393a5f1

兼容性

  • 支持 Python 3.10、3.12 和 3.14,扩大了 NumPy 和 PyTorch 的兼容范围。Python 3.10 和 3.12 的 PyTorch 下限为 2.6,Python 3.14 的下限为 2.9。
  • 安装 KPP 时会自动安装兼容的 Kaiwu SDK。Python 3.12 和 3.14 使用 Kaiwu 1.4.4,Python 3.10 继续兼容部分旧版 SDK,已撤回的 1.4.2 除外。

新增

  • 新增 QDEQ,支持使用 Kaiwu Ising 求解器求解深度平衡模型的不动点,并提供时间序列预测示例。
  • 新增分子设计示例,展示如何使用 KPP 的 RBM 和 BM 生成候选分子。

修复与文档

  • 修复 BM 和 RBM 在设备迁移后使用错误设备的问题,并修复全连接 BM 的 Ising 偏置计算和 GBRBM 的参数初始化。
  • 修复 QVAE 加载检查点时的数据集均值恢复,训练时可分别记录重建损失和 KL 损失。
  • 修复 Q-Diffusion 重采样时的候选上下文处理,并使 MAIFS 的能量计算与交给 Kaiwu 的 QUBO 最小化目标一致。
  • 修复手写数字示例的数据划分和 QVAE MNIST 示例的设备放置,更新中英文教程与安装说明。

Compatibility

  • KPP now supports Python 3.10, 3.12, and 3.14 with wider NumPy and PyTorch compatibility. The minimum PyTorch version is 2.6 on Python 3.10 and 3.12, and 2.9 on Python 3.14.
  • Installing KPP also installs a compatible Kaiwu SDK. Python 3.12 and 3.14 use Kaiwu 1.4.4. Python 3.10 continues to support selected older SDK releases, excluding the yanked 1.4.2 release.

New Features

  • Added QDEQ, a deep equilibrium layer that can use Kaiwu Ising solvers to find fixed points, with a time series forecasting example.
  • Added a molecular design example that uses KPP's RBM and BM models to generate candidate molecules.

Fixes and Documentation

  • Fixed tensor placement after moving BM and RBM models between devices, Ising bias calculation in the fully connected BM, and parameter initialization in GBRBM.
  • Fixed QVAE dataset mean restoration from checkpoints and made reconstruction and KL losses available separately in training logs.
  • Fixed candidate context handling during Q-Diffusion resampling and aligned MAIFS energy calculations with the QUBO minimization objective passed to Kaiwu.
  • Fixed data splitting in digit recognition examples and device placement in the QVAE MNIST example, and updated the Chinese and English tutorials and installation guides.