MCPcopy Create free account

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

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

↓ 2 callersFunctiongenerate
(queries: List[str], tokenizer: AutoTokenizer, model: LlamaForCausalLM, device: int=0, **generate_kwargs)
fengshen/examples/ziya_llama/llama_generate.py:17
↓ 2 callersFunctiongenerate_sentence
(raw_list)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:411
↓ 2 callersMethodget_attention_mask
(self, attention_mask)
fengshen/models/deberta_v2/modeling_deberta_v2.py:433
↓ 2 callersFunctionget_datasets
(args)
fengshen/data/sequence_tagging_dataloader/sequence_tagging_datasets.py:6
↓ 2 callersMethodget_embedding
Build sinusoidal embeddings. This matches the implementation in tensor2tensor, but differs slightly from the description in Section 3.
fengshen/models/zen2/modeling.py:367
↓ 2 callersFunctionget_entity_f1_strict
(test_data,pred_data, strict_f1=True)
fengshen/models/uniex/modeling_uniex.py:102
↓ 2 callersFunctionget_event_f1
(test_data,pred_data, strict_f1=True)
fengshen/models/uniex/modeling_uniex.py:164
↓ 2 callersFunctionget_fusion_type
(config)
fengshen/models/megatron/layers/utils.py:290
↓ 2 callersMethodget_image_feature
(self, images)
fengshen/examples/finetune_taiyi_stable_diffusion/evaluate_model.py:130
↓ 2 callersFunctionget_init_methods
(args)
fengshen/models/megatron/layers/init_functions.py:121
↓ 2 callersMethodget_input_embeddings
(self)
fengshen/models/deberta_v2/modeling_deberta_v2.py:989
↓ 2 callersMethodget_labels
Gets the list of labels for this data set.
fengshen/examples/zen2_finetune/fengshen_token_level_ft_task.py:247
↓ 2 callersMethodget_latent
(self,texts)
fengshen/models/PPVAE/pluginVAE.py:167
↓ 2 callersFunctionget_masks_and_position_ids
(data, mem_length=None)
fengshen/utils/transfo_xl_utils.py:53
↓ 2 callersMethodget_metrics
(self, image_features, text_features, labels, logit_scale)
fengshen/examples/clip_finetune/clip_finetune_flickr.py:135
↓ 2 callersFunctionget_model_parallel_src_rank
Calculate the global rank corresponding to a local rank zero in the model parallel group.
fengshen/models/megatron/mpu/initialize.py:223
↓ 2 callersFunctionget_param_groups_and_shapes
(named_model_params)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:82
↓ 2 callersFunctionget_pipe_parallel_group
Get the pipe parallel group the caller rank belongs to.
fengshen/models/megatron/mpu/initialize.py:261
↓ 2 callersMethodget_position_ids
(self, max_length, entity_labels_idx, relation_labels_idx)
fengshen/models/uniex/modeling_uniex.py:286
↓ 2 callersMethodget_rel_embedding
(self)
fengshen/models/deberta_v2/modeling_deberta_v2.py:427
↓ 2 callersFunctionget_rel_f1
(test_data,pred_data)
fengshen/models/uniex/modeling_uniex.py:157
↓ 2 callersMethodget_rel_pos
(self, hidden_states, query_states=None, relative_pos=None)
fengshen/models/deberta_v2/modeling_deberta_v2.py:443
↓ 2 callersFunctionget_samples_mapping
Get a list that maps a sample index to a starting sentence index, end sentence index, and length
fengshen/data/megatron_dataloader/dataset_utils.py:731
↓ 2 callersMethodget_start_end_idx
(self)
fengshen/data/universal_datamodule/universal_sampler.py:50
↓ 2 callersMethodget_sufficient_stats
(self, translations: List[str], references: List[str])
fengshen/examples/translate/finetune_deltalm.py:207
↓ 2 callersMethodget_text_feature
(self, text)
fengshen/examples/finetune_taiyi_stable_diffusion/evaluate_model.py:144
↓ 2 callersFunctionget_time_str
()
fengshen/examples/qa_t5/finetune_t5_cmrc.py:445
↓ 2 callersFunctionget_time_str
()
fengshen/examples/pretrain_t5/pretrain_t5.py:121
↓ 2 callersFunctionget_time_str
()
fengshen/examples/pretrain_t5/finetune_t5.py:101
↓ 2 callersFunctionget_tokenizer_config
Loads the tokenizer configuration from a pretrained model tokenizer configuration. Args: pretrained_model_name_or_path (`str` or `os
fengshen/models/auto/tokenization_auto.py:90
↓ 2 callersFunctioninterp
(t)
fengshen/examples/disco_project/disco.py:133
↓ 2 callersFunctionis_start_piece
Check if the current word piece is the starting piece (BERT).
fengshen/data/megatron_dataloader/dataset_utils.py:173
↓ 2 callersFunctionis_start_piece
Check if the current word piece is the starting piece (BERT).
fengshen/data/data_utils/mask_utils.py:9
↓ 2 callersMethodlabels2genx
(self, sample_num)
fengshen/models/GAVAE/gans_model.py:187
↓ 2 callersFunctionlanczos
(x, a)
fengshen/examples/disco_project/disco.py:199
↓ 2 callersFunctionlatent_code_from_text_batch
(texts, tokenizer_encoder, model_vae, args)
fengshen/models/DAVAE/run_latent_generation.py:229
↓ 2 callersFunctionload_data
(args, global_rank=0)
fengshen/data/taiyi_stable_diffusion_datasets/taiyi_datasets.py:155
↓ 2 callersMethodloss
(self, z)
fengshen/models/PPVAE/pluginVAE.py:75
↓ 2 callersFunctionmake_master_params
Copy model parameters into a (differently-shaped) list of full-precision parameters.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:35
↓ 2 callersFunctionmodel_and_diffusion_defaults
Defaults for image training.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/script_util.py:43
↓ 2 callersFunctionnormal_kl
Compute the KL divergence between two gaussians. Shapes are automatically broadcasted, so batches can be compared to scalars, among othe
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/losses.py:12
↓ 2 callersFunctionorthogonal_init_method
Fills the input Tensor with a (semi) orthogonal matrix, as described in Exact solutions to the nonlinear dynamics of learning in deep linear neura
fengshen/models/megatron/layers/init_functions.py:70
↓ 2 callersFunctionpad
(ids, pad_id, max_length)
fengshen/examples/ziya_llama/finetune_ziya_llama.py:26
↓ 2 callersFunctionpad
(ids, pad_id, max_length)
fengshen/examples/ziya_llama/sample_test.py:5
↓ 2 callersFunctionpadding_to_maxlength
(ids, max_length, pad_id)
fengshen/examples/pegasus/data_utils.py:316
↓ 2 callersFunctionparse_prompt
(prompt)
fengshen/examples/disco_project/disco.py:185
↓ 2 callersMethodpredict
(self, batch_data)
fengshen/models/unimc/modeling_unimc.py:419
↓ 2 callersMethodpredict
(self, test_data, cuda=True, process=True)
fengshen/models/unimc/modeling_unimc.py:507
↓ 2 callersMethodpredict
(self, test_data, model)
fengshen/models/uniex/modeling_uniex.py:1829
↓ 2 callersMethodpredict
(self, test_data, cuda=True)
fengshen/models/uniex/modeling_uniex.py:1925
↓ 2 callersMethodpredict
(self, predict_data, cuda=True)
fengshen/models/ubert/modeling_ubert.py:729
↓ 2 callersMethodprune_heads
(self, heads)
fengshen/models/megatron_t5/modeling_megatron_t5.py:361
↓ 2 callersFunctionramp
(ratio, width)
fengshen/examples/disco_project/disco.py:205
↓ 2 callersMethodread_data
(self, path)
fengshen/data/megatron_dataloader/indexed_dataset.py:158
↓ 2 callersFunctionreduce_from_model_parallel_region
(input_)
fengshen/models/megatron/mpu/mappings.py:183
↓ 2 callersMethodrematch
(self, text, tokens)
fengshen/models/uniex/modeling_uniex.py:1188
↓ 2 callersMethodreparameterize
sample from posterior Gaussian family Args: mu: Tensor Mean of gaussian distribution with shape (batch, nz)
fengshen/models/DAVAE/DAVAEModel.py:173
↓ 2 callersFunctionreplace_list_option_in_docstrings
(config_to_class=None, use_model_types=True)
fengshen/models/auto/configuration_auto.py:220
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
fengshen/models/megatron/layers/positional_embeddings.py:71
↓ 2 callersFunctionsample_sequence_batch
_summary_ Args: model (_type_): _description_ context_tokens_tensor (Tensor): [bs, seq_len] context_length_tensor (Tensor
fengshen/utils/transfo_xl_utils.py:67
↓ 2 callersFunctionsample_sequence_conditional_batch
(model, max_out_length, context_tokens_tensor, context_length_tensor, latent_z=None, temperature=1, top_k=0, t
fengshen/models/DAVAE/run_latent_generation.py:165
↓ 2 callersFunctionsave_data
(data,file_path)
fengshen/examples/clue1.1/data_preprocessing/cmrc2018_preprocessing.py:90
↓ 2 callersMethodsave_prediction_to_file
(self, preds, texts, summarys, file_path)
fengshen/examples/summary/seq2seq_summary.py:110
↓ 2 callersMethodsave_prediction_to_file
(self, preds, sources, targets, ori_target, file_path)
fengshen/examples/translate/finetune_deltalm.py:333
↓ 2 callersMethodsearch
(self, pattern, sequence)
fengshen/models/uniex/modeling_uniex.py:267
↓ 2 callersMethodset_doc_idx
(self, doc_idx_)
fengshen/data/megatron_dataloader/indexed_dataset.py:539
↓ 2 callersMethodset_input_embeddings
(self, new_embeddings)
fengshen/models/deberta_v2/modeling_deberta_v2.py:992
↓ 2 callersFunctionsinc
(x)
fengshen/examples/disco_project/disco.py:195
↓ 2 callersFunctionsplit_files
(model_path, tmp_path, split_size)
fengshen/utils/apply_delta.py:27
↓ 2 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may b
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/nn.py:103
↓ 2 callersMethodto_dict
Serializes this instance to a Python dictionary. Override the default [`~PretrainedConfig.to_dict`]. Returns: `Dict[str,
fengshen/models/clip/configuration_taiyi_clip.py:125
↓ 2 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/DAVAE/run_latent_generation.py:55
↓ 2 callersMethodtrain
(self, train_data, dev_data, process=True)
fengshen/pipelines/multiplechoice.py:89
↓ 2 callersMethodtrain_dataloader
(self)
fengshen/data/task_dataloader/medicalQADataset.py:107
↓ 2 callersMethodtrain_inputs
(self, batch)
fengshen/models/tcbert/modeling_tcbert.py:263
↓ 2 callersFunctiontruncate_segments
Truncates a pair of sequences to a maximum sequence length.
fengshen/data/data_utils/truncate_utils.py:2
↓ 2 callersFunctionunflatten_master_params
(param_group, master_param)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:78
↓ 2 callersFunctionzero_master_grads
(master_params)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:128
↓ 1 callersFunction__best_fitting_dtype
(vocab_size=None)
fengshen/data/megatron_dataloader/indexed_dataset.py:24
↓ 1 callersMethod__getitem__
(self, key)
fengshen/models/auto/auto_factory.py:571
↓ 1 callersMethod__init__
(self, data_path, args)
fengshen/data/task_dataloader/task_datasets.py:70
↓ 1 callersMethod__init__
(self, data_path, name, args)
fengshen/data/task_dataloader/medicalQADataset.py:16
↓ 1 callersMethod__init__
(self, data_path, args, data, load_data_type=1)
fengshen/data/t5_dataloader/t5_gen_datasets.py:39
↓ 1 callersMethod__init__
(self, processor, mode='train')
fengshen/data/sequence_tagging_dataloader/sequence_tagging_datasets.py:104
↓ 1 callersMethod__init__
(self, foloder_name, thres=0.2)
fengshen/data/taiyi_stable_diffusion_datasets/taiyi_datasets.py:35
↓ 1 callersMethod__init__
(self)
fengshen/metric/metric.py:37
↓ 1 callersMethod__init__
(self, args, model, label2id, validate_fn)
fengshen/pipelines/sequence_tagging.py:52
↓ 1 callersMethod__init__
(self, args, model)
fengshen/pipelines/text_classification.py:44
↓ 1 callersMethod__init__
(self, gamma=2, weight=None, ignore_index=-100)
fengshen/examples/clue_sim/loss.py:22
↓ 1 callersMethod__init__
(self, args)
fengshen/examples/clue_sim/finetune_clue_sim.py:137
↓ 1 callersMethod__init__
(self, args, processor)
fengshen/examples/pretrain_taiyi_clip/pretrain.py:33
↓ 1 callersMethod__init__
(self, dictionary: Dictionary)
fengshen/examples/hubert/pretrain_hubert.py:20
↓ 1 callersMethod__init__
(self, tokenizer, args)
fengshen/examples/finetune_bart_qg/finetune_bart.py:58
↓ 1 callersMethod__init__
(self, do_lower_case=True, never_split=None, tokenize_chine
fengshen/examples/pegasus/tokenizers_pegasus.py:417
↓ 1 callersMethod__init__
(self, args, tokenizer)
fengshen/examples/finetune_taiyi_stable_diffusion/finetune.py:26
↓ 1 callersMethod__init__
(self, model, tokenizer, max_enc_length, max_dec_length, reverse_src_tgt)
fengshen/examples/translate/finetune_deltalm.py:85
↓ 1 callersMethod__init__
(self, model, timestep_map, rescale_timesteps, original_num_steps)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/respace.py:117
↓ 1 callersMethod__init__
(self, func)
fengshen/models/megatron/layers/utils.py:70
↓ 1 callersMethod__init__
( self, config, hidden_size, vocab_size, max_sequence_length,
fengshen/models/megatron/layers/word_embeddings.py:36
↓ 1 callersMethod__init__
LlamaRMSNorm is equivalent to T5LayerNorm
fengshen/models/megatron/layers/norms.py:36
← previousnext →301–400 of 2,547, ranked by callers