MCPcopy Create free account

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

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

↓ 5 callersMethodrun
(self)
fengshen/examples/finetune_taiyi_stable_diffusion/evaluate_model.py:253
↓ 5 callersMethodset_input_embeddings
(self, new_embeddings)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1034
↓ 5 callersMethodtranspose_for_scores
(self, x)
fengshen/models/zen1/modeling.py:273
↓ 4 callersMethod__init__
( self, config, init_method, output_layer_init_method, parallel_output=False )
fengshen/models/megatron/layers/transformer.py:79
↓ 4 callersFunction_initialize_affine_weight_gpu
Initialize affine weight for model parallel on GPU.
fengshen/models/megatron/mpu/layers.py:42
↓ 4 callersMethod_read_json
Reads a jsonl file.
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:102
↓ 4 callersMethod_read_json
Reads a jsonl file.
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:99
↓ 4 callersMethod_scale_timesteps
(self, t)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:336
↓ 4 callersMethod_transpose_for_scores
Transpose a 3D tensor [b, s, np*hn] into a 4D tensor with size [b, np, s, hn].
fengshen/models/DAVAE/GPT2ModelForLatent.py:137
↓ 4 callersMethod_transpose_for_scores
Transpose a 3D tensor [b, s, np*hn] into a 4D tensor with size [b, np, s, hn].
fengshen/models/transfo_xl_denoise/modeling_transfo_xl_denoise.py:223
↓ 4 callersMethod_wrap_model
(self, model)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/respace.py:104
↓ 4 callersMethodadd_argparse_args
(parent_args)
fengshen/examples/zen2_finetune/fengshen_token_level_ft_task.py:605
↓ 4 callersMethodadd_argparse_args
(parent_args)
fengshen/models/uniex/modeling_uniex.py:1146
↓ 4 callersMethodadd_model_specific_args
(parent_args)
fengshen/pipelines/sequence_tagging.py:44
↓ 4 callersMethodadd_sequential_duplicates
(self, dictionary)
fengshen/utils/llama_convert/convert_fs_llama_tp.py:102
↓ 4 callersFunctionbert_extract_item
(start_logits, end_logits)
fengshen/metric/utils_ner.py:250
↓ 4 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/nn.py:124
↓ 4 callersMethoddetokenize
(self, token_ids)
fengshen/examples/ziya_llama/finetune_ziya_llama.py:120
↓ 4 callersMethodencode
(self, item)
fengshen/data/t5_dataloader/t5_datasets.py:462
↓ 4 callersMethodencode
(self, item, labeled=True)
fengshen/models/tcbert/modeling_tcbert.py:60
↓ 4 callersMethodencode
(self, item, used_mask=False)
fengshen/models/ubert/modeling_ubert.py:72
↓ 4 callersMethodfit
(self, train_data, dev_data,test_data=[])
fengshen/pipelines/information_extraction.py:90
↓ 4 callersMethodgen_test
(self, sample_num)
fengshen/models/GAVAE/gans_model.py:451
↓ 4 callersFunctionget_class_from_dynamic_module
Extracts a class from a module file, present in the local folder or repository of a model. <Tip warning={true}> Calling this function w
fengshen/models/auto/dynamic.py:107
↓ 4 callersFunctionget_consume_samples
(data_model: LightningDataModule)
fengshen/data/universal_datamodule/universal_datamodule.py:8
↓ 4 callersMethodget_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
fengshen/models/longformer/modeling_longformer.py:1237
↓ 4 callersFunctionget_norm
(config)
fengshen/models/megatron/layers/norms.py:20
↓ 4 callersFunctionmodel_type_to_module_name
Converts a config key to the corresponding module.
fengshen/models/auto/configuration_auto.py:57
↓ 4 callersMethodpipelines_args
(parent_args)
fengshen/pipelines/multiplechoice.py:43
↓ 4 callersFunctionprune_linear_layer
Prune a linear layer (a model parameters) to keep only entries in index. Return the pruned layer as a new layer with requires_grad=True.
fengshen/models/zen2/modeling.py:159
↓ 4 callersFunctionread_longs
(f, n)
fengshen/data/megatron_dataloader/indexed_dataset.py:85
↓ 4 callersMethodsearch_index
(self, entity_idx, text)
fengshen/models/uniex/modeling_uniex.py:255
↓ 4 callersMethodshard
(self, x, dim)
fengshen/utils/llama_convert/convert_fs_llama_tp.py:85
↓ 4 callersMethodtokenize
(self, text)
fengshen/models/zen1/tokenization.py:125
↓ 4 callersFunctiontokenizer_class_from_name
(class_name: str)
fengshen/models/auto/tokenization_auto.py:70
↓ 4 callersFunctiontop_k_logits
(logits, top_k=0, top_p=0.0, filter_value=-float('Inf'))
fengshen/utils/transfo_xl_utils.py:6
↓ 4 callersMethodtrain
(self, train_data, dev_data, process=True)
fengshen/models/unimc/modeling_unimc.py:498
↓ 4 callersFunctionwrite_longs
(f, a)
fengshen/data/megatron_dataloader/indexed_dataset.py:91
↓ 4 callersMethodzero_grad
(self)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:173
↓ 4 callersFunctionzero_module
Zero out the parameters of a module and return it.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/nn.py:68
↓ 3 callersMethod__init__
(self, data_path, args)
fengshen/data/t5_dataloader/t5_datasets.py:439
↓ 3 callersMethod__init__
(self, args, num_data)
fengshen/examples/classification/finetune_classification.py:240
↓ 3 callersMethod__init__
(self, pre_train_dir, nlabels)
fengshen/models/tcbert/modeling_tcbert.py:204
↓ 3 callersMethod__init__
( self, config, input_size, output_size, bias=True, input_is_p
fengshen/models/megatron/mpu/layers.py:393
↓ 3 callersMethod__init__
(self, config, num_labels, loss_type)
fengshen/models/tagging_models/bert_for_tagging.py:58
↓ 3 callersMethod__init__
(self, in_size, out_size, bias_x=True, bias_y=True)
fengshen/models/tagging_models/layers/linears.py:43
↓ 3 callersMethod__init__
(self, latent_dim=128, bottle_dim=20)
fengshen/models/PPVAE/pluginVAE.py:14
↓ 3 callersMethod__init__
(self, pre_train_dir, yes_token)
fengshen/models/unimc/modeling_unimc.py:298
↓ 3 callersMethod__init__
(self, config: DellaModelConfig)
fengshen/models/deepVAE/deep_vae.py:228
↓ 3 callersMethod_convert_id_to_token
Converts an index (integer) in a token (str) using the vocab.
fengshen/examples/pegasus/tokenizers_pegasus.py:236
↓ 3 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
fengshen/models/deltalm/modeling_deltalm.py:73
↓ 3 callersFunction_gather
Gather tensors and concatinate along the last dimension.
fengshen/models/megatron/mpu/mappings.py:79
↓ 3 callersFunction_reduce
All-reduce the the input tensor across model parallel group.
fengshen/models/megatron/mpu/mappings.py:29
↓ 3 callersMethod_special_token_mask
(self, seq)
fengshen/examples/pegasus/tokenizers_pegasus.py:336
↓ 3 callersFunction_split
Split the tensor along its last dimension and keep the corresponding slice.
fengshen/models/megatron/mpu/mappings.py:51
↓ 3 callersMethod_vb_terms_bpd
Get a term for the variational lower-bound. The resulting units are bits (rather than nats, as one might expect). This allow
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:1117
↓ 3 callersMethodadd_data_specific_args
(parent_args)
fengshen/examples/finetune_bart_qg/finetune_bart.py:45
↓ 3 callersMethodadd_insertion_noise
(self, tokens, p)
fengshen/data/megatron_dataloader/bart_dataset.py:422
↓ 3 callersMethodadd_pipeline_specific_args
(parent_args)
fengshen/pipelines/sequence_tagging.py:191
↓ 3 callersMethodadd_sequential_shard
(self, dictionary)
fengshen/utils/llama_convert/convert_fs_llama_tp.py:96
↓ 3 callersMethodbackward
(self, grad_output)
fengshen/models/deberta_v2/modeling_deberta_v2.py:119
↓ 3 callersFunctionbias_dropout_add
( x: Tensor, bias: Tensor, residual: Optional[Tensor], prob: float, training: bool )
fengshen/models/megatron/layers/fused_bias_dropout.py:28
↓ 3 callersFunctionbuild_dataset
(index, name)
fengshen/data/megatron_dataloader/dataset_utils.py:609
↓ 3 callersFunctionbuild_relative_position
Build relative position according to the query and key We assume the absolute position of query \\(P_q\\) is range from (0, query_size) and
fengshen/models/deberta_v2/modeling_deberta_v2.py:543
↓ 3 callersMethodcomput_metrix
(self, logits, labels)
fengshen/examples/pretrain_t5/finetune_t5.py:77
↓ 3 callersMethodcomput_metrix_span
(self, logits, labels)
fengshen/models/ubert/modeling_ubert.py:392
↓ 3 callersFunctionconnect
Returns: Tensor1, Tensor2 Tensor1: the tensor latent z with shape [batch, nsamples, nz]
fengshen/models/deepVAE/utils.py:90
↓ 3 callersFunctioncreate_gaussian_diffusion
( *, steps=1000, learn_sigma=False, sigma_small=False, noise_schedule="linear", use_kl
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/script_util.py:390
↓ 3 callersFunctioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective. Note: Tokens here are vocab ids and not text tokens.
fengshen/data/data_utils/mask_utils.py:18
↓ 3 callersMethoddetokenize
(self, token_ids)
fengshen/examples/pretrain_randeng_bart/pretrain_bart.py:194
↓ 3 callersMethodencode
(self, item)
fengshen/data/task_dataloader/task_datasets.py:131
↓ 3 callersMethodextract
(self, batch_data, model)
fengshen/models/uniex/modeling_uniex.py:1568
↓ 3 callersMethodextract_index
(self, span_logits, sample_length, split_value=0.5)
fengshen/models/uniex/modeling_uniex.py:1547
↓ 3 callersMethodforward
(self, ids, mask, token_type_ids, labels)
fengshen/examples/clue_sim/finetune_clue_sim.py:257
↓ 3 callersFunctionget_activation
retrieves the activation function specified in config
fengshen/models/megatron/layers/activations.py:27
↓ 3 callersMethodget_att_mask
(self, attention_mask, entity_labels_idx, relation_labels_idx, entity_type_list=None, relation_type_list=None,
fengshen/models/uniex/modeling_uniex.py:322
↓ 3 callersMethodget_attn_mask
(self, seq_length)
fengshen/models/DAVAE/GPT2ModelForLatent.py:634
↓ 3 callersFunctionget_data_parallel_group
Get the data parallel group the caller rank belongs to.
fengshen/models/megatron/mpu/initialize.py:183
↓ 3 callersFunctionget_entity_f1
(test_data,pred_data)
fengshen/models/uniex/modeling_uniex.py:44
↓ 3 callersMethodget_examples
See base class.
fengshen/examples/zen2_finetune/fengshen_token_level_ft_task.py:233
↓ 3 callersMethodget_examples
Gets a collection of `InputExample`s for the train set.
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:85
↓ 3 callersMethodget_examples
See base class.
fengshen/examples/zen1_finetune/fengshen_token_level_ft_task.py:208
↓ 3 callersMethodget_examples
Gets a collection of `InputExample`s for the train set.
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:82
↓ 3 callersMethodget_latent_vecs
(self, layer_hidden_states, sample=True, beta_logvar=1., cond_inputs=None)
fengshen/models/deepVAE/deep_vae.py:111
↓ 3 callersFunctionimage_transform
( image_size: int, is_train: bool, mean=(0.48145466, 0.4578275, 0.40821073), s
fengshen/data/clip_dataloader/flickr.py:48
↓ 3 callersFunctioninsert_head_doc
(docstring, head_doc="")
fengshen/models/auto/auto_factory.py:474
↓ 3 callersMethodlatent_code_from_text_batch
(self,texts)
fengshen/models/DAVAE/DAVAEModel.py:65
↓ 3 callersFunctionload_data
(data_path)
fengshen/examples/clue1.1/solution/clue_unimc.py:8
↓ 3 callersFunctionload_data
(data_path)
fengshen/examples/clue1.1/solution/clue_ubert.py:7
↓ 3 callersFunctionload_data
(data_path)
fengshen/examples/uniex/example.py:10
↓ 3 callersFunctionload_data
(data_path)
fengshen/models/unimc/modeling_unimc.py:607
↓ 3 callersFunctionload_data
(data_path)
fengshen/models/uniex/modeling_uniex.py:1941
↓ 3 callersMethodloss
(self, outputs, targets)
fengshen/examples/clue_sim/finetune_clue_sim.py:209
↓ 3 callersMethodmonitor_metrics
(self, outputs, targets)
fengshen/examples/clue_sim/finetune_clue_sim.py:243
↓ 3 callersMethodpiplines_args
(parent_args)
fengshen/pipelines/tcbert.py:42
↓ 3 callersMethodpredict
(self, test_data, cuda=True, process=True)
fengshen/pipelines/multiplechoice.py:98
↓ 3 callersMethodpreprocess
(self, data)
fengshen/pipelines/multiplechoice.py:118
↓ 3 callersMethodpreprocess
(self, data)
fengshen/models/unimc/modeling_unimc.py:527
↓ 3 callersFunctionprint_split_stats
(name, index)
fengshen/data/megatron_dataloader/dataset_utils.py:595
↓ 3 callersMethodprocess_event_choice
(self, choice)
fengshen/models/uniex/modeling_uniex.py:415
← previousnext →101–200 of 2,547, ranked by callers