MCPcopy Create free account

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

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

↓ 1 callersFunctionsmall_init_init_method
Fills the input Tensor with values according to the method described in Transformers without Tears: Improving the Normalization of Self-Attention
fengshen/models/megatron/layers/init_functions.py:101
↓ 1 callersFunctionspace_timesteps
Create a list of timesteps to use from an original diffusion process, given the number of timesteps we want to take from equally-sized portio
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/respace.py:7
↓ 1 callersMethodsparse_attention
(self, query_layer, key_layer, value_layer, attention_mask)
fengshen/models/megatron/layers/transformer.py:458
↓ 1 callersFunctionspherical_dist_loss
(x, y)
fengshen/examples/disco_project/disco.py:354
↓ 1 callersFunctionsplit_tensor_along_last_dim
Split a tensor along its last dimension. Arguments: tensor: input tensor. num_partitions: number of partitions to split the tensor
fengshen/models/megatron/mpu/utils.py:36
↓ 1 callersMethodsplit_train_test_validation_index
(train_test_validation)
fengshen/data/bert_dataloader/load.py:60
↓ 1 callersFunctionsr_create_model
( large_size, small_size, num_channels, num_res_blocks, learn_sigma, class_cond, u
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/script_util.py:338
↓ 1 callersFunctionstate_dict_to_master_params
(model, state_dict, use_fp16)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:116
↓ 1 callersMethodstem
(token)
fengshen/models/uniex/modeling_uniex.py:1176
↓ 1 callersMethodstem
(token)
fengshen/models/ubert/modeling_ubert.py:441
↓ 1 callersFunctionstride_split
(question, context, answer, start)
fengshen/examples/clue1.1/data_preprocessing/cmrc2018_preprocessing.py:30
↓ 1 callersFunctionsubmit
(file_path)
fengshen/examples/clue1.1/predict2submit/ocnli_submit.py:12
↓ 1 callersFunctionsubmit
(file_path)
fengshen/examples/clue1.1/predict2submit/csl_submit.py:65
↓ 1 callersFunctionsubmit
(file_path)
fengshen/examples/clue1.1/predict2submit/wsc_submit.py:12
↓ 1 callersFunctionsubmit
(file_path)
fengshen/examples/clue1.1/predict2submit/iflytek_submit.py:140
↓ 1 callersFunctionsubmit
(file_path)
fengshen/examples/clue1.1/predict2submit/c3_submit.py:13
↓ 1 callersFunctionsubmit
(file_path)
fengshen/examples/clue1.1/predict2submit/cmrc2018_submit.py:12
↓ 1 callersFunctionsubmit
(file_path)
fengshen/examples/clue1.1/predict2submit/afqmc_submit.py:13
↓ 1 callersFunctionsubmit
(file_path)
fengshen/examples/clue1.1/predict2submit/tnews_submit.py:12
↓ 1 callersFunctionsubmit
(file_path)
fengshen/examples/clue1.1/predict2submit/chid_submit.py:54
↓ 1 callersFunctionswitch
(next_value, init, is_update)
fengshen/utils/transfo_xl_utils.py:39
↓ 1 callersFunctionswitch
(next_value, init, is_update)
fengshen/models/DAVAE/run_latent_generation.py:161
↓ 1 callersMethodtest_dataloader
(self)
fengshen/examples/clue_sim/finetune_clue_sim.py:125
↓ 1 callersFunctiontest_fused_softmax
()
fengshen/models/megatron/fused_kernels/tests/test_fused_kernels.py:22
↓ 1 callersFunctiontest_fused_upper_triangle_mask_softmax
()
fengshen/models/megatron/fused_kernels/tests/test_fused_kernels.py:120
↓ 1 callersFunctiontest_load_fused_kernels
()
fengshen/models/megatron/fused_kernels/tests/test_fused_kernels.py:10
↓ 1 callersFunctiontext_from_latent_code
(latent_z, model_vae, args, tokenizer_decoder, prompt=None)
fengshen/models/DAVAE/run_latent_generation.py:129
↓ 1 callersFunctiontext_from_latent_code_batch
(latent_z, model_vae, args, tokenizer_decoder, prompt=None)
fengshen/models/DAVAE/run_latent_generation.py:248
↓ 1 callersMethodtie_weights
Make sure we are sharing the input and output embeddings. Export to TorchScript can't handle parameter sharing so we are cloning them ins
fengshen/models/deepVAE/latent_connector.py:318
↓ 1 callersMethodto_sentences
(self, paragraph)
fengshen/data/data_utils/sentence_split.py:22
↓ 1 callersMethodtoken_process
(self, token_id)
fengshen/examples/pretrain_bert/pretrain_bert.py:51
↓ 1 callersMethodtokenize
(self, text)
fengshen/models/zen2/tokenization.py:147
↓ 1 callersFunctiontop_k_top_p_filtering
Filter a distribution of logits using top-k and/or nucleus (top-p) filtering Args: logits: logits distribution shape (vocabulary
fengshen/models/deepVAE/utils.py:33
↓ 1 callersMethodtrain_dataloader
(self)
fengshen/data/task_dataloader/task_datasets.py:187
↓ 1 callersMethodtrain_dataloader
(self)
fengshen/data/t5_dataloader/t5_gen_datasets.py:303
↓ 1 callersMethodtrain_dataloader
(self)
fengshen/examples/clue_sim/finetune_clue_sim.py:104
↓ 1 callersMethodtrain_dataloader
(self)
fengshen/examples/classification/finetune_classification.py:172
↓ 1 callersMethodtrain_gan
(self,encoder_tokenizer,decoder_tokenizer,input_texts)
fengshen/models/GAVAE/GAVAEModel.py:44
↓ 1 callersMethodtrain_plugin
(self,encoder_tokenizer,decoder_tokenizer,input_texts,negative_samples=None)
fengshen/models/PPVAE/pluginVAE.py:94
↓ 1 callersFunctiontraversal_files
(path: str)
fengshen/data/taiyi_stable_diffusion_datasets/taiyi_datasets.py:113
↓ 1 callersFunctiontv_loss
L2 total variation loss, as in Mahendran et al.
fengshen/examples/disco_project/disco.py:360
↓ 1 callersMethodunfreeze_cls
(self)
fengshen/models/GAVAE/gans_model.py:175
↓ 1 callersMethodunfreeze_gen
(self)
fengshen/models/GAVAE/gans_model.py:183
↓ 1 callersFunctionunscaled_init_method
Init method based on N(0, sigma).
fengshen/models/DAVAE/GPT2ModelForLatent.py:68
↓ 1 callersFunctionunscaled_init_method
Init method based on N(0, sigma).
fengshen/models/transfo_xl_denoise/modeling_transfo_xl_denoise.py:149
↓ 1 callersMethodupdate_mems
(self, hiddens, mems)
fengshen/models/DAVAE/GPT2ModelForLatent.py:567
↓ 1 callersMethodupdate_mems
(self, hiddens, mems)
fengshen/models/transfo_xl_denoise/modeling_transfo_xl_denoise.py:649
↓ 1 callersMethodupdate_with_all_losses
Update the reweighting using losses from a model. Sub-classes should override this method to update the reweighting using lo
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/resample.py:107
↓ 1 callersMethodval_dataloader
(self)
fengshen/examples/clue_sim/finetune_clue_sim.py:115
↓ 1 callersMethodvalues
(self)
fengshen/models/auto/configuration_auto.py:99
↓ 1 callersFunctionverify_label_lengths
( audio_sizes, audio_rate, label_path, label_rate, inds, tot, tol=0.1, # toleranc
fengshen/data/hubert/hubert_dataset.py:88
↓ 1 callersMethodvocab_range_from_global_vocab_size
(global_vocab_size, rank, world_size)
fengshen/models/megatron/mpu/utils.py:70
↓ 1 callersMethodvocab_range_from_per_partition_vocab_size
( per_partition_vocab_size, rank, world_size )
fengshen/models/megatron/mpu/utils.py:62
↓ 1 callersFunctionwang_init_method
(n_layers, dim)
fengshen/models/megatron/layers/init_functions.py:112
↓ 1 callersMethodweights
Get a numpy array of weights, one per diffusion step. The weights needn't be normalized, but must be positive.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/resample.py:35
↓ 1 callersMethodword_starts
(self, source)
fengshen/data/megatron_dataloader/bart_dataset.py:218
↓ 1 callersMethodwritekvs
(self, kvs)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:26
↓ 1 callersMethodwriter
(cls, path, dtype)
fengshen/data/megatron_dataloader/indexed_dataset.py:349
↓ 1 callersMethodwriteseq
(self, seq)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:31
↓ 1 callersFunctionxavier_normal_init_method
Fills the input Tensor with values according to the method described in Understanding the difficulty of training deep feedforward neural networks
fengshen/models/megatron/layers/init_functions.py:91
↓ 1 callersFunctionxavier_uniform_init_method
Fills the input Tensor with values according to the method described in Understanding the difficulty of training deep feedforward neural networks
fengshen/models/megatron/layers/init_functions.py:81
↓ 1 callersFunctionzero_grad
(model_params)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:133
↓ 1 callersFunctionzero_pad_sequences
(sequences: List[torch.Tensor], side: str = 'left', padding_value: int = 0)
fengshen/examples/ziya_llama/llama_generate.py:7
Method__bool__
(self)
fengshen/models/auto/auto_factory.py:601
Method__call__
(self, samples)
fengshen/data/task_dataloader/task_datasets.py:22
Method__call__
(self, samples)
fengshen/data/sequence_tagging_dataloader/sequence_tagging_collator.py:14
Method__call__
(self, samples)
fengshen/data/sequence_tagging_dataloader/sequence_tagging_collator.py:71
Method__call__
(self, samples)
fengshen/data/sequence_tagging_dataloader/sequence_tagging_collator.py:128
Method__call__
(self, samples)
fengshen/data/sequence_tagging_dataloader/sequence_tagging_collator.py:206
Method__call__
(self, samples)
fengshen/pipelines/text_classification.py:103
Method__call__
(self, samples)
fengshen/examples/pretrain_bert/pretrain_bert.py:60
Method__call__
(self, inputs)
fengshen/examples/pretrain_taiyi_clip/pretrain.py:43
Method__call__
(self, label: str)
fengshen/examples/hubert/pretrain_hubert.py:23
Method__call__
(self, samples)
fengshen/examples/qa_t5/qa_dataset.py:104
Method__call__
ans_num = 1 适用于 Train 数据只有 1 条 answer 取第一条情况 ans_num > 1 适用于 Dev 数据有多条 answer 情况 Input: input_ids: input_ids (text +
fengshen/examples/finetune_bart_qg/finetune_bart.py:149
Method__call__
(self, samples)
fengshen/examples/pegasus/pretrain_pegasus.py:32
Method__call__
(self, inputs)
fengshen/examples/finetune_taiyi_stable_diffusion/finetune.py:39
Method__call__
(self, samples)
fengshen/examples/zen2_finetune/fengshen_token_level_ft_task.py:377
Method__call__
(self, samples)
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:376
Method__call__
samples: 一个sample长这样{"text": "hello world"}
fengshen/examples/pretrain_erlangshen_deberta_v2/pretrain_deberta.py:54
Method__call__
(self, batch_samples)
fengshen/examples/translate/finetune_deltalm.py:92
Method__call__
samples: 一个sample长这样{"text": "hello world"}
fengshen/examples/pretrain_randeng_bart/pretrain_bart.py:76
Method__call__
(self, x, ts, **kwargs)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/respace.py:123
Method__call__
(self, samples)
fengshen/examples/classification/finetune_classification.py:92
Method__call__
samples: 一个sample长这样{"text": "hello world"}
fengshen/examples/pretrain_erlangshen_bert/pretrain_erlangshen.py:56
Method__call__
(self, samples)
fengshen/examples/zen1_finetune/fengshen_token_level_ft_task.py:352
Method__call__
(self, samples)
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:356
Method__call__
(self, samples)
fengshen/examples/ziya_llama/finetune_ziya_llama.py:43
Method__call__
(self, samples, max_len=128)
fengshen/examples/deepVAE/pretrain_deep_vae.py:24
Method__call__
(self, samples, max_len=120)
fengshen/examples/deepVAE/pretrain_deep_vae.py:47
Method__call__
(self, samples, max_len=120)
fengshen/examples/deepVAE/pretrain_deep_vae.py:71
Method__call__
(self, train_loss, min_loss)
fengshen/models/PPVAE/utils.py:24
Method__call__
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text` and `kwargs` arguments
fengshen/models/clip/processing_taiyi_clip.py:44
Method__contains__
(self, item)
fengshen/models/auto/configuration_auto.py:108
Method__contains__
(self, item)
fengshen/models/auto/configuration_auto.py:174
Method__contains__
(self, item)
fengshen/models/auto/auto_factory.py:626
Method__del__
(self)
fengshen/data/megatron_dataloader/indexed_dataset.py:165
Method__del__
(self)
fengshen/data/megatron_dataloader/indexed_dataset.py:434
Method__del__
(self)
fengshen/data/megatron_dataloader/indexed_dataset.py:485
Method__enter__
(self)
fengshen/data/megatron_dataloader/indexed_dataset.py:351
← previousnext →901–1,000 of 2,547, ranked by callers