MCPcopy Create free account

hub / github.com/IDEA-CCNL/Fengshenbang-LM / functions

Functions2,547 in github.com/IDEA-CCNL/Fengshenbang-LM

Methodpredict_crf
(self, batch, batch_idx)
fengshen/examples/sequence_tagging/finetune_sequence_tagging.py:243
Methodpredict_dataloader
(self)
fengshen/data/universal_datamodule/universal_datamodule.py:173
Methodpredict_dataloader
(self)
fengshen/data/t5_dataloader/t5_gen_datasets.py:343
Methodpredict_dataloader
(self)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:301
Methodpredict_dataloader
(self)
fengshen/examples/zen2_finetune/fengshen_token_level_ft_task.py:490
Methodpredict_dataloader
(self)
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:494
Methodpredict_dataloader
(self)
fengshen/examples/classification/finetune_classification.py:180
Methodpredict_dataloader
(self)
fengshen/examples/zen1_finetune/fengshen_token_level_ft_task.py:460
Methodpredict_dataloader
(self)
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:455
Methodpredict_linear
(self, batch, outputs)
fengshen/examples/sequence_tagging/finetune_sequence_tagging.py:230
Methodpredict_span
(self, batch, batch_idx)
fengshen/examples/sequence_tagging/finetune_sequence_tagging.py:256
Methodpredict_step
(self, batch, batch_idx)
fengshen/pipelines/text_classification.py:85
Methodpredict_step
(self, batch, batch_idx, dataloader_idx)
fengshen/examples/clue_sim/finetune_clue_sim.py:322
Methodpredict_step
(self, batch, batch_idx)
fengshen/examples/pretrain_bert/pretrain_bert.py:205
Methodpredict_step
(self, batch, batch_idx)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:206
Methodpredict_step
(self, batch, batch_idx)
fengshen/examples/finetune_bart_qg/finetune_bart.py:331
Methodpredict_step
(self, batch, batch_idx)
fengshen/examples/sequence_tagging/finetune_sequence_tagging.py:224
Methodpredict_step
(self, batch, batch_idx)
fengshen/examples/summary/seq2seq_summary.py:122
Methodpredict_step
(self, batch, batch_idx)
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:567
Methodpredict_step
(self, batch, batch_idx)
fengshen/examples/classification/finetune_classification.py:288
Methodpredict_step
(self, batch, batch_idx)
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:528
Methodpredict_step
(self, batch, batch_idx)
fengshen/examples/ziya_llama/finetune_ziya_llama.py:155
Methodpredict_step
(self, batch, batch_idx)
fengshen/examples/mt5_summary/mt5_summary.py:131
Methodpredict_step
(self, batch, batch_idx)
fengshen/models/ubert/modeling_ubert.py:360
Methodprefetch
(self, indices)
fengshen/data/megatron_dataloader/indexed_dataset.py:228
Methodprepare_decoder_input_ids_from_labels
(self, labels: torch.Tensor)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1954
Methodprepare_inputs_for_generation
(self, input_ids, past_key_values=None, attention_mask=None, **kwargs)
fengshen/models/llama/modeling_llama.py:353
Methodprepare_inputs_for_generation
(self, decoder_input_ids, past, attention_mask, use_cache, **kwargs)
fengshen/models/bart/modeling_bart.py:282
Methodprepare_inputs_for_generation
( self, input_ids, past=None, attention_mask=None, head_mask=None,
fengshen/models/megatron_t5/modeling_megatron_t5.py:1926
Methodprepare_inputs_for_generation
(self, input_ids, past=None, attention_mask=None, **model_kwargs)
fengshen/models/roformer/modeling_roformer.py:1347
Methodprepare_inputs_for_generation
(self, input_ids, attention_mask=None, **model_kwargs)
fengshen/models/roformer/modeling_roformer.py:1459
Methodprepare_inputs_for_generation
( self, decoder_input_ids, past=None, attention_mask=None, head_mask=N
fengshen/models/deltalm/modeling_deltalm.py:1316
Methodprepare_inputs_for_generation
(self, input_ids, past=None, attention_mask=None, use_cache=None, **kwargs)
fengshen/models/deltalm/modeling_deltalm.py:1531
Methodprepare_inputs_for_generation
Implement in subclasses of [`PreTrainedModel`] for custom behavior to prepare inputs in the generate method.
fengshen/models/deepVAE/latent_connector.py:363
Methodpreprocess
(self, data)
fengshen/pipelines/tcbert.py:101
Methodpreprocess
(self, inputs, **tokenizer_kwargs)
fengshen/pipelines/sequence_tagging.py:270
Methodpreprocess
(self, inputs, **tokenizer_kwargs)
fengshen/pipelines/text_classification.py:220
Methodprocess
(self, index, path)
fengshen/data/bert_dataloader/load.py:68
Methodprocess_xstart
(x)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:285
Functionprocessing1
()
fengshen/data/bert_dataloader/preprocessing.py:70
Functionprofile
Usage: @profile("my_func") def my_func(): code
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:302
Methodproject
projects hidden states correctly to key/query states
fengshen/models/megatron_t5/modeling_megatron_t5.py:491
Methodprune_heads
(self, heads)
fengshen/models/zen1/modeling.py:339
Methodprune_heads
(self, heads)
fengshen/models/zen2/modeling.py:532
Methodprune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer}
fengshen/models/zen2/modeling.py:808
Functionread_image_workaround
OpenCV reads images as BGR, Pillow saves them as RGB. Work around this incompatibility to avoid colour inversions.
fengshen/examples/disco_project/disco.py:178
Methodready_fake
(self, sent_output, inputs_labels, inputs_indexs, label2id, perm = None)
fengshen/models/GAVAE/gans_model.py:224
Functionrecls
(line)
fengshen/examples/clue1.1/predict2submit/csl_submit.py:23
Methodregister
Register a new configuration in this mapping.
fengshen/models/auto/configuration_auto.py:111
Methodregister
Register a new configuration for this class. Args: model_type (`str`): The model type like "bert" or "gpt".
fengshen/models/auto/configuration_auto.py:389
Methodregister
Register a new tokenizer in this mapping. Args: config_class ([`PretrainedConfig`]): The configuration
fengshen/models/auto/tokenization_auto.py:404
Methodregister
Register a new model for this class. Args: config_class ([`PretrainedConfig`]): The configuration corres
fengshen/models/auto/auto_factory.py:455
Methodregular_tokenize
(self, sample)
fengshen/data/t5_dataloader/t5_gen_datasets.py:115
Methodregular_tokenize
sample.keys:question:str,context:stc, answer:[],idx:int,ans_span:[]
fengshen/examples/qa_t5/qa_dataset.py:40
Functionremove_pad
(raw_text, ref=False)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:420
Functionremove_prompt
(text)
fengshen/examples/finetune_bart_qg/utils.py:67
Methodreplace_all
(source, target, sptoken)
fengshen/examples/finetune_bart_qg/finetune_bart.py:98
Methodreplace_span
(source, target, sptoken)
fengshen/examples/finetune_bart_qg/finetune_bart.py:94
Functionreset
()
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:478
Methodresize_token_embeddings
(self, new_num_tokens: Optional[int] = None)
fengshen/models/llama/modeling_llama.py:386
Methodresize_token_embeddings
(self, new_num_tokens: int)
fengshen/models/deltalm/modeling_deltalm.py:1186
Methodresult
(self)
fengshen/metric/metric.py:92
Functionsample_sequence
_summary_ Args: model (_type_): _description_ tokens (Tensor): [1, seq_len] attention_mask (Tensor): [1, 1, seq_len, seq_
fengshen/utils/transfo_xl_utils.py:189
Methodsave
(self, ngram_freq_path)
fengshen/models/zen2/ngram_utils.py:118
Functionsave_output
(input_text, output, output_file)
fengshen/models/DAVAE/run_latent_generation.py:37
Functionsave_test
(data, args, data_model)
fengshen/examples/zen2_finetune/fengshen_token_level_ft_task.py:630
Functionsave_test
(data, args, data_model)
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:603
Functionsave_test
(data, args, data_model)
fengshen/examples/zen1_finetune/fengshen_token_level_ft_task.py:599
Functionsave_test
(data, args, data_model)
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:564
Methodsave_vocabulary
(self, save_directory: str, filename_prefix: Optional[str] = N
fengshen/examples/pegasus/tokenizers_pegasus.py:374
Methodsave_vocabulary
Save the tokenizer vocabulary to a directory or file.
fengshen/models/zen1/tokenization.py:155
Methodsave_vocabulary
Save the tokenizer vocabulary to a directory or file.
fengshen/models/zen2/tokenization.py:177
Methodsave_vocabulary
(self, save_directory: str, filename_prefix: Optional[str] = None)
fengshen/models/deltalm/tokenizer_deltalm.py:308
Functionscale_module
Scale the parameters of a module and return it.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/nn.py:77
Functionscoped_configure
(dir=None, format_strs=None, comm=None)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:486
Functionsearch
(pattern, sequence)
fengshen/examples/clue1.1/data_preprocessing/cmrc2018_preprocessing.py:20
Functionsearch
(pattern, sequence)
fengshen/models/ubert/modeling_ubert.py:47
Methodself_dis
(self, a)
fengshen/models/GAVAE/gans_model.py:58
Functionset_comm
(comm)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:276
Methodset_decoder
(self, decoder)
fengshen/models/deltalm/modeling_deltalm.py:1397
Methodset_epoch
(self, epoch)
fengshen/data/universal_datamodule/universal_sampler.py:124
Functionset_init_params_in_cuda
(status)
fengshen/models/megatron/mpu/initialize.py:49
Methodset_input_embeddings
(self, value)
fengshen/models/albert/modeling_albert.py:647
Methodset_input_embeddings
(self, value)
fengshen/models/llama/modeling_llama.py:132
Methodset_input_embeddings
(self, value)
fengshen/models/longformer/modeling_longformer.py:1712
Methodset_input_embeddings
(self, new_embeddings)
fengshen/models/deberta_v2/modeling_deberta_v2.py:1249
Methodset_input_embeddings
(self, new_embeddings)
fengshen/models/deberta_v2/modeling_deberta_v2.py:1545
Methodset_input_embeddings
(self, new_embeddings)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1527
Methodset_input_embeddings
(self, new_embeddings)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1728
Methodset_input_embeddings
(self, new_embeddings)
fengshen/models/megatron_t5/modeling_megatron_t5.py:2034
Methodset_input_embeddings
(self, value)
fengshen/models/roformer/modeling_roformer.py:950
Methodset_input_embeddings
(self, value)
fengshen/models/deltalm/modeling_deltalm.py:510
Methodset_input_embeddings
(self, value)
fengshen/models/deltalm/modeling_deltalm.py:905
Methodset_input_embeddings
(self, value)
fengshen/models/deltalm/modeling_deltalm.py:1055
Methodset_input_embeddings
(self, value)
fengshen/models/deltalm/modeling_deltalm.py:1388
Functionset_level
Set logging threshold on current logger.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:269
Functionset_model_parallel_rank
Set model parallel rank.
fengshen/models/megatron/mpu/initialize.py:209
Functionset_model_parallel_world_size
Set the model parallel size
fengshen/models/megatron/mpu/initialize.py:195
Methodset_output_embeddings
(self, new_embeddings)
fengshen/models/albert/modeling_albert.py:767
Methodset_output_embeddings
(self, new_embeddings)
fengshen/models/albert/modeling_albert.py:913
← previousnext →2,201–2,300 of 2,547, ranked by callers