MCPcopy Create free account

hub / github.com/Hzfinfdu/Diffusion-BERT / functions

Functions340 in github.com/Hzfinfdu/Diffusion-BERT

Method__init__
(self, config)
models/modeling_bert.py:1166
Method__init__
(self, config)
models/modeling_bert.py:1301
Method__init__
(self, config)
models/modeling_bert.py:1412
Method__init__
(self, config)
models/modeling_bert.py:1517
Method__init__
(self, config)
models/modeling_bert.py:1621
Method__init__
(self, config)
models/modeling_bert.py:1719
Method__init__
(self, config)
models/modeling_bert.py:1806
Method__init__
(self, config)
models/modeling_roberta.py:73
Method__init__
(self, config, position_embedding_type=None)
models/modeling_roberta.py:161
Method__init__
(self, config)
models/modeling_roberta.py:289
Method__init__
(self, config, position_embedding_type=None)
models/modeling_roberta.py:304
Method__init__
(self, config)
models/modeling_roberta.py:354
Method__init__
(self, config)
models/modeling_roberta.py:370
Method__init__
(self, config)
models/modeling_roberta.py:472
Method__init__
(self, config)
models/modeling_roberta.py:570
Method__init__
(self, config, add_pooling_layer=True)
models/modeling_roberta.py:714
Method__init__
(self, config)
models/modeling_roberta.py:888
Method__init__
(self, config)
models/modeling_roberta.py:1040
Method__init__
(self, config)
models/modeling_roberta.py:1137
Method__init__
(self, config)
models/modeling_roberta.py:1171
Method__init__
(self, config)
models/modeling_roberta.py:1271
Method__init__
(self, config)
models/modeling_roberta.py:1365
Method__init__
(self, config)
models/modeling_roberta.py:1445
Method__init__
(self, config)
models/modeling_roberta.py:1475
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:204
Method__init__
(self, config, position_embedding_type=None)
models/modeling_bert_new_timestep.py:265
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:392
Method__init__
(self, config, position_embedding_type=None)
models/modeling_bert_new_timestep.py:406
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:455
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:470
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:583
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:683
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:698
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:715
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:735
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:745
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:755
Method__init__
(self, config, add_pooling_layer=True)
models/modeling_bert_new_timestep.py:916
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:1090
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:1198
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:1333
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:1444
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:1549
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:1653
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:1751
Method__init__
(self, config)
models/modeling_bert_new_timestep.py:1838
Method__repr__
(self)
diffusion_word_freq.py:29
Method__repr__
(self)
diffusion_condition.py:29
Method_convert_to_features_original
(example_batch, tokenizer)
dataloader.py:39
Method_generate_examples
This function returns the examples in the raw (text) form.
conditional_data/Q-T/Q-T.py:32
Method_generate_examples
This function returns the examples in the raw (text) form.
conditional_data/qqp/qqp.py:32
Method_info
(self)
conditional_data/Q-T/Q-T.py:7
Method_info
(self)
conditional_data/qqp/qqp.py:7
Method_init_weights
Initialize the weights
models/modeling_bert.py:747
Method_init_weights
Initialize the weights
models/modeling_roberta.py:595
Method_init_weights
Initialize the weights
models/modeling_bert_new_timestep.py:778
Method_load
(self, task_name, split)
dataloader.py:156
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
models/modeling_bert.py:903
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
models/modeling_roberta.py:732
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
models/modeling_bert_new_timestep.py:934
Method_reorder_cache
(self, past, beam_idx)
models/modeling_bert.py:1288
Method_reorder_cache
(self, past, beam_idx)
models/modeling_roberta.py:1027
Method_reorder_cache
(self, past, beam_idx)
models/modeling_bert_new_timestep.py:1320
Method_set_gradient_checkpointing
(self, module, value=False)
models/modeling_bert.py:763
Method_set_gradient_checkpointing
(self, module, value=False)
models/modeling_roberta.py:611
Method_set_gradient_checkpointing
(self, module, value=False)
models/modeling_bert_new_timestep.py:794
Method_split_generators
(self, dl_manager)
conditional_data/Q-T/Q-T.py:18
Method_split_generators
(self, dl_manager)
conditional_data/qqp/qqp.py:18
Method_tie_weights
(self)
models/modeling_roberta.py:1156
Methodadd_original_src_length
(self, example, tokenizer)
dataloader.py:64
Methodadd_prompt
(example)
dataloader.py:108
Methodadd_prompt
(example)
dataloader.py:121
Methodadd_prompt
(example)
dataloader.py:133
Methodadd_prompt
(example)
dataloader.py:144
Functioncollate_fn
(batch_input)
DDP_main.py:162
Functioncollate_fn
(batch_input)
predict_downstream_condition.py:118
Functioncollate_fn
(batch_input)
compute_elbo.py:148
Methodcollate_fn
(batch_input, tokenizer)
dataloader.py:84
Functioncompute_quality_in_conditional_gen
(task_name, file_name)
compute_metric.py:55
Functioncompute_quality_in_unconditional_gen
(file_name)
compute_metric.py:78
Methodconvert_to_features
(example_batch, tokenizer)
dataloader.py:23
Methodconvert_to_features
(example_batch, tokenizer)
dataloader.py:73
Methodcreate_custom_forward
(module)
models/modeling_bert.py:594
Methodcreate_custom_forward
(module)
models/modeling_roberta.py:511
Methodcreate_custom_forward
(module)
models/modeling_bert_new_timestep.py:623
Functioncreate_discrete_diffusion_schedule
Creates a callable schedule object to use for diffusion rates. Args: kind: str, one of 'standard', 'linear', 'cosine', 'mutual_information'. I
diffusion_word_freq.py:472
Functioncreate_discrete_diffusion_schedule
Creates a callable schedule object to use for diffusion rates. Args: kind: str, one of 'standard', 'linear', 'cosine', 'mutual_information'. I
diffusion_condition.py:507
Functioncross_entropy_with_probs
Compute cross entropy for a given distribution and targets. Cross entropy is taken over the last axis. Remaining axes are unchanged. Args:
losses.py:21
Methodcustom_forward
(*inputs)
models/modeling_bert.py:595
Methodcustom_forward
(*inputs)
models/modeling_roberta.py:512
Methodcustom_forward
(*inputs)
models/modeling_bert_new_timestep.py:624
Methodcustom_product_fn
Returns product of first n matrices. Only supported for beta constant.
diffusion_word_freq.py:378
Methodcustom_product_fn
Returns product of first n matrices. Only supported for beta constant.
diffusion_condition.py:413
Functiondenoise_fn
(targets, timestep, attention_mask)
DDP_main.py:190
Functiondenoise_fn
(input_ids, corrupted_input_ids, timestep, attention_mask, target_mask)
predict_downstream_condition.py:104
Functiondenoise_fn
(targets, timestep)
compute_elbo.py:121
Functiondenoise_fn
(input_ids, corrupted_input_ids, timestep, attention_mask, target_mask)
DDP_main_conditional.py:169
Functiondiscrete_diffusion_elbo
Computes the ELBO likelihood bound for discrete diffusion models. Pseudocode: 1. starting at t = T and going towards t = 0: 2. sample P(x_
diffusion_word_freq.py:745
Functiondiscrete_diffusion_elbo
Computes the ELBO likelihood bound for discrete diffusion models. Pseudocode: 1. starting at t = T and going towards t = 0: 2. sample P(x_
diffusion_condition.py:764
Functiondiscrete_diffusion_predict_fn
Predict an image or text from a diffusion model. Args: params: a PyTree of parameters for the model. rng_key: an RNG key. targets: igno
diffusion_word_freq.py:846
← previousnext →101–200 of 340, ranked by callers