MCPcopy Create free account

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

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

↓ 1 callersMethodmask
(self, s)
fengshen/examples/finetune_bart_qg/finetune_bart.py:93
↓ 1 callersFunctionmaster_params_to_model_params
Copy the master parameter data back into the model parameters.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:65
↓ 1 callersFunctionmaster_params_to_state_dict
( model, param_groups_and_shapes, master_params, use_fp16 )
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:95
↓ 1 callersMethodmerge_symmetry
(self, sentences, symmetry=('“', '”'))
fengshen/data/data_utils/sentence_split.py:5
↓ 1 callersFunctionmodel_grads_to_master_grads
Copy the gradients from the model parameters into the master parameters from make_master_params().
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:52
↓ 1 callersMethodmodel_setup
(self, custom_path)
fengshen/examples/disco_project/disco.py:502
↓ 1 callersFunctionmpi_weighted_mean
Copied from: https://github.com/openai/baselines/blob/ea25b9e8b234e6ee1bca43083f8f3cf974143998/baselines/common/mpi_util.py#L110 Perform a we
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:411
↓ 1 callersMethodp_mean_variance
( self, model, *args, **kwargs )
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/respace.py:88
↓ 1 callersMethodp_sample_loop_progressive
Generate samples from the model and yield intermediate samples from each timestep of diffusion. Arguments are the same as p_
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:567
↓ 1 callersFunctionpad_and_convert_to_numpy
Pad sequences and convert them to numpy.
fengshen/data/megatron_dataloader/bert_dataset.py:166
↓ 1 callersFunctionparam_grad_or_zeros
(param)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:141
↓ 1 callersFunctionparaphrase_generate
Generate with fixed prompt pretrained
fengshen/models/transfo_xl_paraphrase/generate.py:16
↓ 1 callersFunctionperlin
(width, height, scale=10, device=None)
fengshen/examples/disco_project/disco.py:137
↓ 1 callersMethodpermute_sentences
(self, source, full_stops, p=1.0)
fengshen/data/megatron_dataloader/bart_dataset.py:190
↓ 1 callersMethodpermute_sentences
(self, source, full_stops, p=1.0)
fengshen/examples/pretrain_randeng_bart/pretrain_bart.py:57
↓ 1 callersFunctionperpare_data
(args)
fengshen/examples/hubert/pretrain_hubert.py:83
↓ 1 callersMethodpipelines_args
(parent_args)
fengshen/models/uniex/modeling_uniex.py:1855
↓ 1 callersMethodplms_sample
Sample x_{t-1} from the model using Pseudo Linear Multistep. Same usage as p_sample().
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:920
↓ 1 callersMethodplms_sample_loop_progressive
Use PLMS to sample from the model and yield intermediate samples from each timestep of PLMS. Same usage as p_sample_loop_pro
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:1046
↓ 1 callersMethodpostprocess
(self, wav, cur_sample_rate)
fengshen/data/hubert/hubert_dataset.py:350
↓ 1 callersMethodpostprocess
(self, data)
fengshen/pipelines/multiplechoice.py:135
↓ 1 callersMethodpostprocess
(self, data)
fengshen/models/unimc/modeling_unimc.py:544
↓ 1 callersMethodpredict
(self, test_data, prompt, prompt_label, cuda=True)
fengshen/pipelines/tcbert.py:84
↓ 1 callersMethodpredict
(self, batch_data)
fengshen/models/tcbert/modeling_tcbert.py:356
↓ 1 callersMethodpredict_dataloader
(self)
fengshen/data/task_dataloader/task_datasets.py:201
↓ 1 callersMethodpredict_dataloader
(self)
fengshen/data/task_dataloader/medicalQADataset.py:118
↓ 1 callersMethodpredict_dataloader
(self)
fengshen/data/t5_dataloader/t5_datasets.py:269
↓ 1 callersMethodpredict_inputs
(self, batch)
fengshen/models/tcbert/modeling_tcbert.py:347
↓ 1 callersMethodprepare_decoder_input_ids_from_labels
(self, labels: torch.Tensor)
fengshen/models/deltalm/modeling_deltalm.py:1344
↓ 1 callersFunctionprocess_pool_read_csv_dataset
(args, input_root, thres=0.20)
fengshen/data/taiyi_stable_diffusion_datasets/taiyi_datasets.py:130
↓ 1 callersFunctionprocess_pool_read_txt_dataset
(args, input_root=None, thres=0.2)
fengshen/data/taiyi_stable_diffusion_datasets/taiyi_datasets.py:105
↓ 1 callersFunctionprofile_kv
(scopename)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:293
↓ 1 callersMethodprompt
(self, context, answer, question)
fengshen/examples/finetune_bart_qg/finetune_bart.py:135
↓ 1 callersMethodprune_heads
(self, heads)
fengshen/models/albert/modeling_albert.py:300
↓ 1 callersMethodprune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer}
fengshen/models/zen1/modeling.py:615
↓ 1 callersMethodprune_heads
(self, heads)
fengshen/models/longformer/modeling_longformer.py:1301
↓ 1 callersMethodprune_heads
(self, heads)
fengshen/models/roformer/modeling_roformer.py:399
↓ 1 callersFunctionpseudo_summary_f1
构建伪标签摘要数据集
fengshen/examples/pegasus/data_utils.py:206
↓ 1 callersMethodq_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of dif
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:169
↓ 1 callersMethodrandom_masking
(self, token_ids, maks_rate, mask_start_idx, max_length, mask_id, tokenizer)
fengshen/models/unimc/modeling_unimc.py:114
↓ 1 callersMethodrandom_spans_noise_mask
This function is copy of `random_spans_helper <https://github.com/google-research/text-to-text-transfer-transformer/ blob/84f8bcc14b5f2c03de51
fengshen/data/t5_dataloader/t5_datasets.py:372
↓ 1 callersFunctionrange_loss
(input)
fengshen/examples/disco_project/disco.py:368
↓ 1 callersMethodread_index
(self, path)
fengshen/data/megatron_dataloader/indexed_dataset.py:140
↓ 1 callersMethodready_cls
(self, sent_output,perm=None)
fengshen/models/GAVAE/gans_model.py:198
↓ 1 callersMethodready_gen
(self, sent_output)
fengshen/models/GAVAE/gans_model.py:240
↓ 1 callersFunctionrecls
(line)
fengshen/examples/clue1.1/predict2submit/chid_submit.py:22
↓ 1 callersFunctionrecursive_setattr
Recursively set attributes on a pytorch module or an iterable of modules. If an assert_type is provided, it will assert that the type of the
fengshen/models/megatron/layers/utils.py:158
↓ 1 callersMethodregister
Register a new model in this mapping.
fengshen/models/auto/auto_factory.py:634
↓ 1 callersMethodrematch
(self, text, tokens)
fengshen/models/ubert/modeling_ubert.py:455
↓ 1 callersFunctionremove_module_hooks
(model: torch.nn.Module)
fengshen/strategies/megatron_deepspeed.py:40
↓ 1 callersFunctionremove_stopwords
(texts, stopwords_dict)
fengshen/examples/pegasus/data_utils.py:200
↓ 1 callersFunctionreparameterize
sample from posterior Gaussian family Args: mu: Tensor Mean of gaussian distribution with shape (batch, nz) logvar: Te
fengshen/models/deepVAE/utils.py:109
↓ 1 callersFunctionreport_memory
Simple GPU memory report.
fengshen/utils/utils.py:62
↓ 1 callersFunctionresample
(input, size, align_corners=True)
fengshen/examples/disco_project/disco.py:215
↓ 1 callersMethodreset
(self)
fengshen/metric/metric.py:81
↓ 1 callersMethodreset_parameters
Initialize the transition parameters. The parameters will be initialized randomly from a uniform distribution between -0.1 and 0.1.
fengshen/models/tagging_models/layers/crf.py:40
↓ 1 callersFunctionreshape_weight_for_sd
(w)
fengshen/utils/convert_diffusers_to_original_stable_diffusion.py:162
↓ 1 callersFunctionroformer_extended_attention_mask
(attention_mask, tokentype_ids)
fengshen/models/roformer/modeling_roformer.py:564
↓ 1 callersFunctionsample_sequence_conditional
(model, length, context, latent_z=None, temperature=1, top_k=0, top_p=0.0, repetition_penalty=1.0, device='cpu
fengshen/models/DAVAE/run_latent_generation.py:88
↓ 1 callersMethodsampling
(self, mean, log_var)
fengshen/models/PPVAE/pluginVAE.py:24
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/predict2submit/ocnli_submit.py:6
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/predict2submit/csl_submit.py:6
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/predict2submit/wsc_submit.py:6
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/predict2submit/iflytek_submit.py:6
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/predict2submit/c3_submit.py:6
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/predict2submit/cmrc2018_submit.py:6
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/predict2submit/afqmc_submit.py:6
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/predict2submit/tnews_submit.py:6
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/predict2submit/chid_submit.py:6
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/data_preprocessing/iflytek_preprocessing.py:162
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/data_preprocessing/ocnli_preprocessing.py:35
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/data_preprocessing/chid_preprocessing.py:128
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/data_preprocessing/afqmc_preprocessing.py:33
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/data_preprocessing/csl_preprocessing.py:62
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/data_preprocessing/wsc_preprocessing.py:56
↓ 1 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/data_preprocessing/tnews_preprocessing.py:45
↓ 1 callersMethodsave_preditions
(self, result, args)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:243
↓ 1 callersFunctionsave_splits
(input_dir, output_dir, helper, config)
fengshen/utils/llama_convert/convert_fs_llama_tp.py:33
↓ 1 callersFunctionsave_test
(data, args, data_model, rank)
fengshen/examples/classification/finetune_classification.py:327
↓ 1 callersFunctionsave_test
(data, args, data_model)
fengshen/examples/mt5_summary/mt5_summary.py:168
↓ 1 callersFunctionscaled_init_method
Init method based on N(0, sigma/sqrt(2*num_layers).
fengshen/models/DAVAE/GPT2ModelForLatent.py:60
↓ 1 callersFunctionscaled_init_method
Init method based on N(0, sigma/sqrt(2*num_layers).
fengshen/models/transfo_xl_denoise/modeling_transfo_xl_denoise.py:139
↓ 1 callersFunctionscaled_init_method_normal
Init method based on N(0, sigma/sqrt(2*num_layers).
fengshen/models/megatron/layers/init_functions.py:29
↓ 1 callersFunctionscatter_to_model_parallel_region
(input_)
fengshen/models/megatron/mpu/mappings.py:187
↓ 1 callersMethodset_beta
(self, beta)
fengshen/models/PPVAE/pluginVAE.py:67
↓ 1 callersMethodset_comm
(self, comm)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:384
↓ 1 callersMethodset_level
(self, level)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:381
↓ 1 callersMethodset_parallel_output
(self, parallel_output: bool)
fengshen/models/megatron/mpu/layers.py:447
↓ 1 callersMethodsetup
(self)
fengshen/examples/pretrain_erlangshen_deberta_v2/pretrain_deberta.py:46
↓ 1 callersMethodsetup
(self, stage)
fengshen/examples/pretrain_randeng_bart/pretrain_bart.py:187
↓ 1 callersMethodsetup
(self, stage)
fengshen/examples/pretrain_erlangshen_bert/pretrain_erlangshen.py:143
↓ 1 callersMethodsetup_config
(self, args:Namespace)
fengshen/API/utils.py:71
↓ 1 callersFunctionsetup_logger
(logger, user_config: APIConfig)
fengshen/API/utils.py:131
↓ 1 callersMethodsetup_mpu
(self)
fengshen/strategies/megatron_deepspeed.py:343
↓ 1 callersFunctionshift_tokens_right
Shift input ids one token to the right.
fengshen/examples/pegasus/data_utils.py:299
↓ 1 callersMethodshift_tokens_right
Shift input ids one token to the right.
fengshen/data/t5_dataloader/t5_gen_datasets.py:288
↓ 1 callersMethodshift_tokens_right
Shift input ids one token to the right.
fengshen/data/t5_dataloader/t5_datasets.py:360
↓ 1 callersMethodshift_tokens_right
Shift input ids one token to the right.
fengshen/examples/qa_t5/qa_dataset.py:131
↓ 1 callersMethodshow
(self, save_path=None)
fengshen/examples/finetune_taiyi_stable_diffusion/evaluate_model.py:258
↓ 1 callersMethodsimulate_batch
(self,encoder_tokenizer,decoder_tokenizer, sent_inputs, prompt=None)
fengshen/models/DAVAE/DAVAEModel.py:58
← previousnext →801–900 of 2,547, ranked by callers