MCPcopy Create free account

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

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

↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/pipelines/text_classification.py:40
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:42
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/finetune_bart_qg/finetune_bart.py:224
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/sequence_tagging/finetune_sequence_tagging.py:76
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/pretrain_t5/pretrain_t5.py:19
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/pretrain_t5/finetune_t5.py:17
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/summary/seq2seq_summary.py:25
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/zen2_finetune/fengshen_token_level_ft_task.py:498
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:519
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/translate/finetune_deltalm.py:131
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/classification/finetune_classification.py:234
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/wenzhong_qa/finetune_wenzhong.py:44
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/wenzhong_qa/finetune_medicalQA.py:48
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/zen1_finetune/fengshen_token_level_ft_task.py:468
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:480
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/examples/mt5_summary/mt5_summary.py:86
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/models/unimc/modeling_unimc.py:337
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/models/uniex/modeling_uniex.py:1030
↓ 1 callersMethodadd_model_specific_args
(parent_args)
fengshen/models/ubert/modeling_ubert.py:314
↓ 1 callersMethodadd_module_specific_args
(args_parser)
fengshen/examples/pretrain_bert/pretrain_bert.py:124
↓ 1 callersMethodadd_module_specific_args
(parent_parser)
fengshen/examples/hubert/pretrain_hubert.py:92
↓ 1 callersMethodadd_module_specific_args
(parent_parser)
fengshen/examples/finetune_taiyi_stable_diffusion/finetune.py:69
↓ 1 callersMethodadd_module_specific_args
(parent_parser)
fengshen/examples/pretrain_erlangshen_deberta_v2/pretrain_deberta.py:118
↓ 1 callersMethodadd_module_specific_args
(parent_parser)
fengshen/examples/pretrain_randeng_bart/pretrain_bart.py:172
↓ 1 callersMethodadd_module_specific_args
(parent_parser)
fengshen/examples/pretrain_erlangshen_bert/pretrain_erlangshen.py:128
↓ 1 callersMethodadd_module_specific_args
(parent_parser)
fengshen/examples/ziya_llama/finetune_ziya_llama.py:90
↓ 1 callersMethodadd_module_specific_args
(cls, parser)
fengshen/examples/deepVAE/vae_pl_module.py:30
↓ 1 callersMethodadd_module_specific_args
(parent_parser)
fengshen/examples/stable_diffusion_dreambooth/train.py:50
↓ 1 callersMethodadd_rolling_noise
(self, tokens)
fengshen/data/megatron_dataloader/bart_dataset.py:414
↓ 1 callersMethodadd_sequential
(self, dictionary, rank)
fengshen/utils/llama_convert/convert_fs_llama_tp.py:108
↓ 1 callersMethodadd_whole_word_mask
(self, source, p, replace_length=1)
fengshen/data/megatron_dataloader/bart_dataset.py:290
↓ 1 callersFunctionapply_delta
(base_model_path, target_model_path, delta_path)
fengshen/utils/apply_delta.py:129
↓ 1 callersFunctionapply_delta_low_cpu_mem
(base_model_path, target_model_path, delta_path)
fengshen/utils/apply_delta.py:72
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/nn.py:42
↓ 1 callersMethodbackward
(ctx, output_grads)
fengshen/models/megatron/layers/fused_softmax.py:75
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:45
↓ 1 callersFunctionbias_gelu
(bias, y)
fengshen/models/megatron/layers/activations.py:61
↓ 1 callersFunctionbias_gelu_back
(g, bias, y)
fengshen/models/megatron/layers/activations.py:70
↓ 1 callersFunctionbuild_training_sample
Biuld training sample. Arguments: sample: A list of sentences in which each sentence is a list token ids. target_seq_length: Desi
fengshen/data/megatron_dataloader/bert_dataset.py:89
↓ 1 callersMethodbuild_training_sample
Biuld training sample. Arguments: sample: A list of sentences in which each sentence is a list token ids. max_seq_len
fengshen/data/megatron_dataloader/bart_dataset.py:98
↓ 1 callersFunctioncalc_bleu_from_stats
(sentence_stats: pd.DataFrame)
fengshen/examples/translate/finetune_deltalm.py:37
↓ 1 callersMethodcalculate_score
(self,)
fengshen/examples/finetune_taiyi_stable_diffusion/evaluate_model.py:265
↓ 1 callersMethodcategory_performance_measure
(self, labels_right, labels_pred, num_label=3)
fengshen/examples/clue_sim/finetune_clue_sim.py:215
↓ 1 callersFunctionchain_iter
将多个文件读成一个迭代器
fengshen/data/bert_dataloader/preprocessing.py:53
↓ 1 callersFunctioncheck_imports
Check if the current Python environment contains all the libraries that are imported in a file.
fengshen/models/auto/dynamic.py:68
↓ 1 callersFunctioncheck_overflow
(value)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:235
↓ 1 callersFunctionchid_m
(data)
fengshen/examples/clue1.1/predict2submit/chid_submit.py:41
↓ 1 callersFunctionclassifier_defaults
Defaults for classifier models.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/script_util.py:27
↓ 1 callersMethodclip_loss
(self, image_features, text_features, logit_scale)
fengshen/examples/pretrain_taiyi_clip/pretrain.py:126
↓ 1 callersMethodcls_train
(self, x, y, if_oneHot = True)
fengshen/models/GAVAE/gans_model.py:249
↓ 1 callersMethodcollate_fn
Aggregate a batch data. batch = [ins1_dict, ins2_dict, ..., insN_dict] batch_data = {'sentence':[ins1_sentence, ins2_sentence
fengshen/models/tcbert/modeling_tcbert.py:157
↓ 1 callersMethodcollate_fn
Aggregate a batch data. batch = [ins1_dict, ins2_dict, ..., insN_dict] batch_data = {'sentence':[ins1_sentence, ins2_sentence
fengshen/models/unimc/modeling_unimc.py:259
↓ 1 callersMethodcollater_audio
(self, audios, audio_size)
fengshen/data/hubert/hubert_dataset.py:273
↓ 1 callersMethodcollater_frm_label
(self, targets, audio_size, audio_starts, label_rate, pad)
fengshen/data/hubert/hubert_dataset.py:294
↓ 1 callersMethodcollater_label
(self, targets_by_label, audio_size, audio_starts)
fengshen/data/hubert/hubert_dataset.py:318
↓ 1 callersMethodcollater_seq_label
(self, targets, pad)
fengshen/data/hubert/hubert_dataset.py:312
↓ 1 callersFunctioncomp_acc
(pred_data,test_data)
fengshen/examples/clue1.1/solution/clue_unimc.py:15
↓ 1 callersFunctioncomp_acc
(pred_data, test_data)
fengshen/models/unimc/modeling_unimc.py:614
↓ 1 callersMethodcomput_metrix
(self, logits, labels)
fengshen/pipelines/text_classification.py:71
↓ 1 callersMethodcomput_metrix
(self, logits, labels)
fengshen/examples/pretrain_bert/pretrain_bert.py:181
↓ 1 callersMethodcomput_metrix
(self, logits, labels)
fengshen/examples/pegasus/pretrain_pegasus.py:117
↓ 1 callersMethodcomput_metrix
(self, logits, labels)
fengshen/examples/pretrain_erlangshen_deberta_v2/pretrain_deberta.py:148
↓ 1 callersMethodcomput_metrix
(self, logits, labels)
fengshen/examples/translate/finetune_deltalm.py:194
↓ 1 callersMethodcomput_metrix
(self, logits, labels)
fengshen/examples/pretrain_erlangshen_bert/pretrain_erlangshen.py:158
↓ 1 callersMethodcomput_metrix
(self, logits, labels)
fengshen/models/uniex/modeling_uniex.py:1120
↓ 1 callersMethodcompute_acc
(self, logits, labels)
fengshen/examples/finetune_bart_qg/finetune_bart.py:363
↓ 1 callersMethodcompute_bias
Compute binned relative position bias
fengshen/models/megatron_t5/modeling_megatron_t5.py:431
↓ 1 callersFunctioncompute_f1
(cand, ref)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:391
↓ 1 callersFunctioncompute_kl_loss
adapted from adaVAE implementation https://github.com/ImKeTT/adavae/blob/main/src/adapters/vae.py#L1627
fengshen/models/deepVAE/utils.py:130
↓ 1 callersMethodcompute_nce
(self, x, pos, negs)
fengshen/examples/hubert/pretrain_hubert.py:141
↓ 1 callersFunctioncompute_rouge
计算rouge-1、rouge-2、rouge-l
fengshen/examples/pegasus/data_utils.py:181
↓ 1 callersMethodcondition_mean
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with res
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:341
↓ 1 callersMethodcondition_mean_with_grad
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with res
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:356
↓ 1 callersFunctionconfig_class_to_model_type
Converts a config class name to the corresponding model type
fengshen/models/auto/configuration_auto.py:66
↓ 1 callersFunctionconfigure_logger
(logging_lever=logging.INFO)
fengshen/examples/translate/finetune_deltalm.py:366
↓ 1 callersFunctionconfigure_sparse_attention
(config, attention_type, num_attention_heads, mpu)
fengshen/models/megatron/layers/utils.py:187
↓ 1 callersMethodconnect
Returns: Tensor1, Tensor2 Tensor1: the tensor latent z with shape [batch, nsamples, nz] Tensor2: the tenor of KL for
fengshen/models/DAVAE/DAVAEModel.py:138
↓ 1 callersMethodconnect_deterministic
Returns: Tensor1, Tensor2 Tensor1: the tensor latent z with shape [batch, nsamples, nz] Tensor2: the tenor of KL for
fengshen/models/DAVAE/DAVAEModel.py:157
↓ 1 callersFunctionconvert_config
(fs_config: FengshenConfig)
fengshen/utils/llama_convert/merge_lt_mp_to_hf.py:19
↓ 1 callersFunctionconvert_config
(hf_config: LlamaConfig)
fengshen/utils/llama_convert/hf_to_fs.py:10
↓ 1 callersFunctionconvert_config
(fs_config: FengshenConfig)
fengshen/utils/llama_convert/fs_to_hf.py:10
↓ 1 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
fengshen/examples/zen2_finetune/fengshen_token_level_ft_task.py:82
↓ 1 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:194
↓ 1 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
fengshen/examples/zen1_finetune/fengshen_token_level_ft_task.py:81
↓ 1 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:191
↓ 1 callersFunctionconvert_py_to_npy
(input_tensor, bin_out, idx_out)
fengshen/utils/convert_py_to_npy.py:20
↓ 1 callersFunctionconvert_text_enc_state_dict
(text_enc_dict)
fengshen/utils/convert_diffusers_to_original_stable_diffusion.py:194
↓ 1 callersFunctionconvert_tf_checkpoint_to_pytorch
(tf_checkpoint_path, bert_config_file, pytorch_dump_path)
fengshen/utils/convert_tf_checkpoint_to_pytorch.py:14
↓ 1 callersFunctionconvert_unet_state_dict
(unet_state_dict)
fengshen/utils/convert_diffusers_to_original_stable_diffusion.py:91
↓ 1 callersFunctionconvert_vae_state_dict
(vae_state_dict)
fengshen/utils/convert_diffusers_to_original_stable_diffusion.py:167
↓ 1 callersFunctioncopy_to_model_parallel_region
(input_)
fengshen/models/megatron/mpu/mappings.py:179
↓ 1 callersFunctioncreate_classifier
( image_size, classifier_use_fp16, classifier_width, classifier_depth, classifier_attentio
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/script_util.py:232
↓ 1 callersFunctioncreate_dynamic_module
Creates a dynamic module in the cache directory for modules.
fengshen/models/auto/dynamic.py:53
↓ 1 callersFunctioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective. Note: Tokens here are vocab ids and not text tokens.
fengshen/data/megatron_dataloader/dataset_utils.py:182
↓ 1 callersFunctioncreate_model
( image_size, num_channels, num_res_blocks, channel_mult="", learn_sigma=False, class_
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/script_util.py:130
↓ 1 callersFunctioncreate_model_and_diffusion
( image_size, class_cond, learn_sigma, num_channels, num_res_blocks, channel_mult,
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/script_util.py:74
↓ 1 callersFunctioncreate_tokens_and_tokentypes
Merge segments A and B, add [CLS] and [SEP] and build tokentypes.
fengshen/data/megatron_dataloader/dataset_utils.py:142
↓ 1 callersMethodcrop_to_max_size
(self, wav, target_size)
fengshen/data/hubert/hubert_dataset.py:221
↓ 1 callersFunctioncsl_scorted
(data)
fengshen/examples/clue1.1/predict2submit/csl_submit.py:40
↓ 1 callersFunctioncut
将一段文本切分成多个句子 :param sentence: ['虽然BillRoper正忙于全新游戏 :return: ['虽然BillRoper正..接近。' , '与父母,之首。' , '很多..常见。' , '”一位上..推进。' , ''”一直坚..市场。'' , '如今,...的7
fengshen/examples/clue1.1/data_preprocessing/chid_preprocessing.py:23
← previousnext →501–600 of 2,547, ranked by callers