atomgen.models.tokengt module#
Implementation of the TokenGT model.
- class InitialStructure2RelaxedEnergy(config)[source]#
Bases:
TransformerPreTrainedModel
Transformer with an energy head on top for relaxed energy prediction.
- class InitialStructure2RelaxedStructure(config)[source]#
Bases:
TransformerPreTrainedModel
Transformer with an coordinate head on top for relaxed structure prediction.
- class InitialStructure2RelaxedStructureAndEnergy(config)[source]#
Bases:
TransformerPreTrainedModel
Initial structure to relaxed structure and energy prediction model.
Transformer with an coordinate and energy head on top for relaxed structure and energy prediction.
- class ParallelBlock(dim, num_heads, mlp_ratio=4, dropout=0.0)[source]#
Bases:
Module
Parallel transformer block.
- class Structure2EnergyAndForces(config)[source]#
Bases:
TransformerPreTrainedModel
Structure to energy and forces prediction model.
Transformer with an energy and forces head on top for energy and forces prediction.
- class TransformerConfig(vocab_size=123, dim=768, num_heads=12, depth=12, mlp_ratio=4, k=16, sigma=0.03, type_id_dim=64, dropout=0.0, mask_token_id=0, pad_token_id=119, bos_token_id=120, eos_token_id=121, cls_token_id=122, gradient_checkpointing=False, **kwargs)[source]#
Bases:
PretrainedConfig
Configuration class to store the configuration of a TokenGT model.
- class TransformerForCoordinateAM(config)[source]#
Bases:
TransformerPreTrainedModel
Transformer with an atom coordinate head on top for coordinate denoising.
- class TransformerForMaskedAM(config)[source]#
Bases:
TransformerPreTrainedModel
Transformer with an atom modeling head on top for masked atom modeling.
- class TransformerModel(config)[source]#
Bases:
TransformerPreTrainedModel
Transformer model for atom modeling.