MCPcopy Create free account

hub / github.com/bytedance/dplm / functions

Functions1,008 in github.com/bytedance/dplm

Methodcompute_loss
(self, batch, weighting="linear")
src/byprot/models/dplm2/dplm2.py:394
Methodcompute_loss
(self, batch, weighting="constant")
src/byprot/models/dplm/dplm.py:161
Methodcompute_loss
( self, batch, weighting="constant", encoder_out=None, tokens=None,
src/byprot/models/dplm/modules/dplm_adapter.py:95
Functioncompute_plddt
(logits: torch.Tensor)
src/byprot/models/structok/modules/loss.py:467
Functioncompute_renamed_ground_truth
Find optimal renaming of ground truth based on the predicted positions. Alg. 26 "renameSymmetricGroundTruthAtoms" This renamed ground truth
src/byprot/models/structok/modules/loss.py:1466
Functioncompute_validation_metrics
(batch, outputs, superimposition_metrics=False)
src/byprot/models/structok/modules/loss.py:76
Functioncompute_violation_metrics_np
( batch: Dict[str, np.ndarray], atom14_pred_positions: np.ndarray, violations: Dict[str, np.ndarra
src/byprot/models/structok/modules/loss.py:1424
Methodconfigure_optimizers
Choose what optimizers and learning-rate schedulers to use in your optimization. Normally you'd need one. But in the case of GANs or s
src/byprot/tasks/__init__.py:216
Methodconfigure_optimizers
Choose what optimizers and learning-rate schedulers to use in your optimization. Normally you'd need one. But in the case of GANs or s
src/byprot/tasks/struct_tokenizer/structok.py:327
Methodcreate_buffers
analysis/TMscore.cpp:1669
Functioncreate_rigid
(rots, trans)
src/byprot/datamodules/pdb_dataset/utils.py:194
Methodcrop_by_conf
(processed_feats, plddt, threshold=70)
src/byprot/datamodules/pdb_dataset/pdb_datamodule.py:406
Methoddataset_cfg
(self)
src/byprot/datamodules/pdb_dataset/pdb_datamodule.py:212
Functiondataset_creation
(dataset_class, cfg, task)
src/byprot/utils/protein/utils.py:87
Functiondecorator
(cls)
src/byprot/tasks/__init__.py:291
Functiondecorator
(cls)
src/byprot/models/__init__.py:17
Functiondecorator
(cls)
src/byprot/datamodules/__init__.py:17
Methoddestroy_buffers
analysis/TMscore.cpp:1700
Methoddevice
(self)
src/byprot/utils/protein/evaluator_dplm2.py:142
Methoddevice
(self)
src/byprot/tasks/__init__.py:267
Methoddevice
(self)
src/byprot/models/structok/modules/folding_utils/decoder.py:428
Methoddevice_id
(self)
src/byprot/utils/protein/folding_model.py:34
Methoddevice_id
(self)
src/byprot/utils/protein/evaluator_dplm2.py:136
Functiondist_from_ca
(trans)
src/byprot/utils/protein/utils.py:577
Methoddtype
(self)
src/byprot/models/structok/modules/lfq.py:202
Methodema_scope
(self, context=None)
src/byprot/tasks/struct_tokenizer/structok.py:128
Methodempty_buffer
analysis/TMscore.cpp:2005
Functionentropy
(prob)
src/byprot/models/structok/modules/lfq.py:62
Functionesmfold_structure_module_only_150M
ESMFold baseline model using 150M ESM-2, 0 folding blocks. ESM-2 here is trained out to 500K updates. This is a model designed to test the ca
src/byprot/models/structok/modules/folding_utils/pretrained.py:109
Functionesmfold_structure_module_only_150M_270K
ESMFold baseline model using 150M ESM-2, 0 folding blocks. ESM-2 here is trained out to 270K updates. This is a model designed to test the ca
src/byprot/models/structok/modules/folding_utils/pretrained.py:119
Functionesmfold_structure_module_only_15B
ESMFold baseline model using 15B ESM-2, 0 folding blocks. ESM-2 here is trained out to 270K updates. The 15B parameter ESM-2 was not trained
src/byprot/models/structok/modules/folding_utils/pretrained.py:169
Functionesmfold_structure_module_only_35M
ESMFold baseline model using 35M ESM-2, 0 folding blocks. ESM-2 here is trained out to 500K updates. This is a model designed to test the cap
src/byprot/models/structok/modules/folding_utils/pretrained.py:89
Functionesmfold_structure_module_only_35M_270K
ESMFold baseline model using 35M ESM-2, 0 folding blocks. ESM-2 here is trained out to 270K updates. This is a model designed to test the cap
src/byprot/models/structok/modules/folding_utils/pretrained.py:99
Functionesmfold_structure_module_only_3B
ESMFold baseline model using 3B ESM-2, 0 folding blocks. ESM-2 here is trained out to 500K updates. This is a model designed to test the capa
src/byprot/models/structok/modules/folding_utils/pretrained.py:149
Functionesmfold_structure_module_only_3B_270K
ESMFold baseline model using 3B ESM-2, 0 folding blocks. ESM-2 here is trained out to 270K updates. This is a model designed to test the capa
src/byprot/models/structok/modules/folding_utils/pretrained.py:159
Functionesmfold_structure_module_only_650M
ESMFold baseline model using 650M ESM-2, 0 folding blocks. ESM-2 here is trained out to 500K updates. This is a model designed to test the ca
src/byprot/models/structok/modules/folding_utils/pretrained.py:129
Functionesmfold_structure_module_only_650M_270K
ESMFold baseline model using 650M ESM-2, 0 folding blocks. ESM-2 here is trained out to 270K updates. This is a model designed to test the ca
src/byprot/models/structok/modules/folding_utils/pretrained.py:139
Functionesmfold_structure_module_only_8M
ESMFold baseline model using 8M ESM-2, 0 folding blocks. ESM-2 here is trained out to 500K updates. This is a model designed to test the capa
src/byprot/models/structok/modules/folding_utils/pretrained.py:69
Functionesmfold_structure_module_only_8M_270K
ESMFold baseline model using 8M ESM-2, 0 folding blocks. ESM-2 here is trained out to 270K updates. This is a model designed to test the capa
src/byprot/models/structok/modules/folding_utils/pretrained.py:79
Functionesmfold_v0
ESMFold v0 model with 3B ESM-2, 48 folding blocks. This version was used for the paper (Lin et al, 2022). It was trained on all PDB chains un
src/byprot/models/structok/modules/folding_utils/pretrained.py:48
Functionesmfold_v1
ESMFold v1 model using 3B ESM-2, 48 folding blocks. ESMFold provides fast high accuracy atomic level structure prediction directly from the i
src/byprot/models/structok/modules/folding_utils/pretrained.py:58
Functionexists
(x)
src/byprot/models/structok/modules/gvp_encoder.py:10
Functionexists
(o)
src/byprot/datamodules/pdb_dataset/pdb_datamodule.py:61
Functionexperimentally_resolved_loss
( logits: torch.Tensor, atom37_atom_exists: torch.Tensor, all_atom_mask: torch.Tensor, resolut
src/byprot/models/structok/modules/loss.py:1573
Functionextract_clusters_from_maxcluster_out
(file_path)
src/byprot/utils/protein/utils.py:758
Functionextras
Applies optional utilities, controlled by config flags. Utilities: - Ignoring python warnings - Rich config printing
src/byprot/utils/__init__.py:75
Methodfeaturize
(self, raw_batch, **kwds)
src/byprot/datamodules/dataset/data_utils.py:105
Methodfeaturizer
(self)
src/byprot/datamodules/dataset/data_utils.py:102
Methodfill_buffer
analysis/TMscore.cpp:2086
Functionfilterfn
(s, axis=None)
src/byprot/utils/io.py:128
Methodfind_class
(self, module, name)
src/byprot/datamodules/pdb_dataset/utils.py:187
Functionfind_structural_violations_np
( batch: Dict[str, np.ndarray], atom14_pred_positions: np.ndarray, config: ml_collections.ConfigDi
src/byprot/models/structok/modules/loss.py:1327
Functionfinish
Makes sure everything closed properly.
src/byprot/utils/__init__.py:203
Functionflatten_dict
Flattens a nested dict.
src/byprot/utils/protein/utils.py:285
Methodfolding_model
(self)
src/byprot/utils/protein/evaluator_dplm2.py:148
Methodfopen
analysis/TMscore.cpp:2403
Methodfork
analysis/TMscore.cpp:1515
Methodforward
scores: [N, ..., C], unnormalized scores target: [N, ...] mask: [N, ...], where elements with `True` are allowed and `False`
src/byprot/modules/cross_entropy.py:38
Methodforward
scores: [N, L, C], unnormalized scores target: [N, L] coord_mask: FloatTensor [N, L], where elements with `True` are allowed
src/byprot/modules/cross_entropy.py:89
Methodforward
scores: [N, L, C], unnormalized scores target: [N, L] coord_mask: FloatTensor [N, L], where elements with `True` are allowed
src/byprot/modules/cross_entropy.py:156
Methodforward
scores: [N, L, C], unnormalized scores target: [N, L] coord_mask: FloatTensor [N, L], where elements with `True` are allowed
src/byprot/modules/cross_entropy.py:247
Methodforward
Args: model_outs (dict): dict of loss_name: model_out targets (_type_): _description_
src/byprot/modules/__init__.py:31
Methodforward
(self, batch)
src/byprot/tasks/__init__.py:204
Methodforward
(self, batch, return_pred_indices=True, decoder_kwargs={})
src/byprot/models/structok/structok_lfq.py:113
Methodforward
( self, out, batch, codebook_loss, global_step=None, predicted
src/byprot/models/structok/modules/loss.py:1711
Methodforward
(self, out, batch, _return_breakdown=False)
src/byprot/models/structok/modules/loss.py:1777
Methodforward
( self, x, padding_mask=None, repr_layers=[], need_head_weights=False )
src/byprot/models/structok/modules/nn.py:37
Methodforward
(self, model)
src/byprot/models/structok/modules/ema.py:35
Methodforward
einstein notation. b - batch n - sequence (or flattened spatial dimensions) d - feature dimension, which is also log2(codeboo
src/byprot/models/structok/modules/lfq.py:272
Methodforward
(self, backb_positions, mask, padding_mask, **kwargs)
src/byprot/models/structok/modules/gvp_encoder.py:31
Methodforward
(self, backb_positions, mask, padding_mask, **kwargs)
src/byprot/models/structok/modules/gvp_encoder.py:70
Methodforward
Inputs the output of the encoder network z and maps it to a discrete one-hot vector that is the index of the closest embedding vector
src/byprot/models/structok/modules/vqvae.py:45
Methodforward
(self, z, temp=None, return_logits=False)
src/byprot/models/structok/modules/vqvae.py:202
Methodforward
( self, z, mask, temp=None, rescale_logits=False, return_logits=False )
src/byprot/models/structok/modules/vqvae.py:332
Methodforward
(self, embed_id)
src/byprot/models/structok/modules/vqvae.py:441
Methodforward
(self, z)
src/byprot/models/structok/modules/vqvae.py:526
Methodforward
Basic self attention with optional mask and external pairwise bias. To handle sequences of different lengths, use mask. Inputs:
src/byprot/models/structok/modules/folding_utils/misc.py:210
Methodforward
(self, x: torch.Tensor)
src/byprot/models/structok/modules/folding_utils/misc.py:267
Methodforward
Inputs: sequence_state: B x L x sequence_state_dim Output: pairwise_state: B x L x L x pairwise_state_dim
src/byprot/models/structok/modules/folding_utils/misc.py:286
Methodforward
Inputs: pairwise_state: B x L x L x pairwise_state_dim Output: pairwise_bias: B x L x L x num_heads
src/byprot/models/structok/modules/folding_utils/misc.py:320
Methodforward
(self, x)
src/byprot/models/structok/modules/folding_utils/misc.py:346
Methodforward
Inputs: sequence_state: B x L x sequence_state_dim pairwise_state: B x L x L x pairwise_state_dim mask: B x L b
src/byprot/models/structok/modules/folding_utils/tri_self_attn_block.py:119
Methodforward
(self, a: torch.Tensor)
src/byprot/models/structok/modules/folding_utils/structure_module.py:75
Methodforward
Args: s: [*, C_hidden] single embedding s_initial: [*, C_hidden] single embedding as
src/byprot/models/structok/modules/folding_utils/structure_module.py:124
Methodforward
Args: s: [*, N_res, C_s] single representation z: [*, N_res, N_res, C_z] pair represe
src/byprot/models/structok/modules/folding_utils/structure_module.py:240
Methodforward
Args: [*, N_res, C_s] single representation Returns: [*, N_res, 6] update vector
src/byprot/models/structok/modules/folding_utils/structure_module.py:449
Methodforward
(self, s)
src/byprot/models/structok/modules/folding_utils/structure_module.py:474
Methodforward
(self, s)
src/byprot/models/structok/modules/folding_utils/structure_module.py:503
Methodforward
Args: evoformer_output_dict: Dictionary containing: "single": [*, N_r
src/byprot/models/structok/modules/folding_utils/structure_module.py:666
Methodforward
Input: residue_index: B x L tensor of indices (dytpe=torch.long) mask: B x L tensor of booleans Output:
src/byprot/models/structok/modules/folding_utils/trunk.py:92
Methodforward
Inputs: seq_feats: B x L x C tensor of sequence features pair_feats: B x L x L x C tensor of pai
src/byprot/models/structok/modules/folding_utils/trunk.py:188
Methodforward
( self, q: torch.Tensor, k: torch.Tensor, type_ids: torch.Tensor )
src/byprot/models/dplm2/modules/dplm2_modeling_esm.py:64
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.FloatTensor] = Non
src/byprot/models/dplm2/modules/dplm2_modeling_esm.py:95
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
src/byprot/models/dplm2/modules/dplm2_modeling_esm.py:230
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
src/byprot/models/dplm2/modules/dplm2_modeling_esm.py:279
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
src/byprot/models/dplm2/modules/dplm2_modeling_esm.py:367
Methodforward
( self, input_ids: Optional[torch.Tensor] = None, attention_mask: Optional[torch.Tenso
src/byprot/models/dplm2/modules/dplm2_modeling_esm.py:485
Methodforward
( self, input_ids=None, attention_mask=None, type_ids=None, inputs_emb
src/byprot/models/dplm2/modules/dplm2_modeling_esm.py:651
Methodforward
( self, q: torch.Tensor, k: torch.Tensor, type_ids: torch.Tensor )
src/byprot/models/dplm2/modules/dplm2_bit_modeling_esm.py:64
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.FloatTensor] = Non
src/byprot/models/dplm2/modules/dplm2_bit_modeling_esm.py:95
← previousnext →701–800 of 1,008, ranked by callers