Publish RIDE-RL reproducibility artifacts
Browse files- LICENSE +201 -0
- README.md +43 -0
- SHA256SUMS +4 -0
- config/rl_v6f_t75.yaml +179 -0
- policy_step000390.pt +3 -0
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: pytorch
|
| 4 |
+
tags:
|
| 5 |
+
- rna
|
| 6 |
+
- inverse-folding
|
| 7 |
+
- reinforcement-learning
|
| 8 |
+
- diffusion
|
| 9 |
+
- grpo
|
| 10 |
+
---
|
| 11 |
+
# RIDE-RL v6f step 390
|
| 12 |
+
|
| 13 |
+
This repository contains the selected RIDE-RL post-training checkpoint used in the 153-target evaluation.
|
| 14 |
+
|
| 15 |
+
## Files
|
| 16 |
+
|
| 17 |
+
- `policy_step000390.pt`: PyTorch checkpoint with a single top-level `model` state dictionary.
|
| 18 |
+
- `config/rl_v6f_t75.yaml`: exact long-training configuration used for run v6f.
|
| 19 |
+
- `SHA256SUMS`: file checksums.
|
| 20 |
+
|
| 21 |
+
## Model and training
|
| 22 |
+
|
| 23 |
+
The policy starts from the pretrained RIDE backbone and is post-trained with grouped policy updates and a geometric structural reward. The v6f run used 527 targets, 3 epochs, group size 8, 4 targets per update, learning rate `2e-4`, and 395 optimizer updates. Validation was run every 10 updates on 153 targets.
|
| 24 |
+
|
| 25 |
+
The selected snapshot is step 390 (the last scheduled validation snapshot; training ended at step 395). On the 153-target, candidate-0 evaluation it achieved GDT-TS 0.3827, C4'-TM 0.3400, RMSD 7.9196 Å, C1'-TM 0.3855 (n=126), success rate 0.3007, and sequence recovery 0.5056. See the project repository for evaluation code and metric definitions.
|
| 26 |
+
|
| 27 |
+
## Loading
|
| 28 |
+
|
| 29 |
+
```python
|
| 30 |
+
import torch
|
| 31 |
+
checkpoint = torch.load("policy_step000390.pt", map_location="cpu")
|
| 32 |
+
state_dict = checkpoint["model"]
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
The architecture and runtime are provided by the RIDE-RL code repository: https://github.com/Gabrile166/RIDE-RL
|
| 36 |
+
|
| 37 |
+
## Dependencies and license
|
| 38 |
+
|
| 39 |
+
This checkpoint is a derivative of the Apache-2.0 RIDER/RIDE implementation and is released under Apache-2.0. It does not include RhoFold+, USalign, EternaFold, or other third-party weights/binaries; obtain those from their original sources under their own terms.
|
| 40 |
+
|
| 41 |
+
## Citation
|
| 42 |
+
|
| 43 |
+
Please cite the upstream RIDER work and this repository when using the checkpoint.
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
dcebb89289181a0946116b899ef4eafd75cd64637b321e93a350e6c12fdb7cbf policy_step000390.pt
|
| 2 |
+
3907ad0b8615595024f82dd505759e452e1ff0493b2ae5389d39ea042d04384d config/rl_v6f_t75.yaml
|
| 3 |
+
c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
|
| 4 |
+
d804550e4ff4ad2785d7a1f58e3b6d159ae835d64baa243e16ad6ae383e9f376 README.md
|
config/rl_v6f_t75.yaml
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ===== 跑5 (v6f): 基于跑4(v6e) events.jsonl 实测动态调参 =====
|
| 2 |
+
# 与跑2/3/4 相比只改 4 项, reward preset / group_size / batch / nft_beta /
|
| 3 |
+
# reference_weight / z_clip / seed / shuffle_seed 一律不动。
|
| 4 |
+
#
|
| 5 |
+
# 1) lr 1e-4 -> 2e-4
|
| 6 |
+
# 依据: v6e 全程 grad_norm 0.058-0.086, 而 grad_clip_norm=1.0 -- 比阈值小
|
| 7 |
+
# 一个数量级, 裁剪一次都没触发。翻倍后预期 ~0.12-0.17, 仍远低于 1.0。
|
| 8 |
+
# 2) lr_min_ratio 0.1 -> 0.3
|
| 9 |
+
# 依据: v6e 末段 lr 已衰到 1e-5, 但 batch/good_rate 在 230-263 段达到全程
|
| 10 |
+
# 最高 0.4744, reward_mean 仍在 0.52 高位 -- 训练是被 lr 掐死的, 不是收敛的。
|
| 11 |
+
# 0.3 让 lr 底线抬到 6e-5。
|
| 12 |
+
# 3) epochs 2 -> 3, max_outer_steps / lr_total_steps 263 -> 395
|
| 13 |
+
# 依据: reward_mean 分段 0.4231->0.5233 单调上行未饱和, advantage 未退化。
|
| 14 |
+
# 4) validation.keep_runs 3 -> 4
|
| 15 |
+
# 依据: v6e 曲线真峰值在 step130 (GDT 0.376947), 但 top3 预算把它挤掉了,
|
| 16 |
+
# 峰值权重不存在、无法评测。
|
| 17 |
+
# ============================================================
|
| 18 |
+
data:
|
| 19 |
+
pool_manifest: artifacts/evaluation_pools/train_final_v4.pt
|
| 20 |
+
ride_checkpoint: saved_models/checkpoint.h5
|
| 21 |
+
processed_data: ../data/processed.pt
|
| 22 |
+
split_file: ../data/das_split.pt
|
| 23 |
+
condition_noise_scale: 0.0
|
| 24 |
+
condition_snapshot_enabled: false
|
| 25 |
+
x0_representation: one_hot_01
|
| 26 |
+
ride_model:
|
| 27 |
+
node_in_dim:
|
| 28 |
+
- 15
|
| 29 |
+
- 4
|
| 30 |
+
node_h_dim:
|
| 31 |
+
- 256
|
| 32 |
+
- 24
|
| 33 |
+
edge_in_dim:
|
| 34 |
+
- 131
|
| 35 |
+
- 3
|
| 36 |
+
edge_h_dim:
|
| 37 |
+
- 128
|
| 38 |
+
- 4
|
| 39 |
+
num_layers: 5
|
| 40 |
+
drop_rate: 0.5
|
| 41 |
+
out_dim: 4
|
| 42 |
+
time_cond: true
|
| 43 |
+
noise_schedule:
|
| 44 |
+
schedule: linear
|
| 45 |
+
continuous_beta_0: 0.1
|
| 46 |
+
continuous_beta_1: 20.0
|
| 47 |
+
eps: 0.001
|
| 48 |
+
rollout:
|
| 49 |
+
group_size: 8
|
| 50 |
+
sampler:
|
| 51 |
+
name: x0_renoise
|
| 52 |
+
n_steps: 50
|
| 53 |
+
version: v1
|
| 54 |
+
temperature:
|
| 55 |
+
initial: 1.0
|
| 56 |
+
min: 0.2
|
| 57 |
+
max: 1.5
|
| 58 |
+
step: 0.1
|
| 59 |
+
rescue:
|
| 60 |
+
max_rounds: 1
|
| 61 |
+
min_unique_sequences: 2
|
| 62 |
+
min_valid_sequences: 2
|
| 63 |
+
reward:
|
| 64 |
+
oracle:
|
| 65 |
+
backend: local_jsonl_worker
|
| 66 |
+
python: ${RHOFOLD_PYTHON:-python}
|
| 67 |
+
worker_script: scripts/rhofold_oracle_worker.py
|
| 68 |
+
ckpt: ${RHOFOLD_CHECKPOINT:-artifacts/models/rhofold/RhoFold_pretrained.pt}
|
| 69 |
+
output_dir: outputs/rl_v6f/oracle
|
| 70 |
+
timeout_sec: 600
|
| 71 |
+
device: cuda:0
|
| 72 |
+
fake: false
|
| 73 |
+
metric_cache:
|
| 74 |
+
dir: ${RIDE_RL_CACHE:-cache/rl_metrics}
|
| 75 |
+
metric_version: ride_evaluator_v2_geo6
|
| 76 |
+
alignment_config: c4p_kabsch_centered
|
| 77 |
+
composer:
|
| 78 |
+
# === A/B 实验的唯一变量 ===
|
| 79 |
+
# A 组: balanced_cosine_v1 = 三分量加权算术平均
|
| 80 |
+
# B 组: geometric_v3 = 六分量加权几何平均, 权重由
|
| 81 |
+
# scripts/reward/reward_design_v3.py 在 1224 条真实候选上求解得到
|
| 82 |
+
# (gdt .25 / tm .30 / rmsd .30 / scmcc .05 / edefect .05 / composition .05)
|
| 83 |
+
# alignment 0.9608 (门槛 0.70), discrimination 1.2061 (门槛 1.20, 唯一紧约束)
|
| 84 |
+
# good 门槛由 preset 内部的 threshold_position=0.60 推出, 不再从这里读,
|
| 85 |
+
# 保留字段只为与 A 组配置结构完全对齐。
|
| 86 |
+
preset: geometric_v3
|
| 87 |
+
good:
|
| 88 |
+
gdt_ts: 0.5
|
| 89 |
+
tm_score: 0.5
|
| 90 |
+
rmsd: 4.0
|
| 91 |
+
advantage:
|
| 92 |
+
group_normalize: true
|
| 93 |
+
z_clip: 2.0
|
| 94 |
+
scale:
|
| 95 |
+
kind: ema
|
| 96 |
+
decay: 0.95
|
| 97 |
+
epsilon: 1.0e-06
|
| 98 |
+
min_valid: 2
|
| 99 |
+
trainer:
|
| 100 |
+
loss:
|
| 101 |
+
nft_beta: 0.1
|
| 102 |
+
reference_weight: 0.02
|
| 103 |
+
k_t: 8
|
| 104 |
+
weighting: uniform_eps
|
| 105 |
+
residual_normalization: none
|
| 106 |
+
divide_by_beta: true
|
| 107 |
+
optim:
|
| 108 |
+
lr: 0.0002
|
| 109 |
+
weight_decay: 0.0
|
| 110 |
+
grad_clip_norm: 1.0
|
| 111 |
+
gradient_accumulation_steps: 1
|
| 112 |
+
amp: false
|
| 113 |
+
microbatch_size: 1
|
| 114 |
+
lr_schedule: warmup_cosine
|
| 115 |
+
lr_warmup_ratio: 0.05
|
| 116 |
+
lr_min_ratio: 0.3
|
| 117 |
+
lr_total_steps: 395
|
| 118 |
+
ema:
|
| 119 |
+
decay_max: 0.999
|
| 120 |
+
update_interval: 1
|
| 121 |
+
runtime:
|
| 122 |
+
seed: 0
|
| 123 |
+
device: cuda
|
| 124 |
+
mode: train
|
| 125 |
+
ranks_per_target: 1
|
| 126 |
+
# 527 unique targets * 3 passes / 4 per batch = 395 updates (1581 // 4).
|
| 127 |
+
# engine.py: total_steps = len(targets) // batch_targets, so max_outer_steps
|
| 128 |
+
# must equal that or the walk clamps it.
|
| 129 |
+
epochs: 3
|
| 130 |
+
shuffle_targets: true
|
| 131 |
+
shuffle_seed: 20260826
|
| 132 |
+
budget:
|
| 133 |
+
max_outer_steps: 395
|
| 134 |
+
max_oracle_calls: 200000
|
| 135 |
+
max_wall_hours: 72.0
|
| 136 |
+
checkpoint_every_oracle_calls: 128
|
| 137 |
+
validation:
|
| 138 |
+
enabled: true
|
| 139 |
+
# Held-out 153, disjoint from the 527 training pool (verified zero sequence overlap).
|
| 140 |
+
pool_manifest: artifacts/evaluation_pools/test_final_v3_std.pt
|
| 141 |
+
config: configs/diffv3_te0.yaml
|
| 142 |
+
# t75 only has 4 usable cards (PCI 3E:00.0 / 3F:00.0 are disabled -- they drop
|
| 143 |
+
# the driver under load), so validation shares them with training instead of
|
| 144 |
+
# getting spare cards of its own. This is safe here because the worker is
|
| 145 |
+
# fully detached (start_new_session, torchrun env stripped) and never joins the
|
| 146 |
+
# process group: the earlier stall came from a mismatched barrier on the
|
| 147 |
+
# critical path, not from co-residency. Memory fits -- RhoFold+ peaks under
|
| 148 |
+
# 11 GiB and training holds roughly 10 GiB of a 24 GiB 3090.
|
| 149 |
+
# 4 shards over 4 cards keeps every card busy during the fold phase.
|
| 150 |
+
devices: "cuda:0,cuda:1,cuda:2,cuda:3"
|
| 151 |
+
test_freq: 10
|
| 152 |
+
# 4 instead of 3: v6e 的真峰值在 step130, 按 top-2+latest 的 top3 预算被挤掉。
|
| 153 |
+
keep_runs: 4
|
| 154 |
+
before_train: true
|
| 155 |
+
n_samples: 8
|
| 156 |
+
timeout_sec: 7200.0
|
| 157 |
+
usalign_binary: ../third_party/USalign/USalign
|
| 158 |
+
logging:
|
| 159 |
+
jsonl: outputs/rl_v6f/train.jsonl
|
| 160 |
+
wandb:
|
| 161 |
+
enabled: true
|
| 162 |
+
project: ride-rl
|
| 163 |
+
entity: gabriel166714-fudan-university
|
| 164 |
+
name: v6f-t75-geometric-v3-lr2e4-min03-3ep-395step
|
| 165 |
+
tags:
|
| 166 |
+
- v6
|
| 167 |
+
- 4gpu
|
| 168 |
+
- ddp
|
| 169 |
+
- batch4
|
| 170 |
+
- grpo
|
| 171 |
+
- geometric_v3
|
| 172 |
+
- train527
|
| 173 |
+
- test153
|
| 174 |
+
checkpoint:
|
| 175 |
+
dir: outputs/rl_v6f/checkpoints
|
| 176 |
+
save_latest: true
|
| 177 |
+
evaluation:
|
| 178 |
+
deterministic_anchor_temperature: 0.0
|
| 179 |
+
group_size: 2
|
policy_step000390.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dcebb89289181a0946116b899ef4eafd75cd64637b321e93a350e6c12fdb7cbf
|
| 3 |
+
size 41025394
|