MCPcopy Create free account

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

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

Functioninitialize_model_parallel
Initialize model data parallel groups. Arguments: model_parallel_size: number of GPUs used to parallelize model. Let's say we h
fengshen/models/megatron/mpu/initialize.py:61
Methodinputs
(self)
fengshen/models/clip/configuration_taiyi_clip.py:141
Methodinputs
(self)
fengshen/models/megatron_t5/configuration_megatron_t5.py:145
Functionis_stopwords
(word, stopwords)
fengshen/examples/pegasus/data_utils.py:92
Functionis_string
判断是否是字符串
fengshen/examples/pegasus/data_utils.py:86
Functionis_unitialized
Useful for code segments that may be accessed with or without mpu initialization
fengshen/models/megatron/mpu/initialize.py:56
Methodis_vb
(self)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:97
Methoditems
(self)
fengshen/models/auto/configuration_auto.py:166
Functionjieba_tokenize
(str)
fengshen/utils/utils.py:6
Methodkeys
(self)
fengshen/models/auto/configuration_auto.py:158
Functionlabel_smoothed_nll_loss
(lprobs, target, epsilon, ignore_index=None, reduce=True)
fengshen/examples/translate/finetune_deltalm.py:60
Functionload_tf_weights_in_RoFormer
Load tf checkpoints in a pytorch model.
fengshen/models/roformer/modeling_roformer.py:69
Functionload_tf_weights_in_T5
Load tf checkpoints in a pytorch model.
fengshen/models/megatron_t5/modeling_megatron_t5.py:74
Functionload_tf_weights_in_albert
Load tf checkpoints in a pytorch model.
fengshen/models/albert/modeling_albert.py:75
Functionload_tf_weights_in_bert
Load tf checkpoints in a pytorch model
fengshen/models/zen2/modeling.py:184
Functionlog_sum_exp
Numerically stable implementation of the operation value.exp().sum(dim, keepdim).log()
fengshen/models/DAVAE/DAVAEModel.py:15
Functionlog_sum_exp
Numerically stable implementation of the operation value.exp().sum(dim, keepdim).log()
fengshen/models/deepVAE/utils.py:74
Functionlogkv_mean
The same as logkv(), but if called many times, values averaged.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:220
Functionlogkvs
Log a dictionary of key-value pairs
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:227
Methodloss_adv
(self, z)
fengshen/models/DAVAE/DAVAEModel.py:193
Functionlr_lambda
(current_step: int)
fengshen/models/model_utils.py:116
Functionmake_builder
(out_file, impl, vocab_size=None)
fengshen/data/megatron_dataloader/indexed_dataset.py:52
Functionmake_dataset
(path, impl, skip_warmup=False)
fengshen/data/megatron_dataloader/indexed_dataset.py:60
Methodmaster_params_to_state_dict
(self, master_params)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:226
Functionmerge_data
(module)
fengshen/utils/llama_convert/merge_lt_mp_to_hf.py:40
Functionmerge_data
(module)
fengshen/utils/llama_convert/fs_merge_weight.py:7
Functionmerge_data
(module)
fengshen/utils/llama_convert/fs_to_hf.py:31
Methodmerge_file_
(self, another_file)
fengshen/data/megatron_dataloader/indexed_dataset.py:302
Methodmerge_file_
(self, another_file)
fengshen/data/megatron_dataloader/indexed_dataset.py:569
Functionmish
(x)
fengshen/models/megatron/layers/activations.py:116
Methodmodel_input_names
(self)
fengshen/models/clip/processing_taiyi_clip.py:112
Functionmodel_parallel_is_initialized
Check if model and data parallel groups are initialized.
fengshen/models/megatron/mpu/initialize.py:170
Functionmy_shuffle
(x, index)
fengshen/models/DAVAE/run_latent_generation.py:297
Methodnum_attention_heads
(self)
fengshen/models/megatron_t5/configuration_megatron_t5.py:135
Methodnum_attention_heads
(self)
fengshen/models/deltalm/configuration_deltalm.py:99
Methodnum_hidden_layers
(self)
fengshen/models/megatron_t5/configuration_megatron_t5.py:139
Methodnum_special_tokens_to_add
Just EOS
fengshen/examples/pegasus/tokenizers_pegasus.py:370
Methodnum_tokens
(self, index)
fengshen/data/megatron_dataloader/indexed_dataset.py:199
Methodnum_tokens
(self, index)
fengshen/data/hubert/hubert_dataset.py:333
Methodon_load_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_taiyi_clip/pretrain.py:257
Methodon_load_checkpoint
(self, checkpoint)
fengshen/examples/hubert/pretrain_hubert.py:245
Methodon_load_checkpoint
(self, checkpoint)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:124
Methodon_load_checkpoint
(self, checkpoint)
fengshen/examples/finetune_bart_qg/finetune_bart.py:377
Methodon_load_checkpoint
(self, checkpoint)
fengshen/examples/finetune_taiyi_stable_diffusion/finetune.py:160
Methodon_load_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_t5/pretrain_t5.py:114
Methodon_load_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_t5/finetune_t5.py:94
Methodon_load_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_erlangshen_deberta_v2/pretrain_deberta.py:182
Methodon_load_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_randeng_bart/pretrain_bart.py:235
Methodon_load_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_erlangshen_bert/pretrain_erlangshen.py:192
Methodon_load_checkpoint
(self, checkpoint)
fengshen/examples/ziya_llama/finetune_ziya_llama.py:180
Methodon_load_checkpoint
(self, checkpoint)
fengshen/examples/stable_diffusion_dreambooth/train.py:204
Methodon_predict_start
(self)
fengshen/examples/finetune_bart_qg/finetune_bart.py:328
Methodon_save_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_taiyi_clip/pretrain.py:264
Methodon_save_checkpoint
(self, checkpoint)
fengshen/examples/hubert/pretrain_hubert.py:236
Methodon_save_checkpoint
(self, checkpoint)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:107
Methodon_save_checkpoint
(self, checkpoint)
fengshen/examples/finetune_bart_qg/finetune_bart.py:371
Methodon_save_checkpoint
(self, checkpoint)
fengshen/examples/pegasus/pretrain_pegasus.py:131
Methodon_save_checkpoint
(self, checkpoint)
fengshen/examples/finetune_taiyi_stable_diffusion/finetune.py:154
Methodon_save_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_t5/pretrain_t5.py:105
Methodon_save_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_t5/finetune_t5.py:85
Methodon_save_checkpoint
(self, checkpoint)
fengshen/examples/summary/seq2seq_summary.py:104
Methodon_save_checkpoint
(self, checkpoint)
fengshen/examples/translate/finetune_deltalm.py:324
Methodon_save_checkpoint
(self, checkpoint)
fengshen/examples/deepVAE/vae_pl_module.py:189
Methodon_train_batch_end
(self, outputs, batch, batch_idx: int)
fengshen/examples/pretrain_taiyi_clip/pretrain.py:173
Methodon_train_end
(self)
fengshen/examples/stable_diffusion_dreambooth/train.py:195
Methodon_validation_epoch_end
(self)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:191
Methodon_validation_start
(self)
fengshen/examples/summary/seq2seq_summary.py:58
Methodon_validation_start
(self)
fengshen/examples/translate/finetune_deltalm.py:235
Methodoptimize
(self, opt: th.optim.Optimizer)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:183
Methodordered_indices
(self)
fengshen/data/hubert/hubert_dataset.py:341
Methodoutput_dim
(self)
fengshen/models/deberta_v2/modeling_deberta_v2.py:74
Methodoutputs
(self)
fengshen/models/clip/configuration_taiyi_clip.py:151
Methodoutputs
(self)
fengshen/models/megatron_t5/configuration_megatron_t5.py:169
Functionp2c_dynamic_expand
(c2p_pos, query_layer, key_layer)
fengshen/models/deberta_v2/modeling_deberta_v2.py:580
Methodp_sample
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor at
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:419
Methodp_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:513
Methodp_sample_with_grad
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor at
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:465
Functionpad_and_convert_to_numpy
Pad sequences and convert them to numpy.
fengshen/data/megatron_dataloader/dataset_utils.py:471
Methodpad_batch
(self, x)
fengshen/models/GAVAE/gans_model.py:191
Functionpadding_to_maxlength
(ids, max_length, pad_id)
fengshen/data/data_utils/common_utils.py:1
Functionpadding_to_maxlength
(ids, max_length, pad_id)
fengshen/examples/finetune_bart_qg/utils.py:57
Functionparallel_lm_logits
LM logits using word embedding weights.
fengshen/models/megatron/layers/transformer.py:800
Methodparallelize
(self, device_map=None)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1502
Methodparallelize
(self, device_map=None)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1701
Methodparallelize
(self, device_map=None)
fengshen/models/megatron_t5/modeling_megatron_t5.py:2012
Functionparams_dtype
returns the datatype on the basis of configured precision
fengshen/models/megatron/mpu/utils.py:76
Functionperlin_ms
(octaves, width, height, grayscale, device=None)
fengshen/examples/disco_project/disco.py:151
Functionpermute_rotary
(w)
fengshen/utils/llama_convert/hf_to_fs.py:110
Methodpipelines_args
(parent_args)
fengshen/pipelines/information_extraction.py:29
Methodpipelines_args
(parent_args)
fengshen/models/unimc/modeling_unimc.py:452
Methodpipelines_args
(parent_args)
fengshen/models/ubert/modeling_ubert.py:675
Methodplms_sample_loop
Generate samples from the model using Pseudo Linear Multistep. Same usage as p_sample_loop().
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:1004
Functionpos_dynamic_expand
(pos_index, p2c_att, key_layer)
fengshen/models/deberta_v2/modeling_deberta_v2.py:586
Methodpostprocess
(self, data)
fengshen/pipelines/tcbert.py:104
Methodpostprocess
(self, model_outputs)
fengshen/pipelines/sequence_tagging.py:276
Methodpostprocess_crf
(self, model_outputs)
fengshen/pipelines/sequence_tagging.py:291
Methodpostprocess_linear
(self, model_outputs)
fengshen/pipelines/sequence_tagging.py:279
Methodpostprocess_span
(self, model_outputs)
fengshen/pipelines/sequence_tagging.py:302
Methodpostprocess_text
(preds, labels, tgt_zh)
fengshen/examples/translate/finetune_deltalm.py:248
Methodpredict
(self, test_data, cuda=True)
fengshen/pipelines/information_extraction.py:98
← previousnext →2,101–2,200 of 2,547, ranked by callers