MCPcopy Create free account

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

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

Methodencode
(self, text)
fengshen/models/clip/modeling_taiyi_clip.py:285
Methodend_document
(self)
fengshen/data/megatron_dataloader/indexed_dataset.py:299
Methodend_document
(self)
fengshen/data/megatron_dataloader/indexed_dataset.py:566
Functionerf_gelu
(x)
fengshen/models/megatron/layers/activations.py:99
Functionerror
(*args)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:265
Methodexec_func
(*inputs)
fengshen/models/megatron/layers/utils.py:122
Methodexec_range_func
Helper function to be used with checkpoint() Adapted from torch.utils.checkpoint:checkpoint_sequential()
fengshen/models/megatron/layers/utils.py:117
Methodexists
(path)
fengshen/data/megatron_dataloader/indexed_dataset.py:547
Methodextract
(self, batch_data, model)
fengshen/models/uniex/modeling_uniex.py:1243
Methodextract_index
(self, span_logits, sample_length, split_value=0.5)
fengshen/models/uniex/modeling_uniex.py:1226
Functionextract_ngram_feature
(tokens, ngram_dict, max_seq_len, seg_id_limit)
fengshen/models/zen2/ngram_utils.py:125
Methodfeed_forward_chunk
(self, attention_output)
fengshen/models/roformer/modeling_roformer.py:557
Functionfengshen_post
(data:RequestDataStructure)
fengshen/API/main.py:45
Functionfetch
(url_or_path)
fengshen/examples/disco_project/disco.py:167
Methodff_chunk
(self, attention_output)
fengshen/models/albert/modeling_albert.py:400
Methodff_chunk
(self, attn_output)
fengshen/models/longformer/modeling_longformer.py:1414
Methodfinalize
(self, index_file)
fengshen/data/megatron_dataloader/indexed_dataset.py:322
Methodfinalize
(self, index_file)
fengshen/data/megatron_dataloader/indexed_dataset.py:581
Functionflash_attn_unpadded_qkvpacked_func
( qkv, cu_seqlens, max_seqlen, dropout_p, softmax_scale=None, causal=False, return
fengshen/models/megatron/layers/flash_attention.py:174
Functionflask_gen
(text: str = Body('', title='原文', embed=True), n_sample: int = 5, length: int = 32, is_bea
fengshen/examples/mt5_summary/fastapi_mt5_summary.py:40
Methodflatten_output_collection_property
(name: str, field: Iterable[Any])
fengshen/models/megatron_t5/configuration_megatron_t5.py:244
Methodfor_model
(cls, model_type: str, *args, **kwargs)
fengshen/models/auto/configuration_auto.py:258
Methodforward
input: [N, C] target: [N, ]
fengshen/examples/clue_sim/loss.py:28
Methodforward
(self, output, target)
fengshen/examples/clue_sim/loss.py:49
Methodforward
(self, image, text)
fengshen/examples/pretrain_taiyi_clip/pretrain.py:104
Methodforward
(self, **batch)
fengshen/examples/hubert/pretrain_hubert.py:153
Methodforward
(self, x, target)
fengshen/examples/finetune_bart_qg/utils.py:35
Methodforward
(self, x)
fengshen/examples/finetune_taiyi_stable_diffusion/evaluate_model.py:45
Methodforward
(self, x)
fengshen/examples/finetune_taiyi_stable_diffusion/evaluate_model.py:84
Methodforward
(self, **batch)
fengshen/examples/pretrain_erlangshen_deberta_v2/pretrain_deberta.py:141
Methodforward
(self, input)
fengshen/examples/disco_project/disco.py:255
Methodforward
(self, input)
fengshen/examples/disco_project/disco.py:302
Methodforward
(self, x)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/nn.py:18
Methodforward
(ctx, run_function, length, *args)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/nn.py:144
Methodforward
(self, x)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:45
Methodforward
Apply the module to `x` given `emb` timestep embeddings.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:62
Methodforward
(self, x, emb)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:74
Methodforward
(self, x)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:140
Methodforward
Apply the block to a Tensor, conditioned on a timestep embedding. :param x: an [N x C x ...] Tensor of features. :param emb:
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:226
Methodforward
(self, x)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:298
Methodforward
Apply QKV attention. :param qkv: an [N x (H * 3 * C) x T] tensor of Qs, Ks, and Vs. :return: an [N x (H * C) x T] tensor aft
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:339
Methodforward
Apply QKV attention. :param qkv: an [N x (3 * H * C) x T] tensor of Qs, Ks, and Vs. :return: an [N x (H * C) x T] tensor aft
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:372
Methodforward
Apply the model to an input batch. :param x: an [N x C x ...] Tensor of inputs. :param timesteps: a 1-D batch of timesteps.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:636
Methodforward
(self, x, timesteps, low_res=None, **kwargs)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:678
Methodforward
Apply the model to an input batch. :param x: an [N x C x ...] Tensor of inputs. :param timesteps: a 1-D batch of timesteps.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:873
Methodforward
(self, x, timesteps, y=None)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:966
Methodforward
(self, input_ids, attention_mask, token_type_ids, labels=None)
fengshen/examples/classification/finetune_classification.py:214
Methodforward
(self, **batch)
fengshen/examples/pretrain_erlangshen_bert/pretrain_erlangshen.py:151
Methodforward
(self, **batch)
fengshen/examples/ziya_llama/finetune_ziya_llama.py:117
Methodforward
(self, input_ids, attention_mask, token_type_ids, mlmlabels=None)
fengshen/models/tcbert/modeling_tcbert.py:218
Methodforward
( self, input_ids=None, token_type_ids=None, position_ids=None, inputs_embeds=None, past_key_values_le
fengshen/models/albert/modeling_albert.py:228
Methodforward
(self, hidden_states, attention_mask=None, head_mask=None, output_attentions=False)
fengshen/models/albert/modeling_albert.py:318
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, output_attentions=False, output_hidden_sta
fengshen/models/albert/modeling_albert.py:385
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, output_attentions=False, output_hidden_sta
fengshen/models/albert/modeling_albert.py:413
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, output_att
fengshen/models/albert/modeling_albert.py:445
Methodforward
( self, input_ids=None, attention_mask=None, token_type_ids=None, posi
fengshen/models/albert/modeling_albert.py:674
Methodforward
r""" labels (``torch.LongTensor`` of shape ``(batch_size, sequence_length)``, `optional`): Labels for computing the masked languag
fengshen/models/albert/modeling_albert.py:775
Methodforward
(self, hidden_states)
fengshen/models/albert/modeling_albert.py:866
Methodforward
(self, pooled_output)
fengshen/models/albert/modeling_albert.py:888
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the masked l
fengshen/models/albert/modeling_albert.py:926
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size,)`, `optional`): Labels for computing the sequence classification/
fengshen/models/albert/modeling_albert.py:1005
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the token cl
fengshen/models/albert/modeling_albert.py:1111
Methodforward
r""" start_positions (:obj:`torch.LongTensor` of shape :obj:`(batch_size,)`, `optional`): Labels for position (index) of the start
fengshen/models/albert/modeling_albert.py:1201
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size,)`, `optional`): Labels for computing the multiple choice classifi
fengshen/models/albert/modeling_albert.py:1300
Methodforward
(self, x, seq_dim=1)
fengshen/models/megatron/layers/positional_embeddings.py:26
Methodforward
(self, x, seq_len=None)
fengshen/models/megatron/layers/positional_embeddings.py:54
Methodforward
(self, x)
fengshen/models/megatron/layers/positional_embeddings.py:130
Methodforward
(ctx, inputs, scale)
fengshen/models/megatron/layers/fused_softmax.py:33
Methodforward
(self, input, mask)
fengshen/models/megatron/layers/fused_softmax.py:140
Methodforward
(self, x)
fengshen/models/megatron/layers/utils.py:74
Methodforward
(self, forward_input)
fengshen/models/megatron/layers/utils.py:116
Methodforward
(self, args)
fengshen/models/megatron/layers/word_embeddings.py:145
Methodforward
(self, args: tuple)
fengshen/models/megatron/layers/word_embeddings.py:194
Methodforward
(self, hidden_states)
fengshen/models/megatron/layers/norms.py:44
Methodforward
(self, x)
fengshen/models/megatron/layers/norms.py:61
Methodforward
( ctx, qkv, cu_seqlens, max_seqlen, dropout_p, softmax_scale,
fengshen/models/megatron/layers/flash_attention.py:109
Methodforward
(ctx, input, bias)
fengshen/models/megatron/layers/activations.py:83
Methodforward
(self, x, bias=None)
fengshen/models/megatron/layers/activations.py:125
Methodforward
(self, hidden_states)
fengshen/models/megatron/layers/transformer.py:115
Methodforward
(self, hidden_states)
fengshen/models/megatron/layers/transformer.py:171
Methodforward
(self, hidden_states, attention_mask, position_ids, layer_past=None, use_cache=False)
fengshen/models/megatron/layers/transformer.py:476
Methodforward
(self, hidden_states)
fengshen/models/megatron/layers/transformer.py:620
Methodforward
(self, x, attention_mask, position_ids, layer_past=None, use_cache=False)
fengshen/models/megatron/layers/transformer.py:707
Methodforward
(self, x, attention_mask)
fengshen/models/megatron/layers/gmlp.py:43
Methodforward
(self, x, attention_mask)
fengshen/models/megatron/layers/gmlp.py:70
Methodforward
(self, args)
fengshen/models/megatron/layers/gmlp.py:133
Methodforward
(self, input_)
fengshen/models/megatron/mpu/layers.py:104
Methodforward
(self, q_len, k_len)
fengshen/models/megatron/mpu/layers.py:232
Methodforward
(self, input_)
fengshen/models/megatron/mpu/layers.py:347
Methodforward
(self, input_)
fengshen/models/megatron/mpu/layers.py:451
Methodforward
(ctx, vocab_parallel_logits, target)
fengshen/models/megatron/mpu/cross_entropy.py:29
Methodforward
(ctx, input_)
fengshen/models/megatron/mpu/mappings.py:118
Methodforward
(ctx, input_)
fengshen/models/megatron/mpu/mappings.py:134
Methodforward
(ctx, input_)
fengshen/models/megatron/mpu/mappings.py:150
Methodforward
(ctx, input_)
fengshen/models/megatron/mpu/mappings.py:166
Methodforward
r""" past_key_values (`tuple(tuple(torch.FloatTensor))` of length `config.n_layers` with each tuple having 4 tensors of shape `(batch_size, nu
fengshen/models/llama/modeling_llama.py:135
Methodforward
r""" past_key_values (`tuple(tuple(torch.FloatTensor))`, *optional*, returned when `use_cache=True` is passed or when `config.use_cache=True`)
fengshen/models/llama/modeling_llama.py:272
Methodforward
(self, input_ids, attention_mask=None, token_type_ids=None, input_len=None, position_ids=None,
fengshen/models/tagging_models/bert_for_tagging.py:31
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None,labels=None,input_len=None)
fengshen/models/tagging_models/bert_for_tagging.py:65
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, span_labels=None, span_mask=None, input_len=None)
fengshen/models/tagging_models/bert_for_tagging.py:92
← previousnext →1,701–1,800 of 2,547, ranked by callers