MCPcopy Create free account

hub / github.com/UIC-Liu-Lab/CPT / functions

Functions124 in github.com/UIC-Liu-Lab/CPT

Methodget_input_embeddings
(self)
networks/adapter_mask/roberta_model.py:749
Methodget_lr
(self)
networks/adapter_mask/my_optimization.py:89
Methodget_output_embeddings
(self)
networks/adapter_mask/roberta_model.py:1010
Methodget_output_embeddings
(self)
networks/adapter_mask/roberta_model.py:1168
Functiongroup_texts
(examples)
posttrain.py:176
Functionlog_loss
(writer, loss_name='training loss', scalar_value=None, global_step=None)
utils/utils.py:12
Functionlookfor_model_finetune
(args)
utils/utils.py:122
Functionlookfor_model_posttrain
(args)
utils/utils.py:156
Functionmask
(roberta_model, t, s, adapter_type="sequential")
networks/adapter_mask/roberta_adapter.py:326
Methodmy_step
(self, type, t, mask_back)
networks/adapter_mask/MyAccelerator.py:12
Methodprepare_inputs_for_generation
(self, input_ids, past=None, attention_mask=None, **model_kwargs)
networks/adapter_mask/roberta_model.py:1126
Functionprepare_sequence_finetune
(args)
utils/utils.py:17
Functionprepare_sequence_posttrain
(args)
utils/utils.py:69
Methodsave_ppl
(self, t, u, perplexity)
approaches/posttrain.py:282
Functionsave_roberta_adapter_model
(roberta_model: nn.Module, save_path: str, accelerator=None)
networks/adapter_mask/roberta_adapter.py:287
Methodset_input_embeddings
(self, value)
networks/adapter_mask/roberta_model.py:752
Methodset_output_embeddings
(self, new_embeddings)
networks/adapter_mask/roberta_model.py:1013
Methodset_output_embeddings
(self, new_embeddings)
networks/adapter_mask/roberta_model.py:1171
Functionsetup_writer
(name)
utils/utils.py:7
Functiontokenize_function
(examples)
posttrain.py:133
Methodtrain
(self, model, accelerator, train_dataset, tokenizer, train_dataloader)
approaches/posttrain.py:33
Functionwarmup_constant
(x, warmup=0.002)
networks/adapter_mask/my_optimization.py:31
Functionwarmup_cosine
(x, warmup=0.002)
networks/adapter_mask/my_optimization.py:25
Functionwarmup_linear
(x, warmup=0.002)
networks/adapter_mask/my_optimization.py:37
← previous101–124 of 124, ranked by callers