Skip to content

Commit

Permalink
add confg repro note and rollback mean calc (#309)
Browse files Browse the repository at this point in the history
Co-authored-by: zhougengmo <[email protected]>
  • Loading branch information
ZhouGengmo and zhougengmo authored Jan 2, 2025
1 parent 72054a0 commit 35efc65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions unimol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ For QM7, QM8 and QM9, we set `loss_func=finetune_smooth_mae`.
Molecular conformation generation
------------------

**NOTE**: If you would like to reproduce the results from the paper, you can switch to commit 37b0198 or an earlier commit by using the following command:
```
git checkout 37b0198cf68a349a854410a06777c2e7dacbce5e
```
**Reproduction**

1. Finetune Uni-Mol pretrained model on the training set of the conformation generation task:

```bash
Expand Down
2 changes: 1 addition & 1 deletion unimol/unimol/losses/reg_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def reduce_metrics(logging_outputs, split="valid") -> None:
.numpy()
.mean(axis=1)
)
agg_mae = np.abs(y_pred - y_true).mean(axis=0).mean(axis=1)
agg_mae = np.abs(y_pred - y_true).mean()
metrics.log_scalar(f"{split}_agg_mae", agg_mae, sample_size, round=4)


Expand Down

0 comments on commit 35efc65

Please sign in to comment.