Skip to content

Add a --write_distogram flag to save the distogram in .npz (AF3 mimic) - #699

Open
Jahaciel12 wants to merge 1 commit into
jwohlwend:mainfrom
Jahaciel12:feature/write-distogram
Open

Add a --write_distogram flag to save the distogram in .npz (AF3 mimic)#699
Jahaciel12 wants to merge 1 commit into
jwohlwend:mainfrom
Jahaciel12:feature/write-distogram

Conversation

@Jahaciel12

Copy link
Copy Markdown

The distogram head is run on every prediction but its output stays inside the forward pass, so the predicted distance distribution is not reachable. Carry the logits through predict_step and dump them next to the models, as predictions//distogram_.npz, together with the annotation of their token axes.

The distogram is a trunk output, shared by the diffusion samples of a prediction, so one file is written per input rather than one per sample. Boltz-2 predicts a stack of distograms where Boltz-1 predicts a single one, and the stacking axis is dropped when it holds one distogram.

The distogram head is run on every prediction but its output stays inside
the forward pass, so the predicted distance distribution is not reachable
from the CLI. Carry the logits through predict_step and dump them next to
the models, as predictions/<id>/distogram_<id>.npz, together with the
annotation of their token axes.

The distogram is a trunk output, shared by the diffusion samples of a
prediction, so one file is written per input rather than one per sample.
Boltz-2 predicts a stack of distograms where Boltz-1 predicts a single
one, and the stacking axis is dropped when it holds one distogram.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant