facebookresearch / esm

Evolutionary Scale Modeling (esm): Pretrained language models for proteins
MIT License
3.26k stars 643 forks source link

Fix sampling error with partial_seq #438

Closed chloechsu closed 1 year ago

chloechsu commented 1 year ago

Disable incremental state when sampling with partial_seq. Incremental state only works properly when decoding the full sequence autoregressively.