Skip to main content

Module vqvae

Module vqvae 

Source
Expand description

ESM3 VQ-VAE structure token encoder and decoder (vqvae.py port).

StructureTokenEncoder maps backbone coordinates to discrete structure tokens via a 2-layer geometric mini-transformer + nearest-neighbour VQ codebook lookup.

StructureTokenDecoder is stubbed (not needed for ESM3 inference).

Structsยง

StructureTokenDecoder
Stub for the structure token decoder. Not needed for ESM3 inference.
StructureTokenEncoder
Encodes backbone coordinates into discrete structure tokens via a 2-layer geometric mini-transformer followed by nearest-neighbour VQ codebook lookup.
VqVaeConfig