MCPcopy Create free account

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

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

↓ 1 callersMethod__init__
(self, config)
fengshen/models/llama/modeling_llama.py:99
↓ 1 callersMethod__init__
( self, args, **kwargs, )
fengshen/models/bart/modeling_bart.py:385
↓ 1 callersMethod__init__
(self, config: TaiyiCLIPConfig)
fengshen/models/clip/modeling_taiyi_clip.py:31
↓ 1 callersMethod__init__
(self,config, encoder, decoder, latent_size, pad_token_id)
fengshen/models/DAVAE/DAVAEModel.py:125
↓ 1 callersMethod__init__
(self, cls_num, z_dim, cls_batch_size)
fengshen/models/GAVAE/gans_model.py:37
↓ 1 callersFunction_apply_prefix
(query)
fengshen/examples/ziya_llama/llama_generate.py:18
↓ 1 callersFunction_build_key_size_numel_dictionaries
Build the size on rank 0 and broadcast.
fengshen/models/megatron/mpu/data.py:35
↓ 1 callersFunction_check_data_types
Check that all the keys have the same target data type.
fengshen/models/megatron/mpu/data.py:25
↓ 1 callersMethod_cjk_punctuation
()
fengshen/examples/pegasus/tokenizers_pegasus.py:241
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
fengshen/examples/pegasus/tokenizers_pegasus.py:534
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
fengshen/models/zen1/tokenization.py:327
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
fengshen/models/zen2/tokenization.py:349
↓ 1 callersMethod_compute_attn_output_with_global_indices
( self, value_vectors, attn_probs, max_num_global_attn_indices, is_ind
fengshen/models/longformer/modeling_longformer.py:1091
↓ 1 callersMethod_compute_global_attn_output_from_hidden
( self, global_query_vectors, global_key_vectors, global_value_vectors,
fengshen/models/longformer/modeling_longformer.py:1129
↓ 1 callersMethod_compute_normalizer
(self, emissions: torch.Tensor, mask: torch.ByteTensor)
fengshen/models/tagging_models/layers/crf.py:197
↓ 1 callersMethod_compute_score
(self, emissions: torch.Tensor, tags: torch.LongTensor, mask: to
fengshen/models/tagging_models/layers/crf.py:164
↓ 1 callersMethod_concat_with_global_key_attn_probs
( self, key_vectors, query_vectors, max_num_global_attn_indices, is_in
fengshen/models/longformer/modeling_longformer.py:1063
↓ 1 callersFunction_configure_default_logger
()
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:473
↓ 1 callersMethod_create_examples
(self, lines, set_type)
fengshen/data/sequence_tagging_dataloader/sequence_tagging_datasets.py:63
↓ 1 callersMethod_create_examples
(self, lines, set_type)
fengshen/examples/zen2_finetune/fengshen_token_level_ft_task.py:238
↓ 1 callersMethod_create_examples
Creates examples for the training and dev sets.
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:151
↓ 1 callersMethod_create_examples
Creates examples for the training and dev sets.
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:179
↓ 1 callersMethod_create_examples
(self, lines, set_type)
fengshen/examples/zen1_finetune/fengshen_token_level_ft_task.py:213
↓ 1 callersMethod_create_examples
Creates examples for the training and dev sets.
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:148
↓ 1 callersMethod_create_examples
Creates examples for the training and dev sets.
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:176
↓ 1 callersMethod_do_log
(self, args)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:396
↓ 1 callersFunction_flash_attn_backward
num_splits: whether to parallelize over the seqlen_k dimension (num_splits > 1) or not (num_splits = 1). num_splits=0 means it will be set by
fengshen/models/megatron/layers/flash_attention.py:54
↓ 1 callersFunction_flash_attn_forward
num_splits: how much to parallelize over the seqlen_q dimension. num_splits=0 means it will be set by an internal heuristic. We're exposing n
fengshen/models/megatron/layers/flash_attention.py:10
↓ 1 callersMethod_get_bias_dropout
(self)
fengshen/models/megatron/layers/transformer.py:696
↓ 1 callersFunction_get_cuda_bare_metal_version
(cuda_dir)
fengshen/models/megatron/fused_kernels/setup.py:8
↓ 1 callersMethod_get_global_attn_indices
compute global attn indices required throughout forward pass
fengshen/models/longformer/modeling_longformer.py:1032
↓ 1 callersMethod_get_pointers
(sizes)
fengshen/data/megatron_dataloader/indexed_dataset.py:361
↓ 1 callersFunction_get_question_end_index
Computes the index of the first occurrence of `sep_token_id`.
fengshen/models/longformer/modeling_longformer.py:393
↓ 1 callersMethod_get_slopes
Get slopes for Alibi positional embedding n : int = number of heads. For best performance, restrict n to a power of 2.
fengshen/models/megatron/layers/positional_embeddings.py:107
↓ 1 callersMethod_is_checkpointable
(self, funcs)
fengshen/models/megatron/layers/utils.py:97
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
fengshen/examples/pegasus/tokenizers_pegasus.py:512
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
fengshen/models/zen1/tokenization.py:305
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
fengshen/models/zen2/tokenization.py:327
↓ 1 callersFunction_is_control
Checks whether `char` is a control character.
fengshen/examples/pegasus/data_utils.py:58
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
fengshen/models/zen1/tokenization.py:413
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
fengshen/models/zen2/tokenization.py:435
↓ 1 callersMethod_is_control
(ch)
fengshen/models/uniex/modeling_uniex.py:1182
↓ 1 callersMethod_is_control
(ch)
fengshen/models/ubert/modeling_ubert.py:448
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
fengshen/models/zen1/tokenization.py:425
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
fengshen/models/zen2/tokenization.py:447
↓ 1 callersMethod_is_special
(ch)
fengshen/models/uniex/modeling_uniex.py:1185
↓ 1 callersMethod_is_special
(ch)
fengshen/models/ubert/modeling_ubert.py:452
↓ 1 callersFunction_is_whitespace
Checks whether `char` is a whitespace character.
fengshen/examples/pegasus/data_utils.py:46
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
fengshen/models/zen1/tokenization.py:401
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
fengshen/models/zen2/tokenization.py:423
↓ 1 callersFunction_list_model_options
(indent, config_to_class=None, use_model_types=True)
fengshen/models/auto/configuration_auto.py:188
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
fengshen/models/deltalm/modeling_deltalm.py:58
↓ 1 callersFunction_make_linear_from_emb
(emb)
fengshen/models/bart/modeling_bart.py:32
↓ 1 callersMethod_mask_invalid_locations
(input_tensor, affected_seq_len)
fengshen/models/longformer/modeling_longformer.py:899
↓ 1 callersMethod_merge_to_attention_mask
(self, attention_mask: torch.Tensor, global_attention_mask: torch.Tensor)
fengshen/models/longformer/modeling_longformer.py:1776
↓ 1 callersMethod_optimize_fp16
(self, opt: th.optim.Optimizer)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:189
↓ 1 callersMethod_optimize_normal
(self, opt: th.optim.Optimizer)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:209
↓ 1 callersFunction_orthogonal
(tensor, gain=1)
fengshen/models/megatron/layers/init_functions.py:40
↓ 1 callersMethod_pad_and_diagonalize
shift every row 1 step right, converting columns into diagonals. Example:: chunked_hidden_states: [ 0.4983, 2.6918,
fengshen/models/longformer/modeling_longformer.py:845
↓ 1 callersMethod_pad_and_transpose_last_two_dims
pads rows and then flips rows and columns
fengshen/models/longformer/modeling_longformer.py:834
↓ 1 callersMethod_pad_to_window_size
A helper function to pad tokens and mask to work with implementation of Longformer self-attention.
fengshen/models/longformer/modeling_longformer.py:1723
↓ 1 callersMethod_predict_xstart_from_xprev
(self, x_t, t, xprev)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:326
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
fengshen/models/deltalm/modeling_deltalm.py:513
↓ 1 callersMethod_prior_bpd
Get the prior KL term for the variational lower-bound, measured in bits-per-dim. This term can't be optimized, as it only de
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:1227
↓ 1 callersMethod_read_text
(self, input_file)
fengshen/data/sequence_tagging_dataloader/sequence_tagging_datasets.py:79
↓ 1 callersMethod_read_tsv
read file return format : [ ['EU', 'B-ORG'], ['rejects', 'O'], ['German', 'B-MISC'], ['call', 'O'], ['to', 'O'], ['boycott',
fengshen/examples/zen2_finetune/fengshen_token_level_ft_task.py:255
↓ 1 callersMethod_read_tsv
read file return format : [ ['EU', 'B-ORG'], ['rejects', 'O'], ['German', 'B-MISC'], ['call', 'O'], ['to', 'O'], ['boycott',
fengshen/examples/zen1_finetune/fengshen_token_level_ft_task.py:230
↓ 1 callersMethod_rel_shift
(x, zero_triu=False)
fengshen/models/DAVAE/GPT2ModelForLatent.py:148
↓ 1 callersMethod_rel_shift
(x, zero_triu=False)
fengshen/models/transfo_xl_denoise/modeling_transfo_xl_denoise.py:234
↓ 1 callersMethod_relative_position_bucket
( self, relative_position, num_buckets=32, max_distance=128 )
fengshen/models/megatron/mpu/layers.py:201
↓ 1 callersMethod_relative_position_bucket
Adapted from Mesh Tensorflow: https://github.com/tensorflow/mesh/blob/0cb87fe07da627bf0b7e60475d59f95ed6b5be3d/mesh_tensorflow/transf
fengshen/models/megatron_t5/modeling_megatron_t5.py:379
↓ 1 callersFunction_reorder_buffer
(attn_cache, new_order)
fengshen/models/bart/modeling_bart.py:25
↓ 1 callersMethod_resize_final_logits_bias
(self, new_num_tokens: int, old_num_tokens: int)
fengshen/models/bart/modeling_bart.py:139
↓ 1 callersMethod_resize_final_logits_bias
(self, new_num_tokens: int)
fengshen/models/deltalm/modeling_deltalm.py:1191
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
fengshen/examples/pegasus/tokenizers_pegasus.py:477
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
fengshen/models/zen1/tokenization.py:270
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
fengshen/models/zen2/tokenization.py:292
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
fengshen/models/zen1/tokenization.py:259
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
fengshen/models/zen2/tokenization.py:281
↓ 1 callersMethod_set_deepspeed_activation_checkpointing
(self)
fengshen/strategies/megatron_deepspeed.py:322
↓ 1 callersMethod_shift
类似 -3 -2 -1 0 1 2 -3 -2 -1 0 1 2 -3 -2 -1 0 1 2 转换为 0 1 2 -1 0 1 -2 -1 0
fengshen/models/zen2/modeling.py:487
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
fengshen/examples/pegasus/tokenizers_pegasus.py:499
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
fengshen/models/zen1/tokenization.py:292
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
fengshen/models/zen2/tokenization.py:314
↓ 1 callersFunction_tokenizing
(queries)
fengshen/examples/ziya_llama/llama_generate.py:21
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:331
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:311
↓ 1 callersMethod_viterbi_decode
(self, emissions: torch.FloatTensor, mask: torch.ByteTensor, p
fengshen/models/tagging_models/layers/crf.py:243
↓ 1 callersMethod_viterbi_decode_nbest
(self, emissions: torch.FloatTensor, mask: torch.ByteTensor,
fengshen/models/tagging_models/layers/crf.py:325
↓ 1 callersMethod_warmed_up
(self)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/resample.py:153
↓ 1 callersFunctionadd_data_args
(parent_args)
fengshen/data/dreambooth_datasets/dreambooth_datasets.py:26
↓ 1 callersMethodadd_data_specific_args
(parent_args)
fengshen/data/t5_dataloader/t5_gen_datasets.py:215
↓ 1 callersMethodadd_data_specific_args
(parent_args)
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:422
↓ 1 callersMethodadd_data_specific_args
(parent_args)
fengshen/examples/classification/finetune_classification.py:126
↓ 1 callersMethodadd_data_specific_args
(parent_args)
fengshen/examples/zen1_finetune/fengshen_token_level_ft_task.py:382
↓ 1 callersMethodadd_data_specific_args
(parent_args)
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:383
↓ 1 callersMethodadd_data_specific_args
(parent_args)
fengshen/models/unimc/modeling_unimc.py:237
↓ 1 callersMethodadd_data_specific_args
(parent_args)
fengshen/models/uniex/modeling_uniex.py:818
↓ 1 callersMethodadd_data_specific_args
(parent_args)
fengshen/models/ubert/modeling_ubert.py:198
↓ 1 callersFunctionadd_inverse_square_args
(parent_args)
fengshen/models/model_utils.py:31
← previousnext →401–500 of 2,547, ranked by callers