MCPcopy Create free account

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

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

Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
fengshen/models/roformer/modeling_roformer.py:267
Methodforward
(self, hidden_states, residual)
fengshen/models/roformer/modeling_roformer.py:384
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
fengshen/models/roformer/modeling_roformer.py:419
Methodforward
(self, hidden_states)
fengshen/models/roformer/modeling_roformer.py:455
Methodforward
(self, hidden_states, input_tensor)
fengshen/models/roformer/modeling_roformer.py:468
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
fengshen/models/roformer/modeling_roformer.py:490
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
fengshen/models/roformer/modeling_roformer.py:600
Methodforward
(self, hidden_states)
fengshen/models/roformer/modeling_roformer.py:706
Methodforward
(self, hidden_states)
fengshen/models/roformer/modeling_roformer.py:727
Methodforward
(self, hidden_states)
fengshen/models/roformer/modeling_roformer.py:749
Methodforward
(self, sequence_output)
fengshen/models/roformer/modeling_roformer.py:761
Methodforward
(self, pooled_output)
fengshen/models/roformer/modeling_roformer.py:772
Methodforward
(self, sequence_output, pooled_output)
fengshen/models/roformer/modeling_roformer.py:784
Methodforward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
fengshen/models/roformer/modeling_roformer.py:968
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape ``(batch_size, sequence_length)``, `optional`): Labels for computing the masked lang
fengshen/models/roformer/modeling_roformer.py:1131
Methodforward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
fengshen/models/roformer/modeling_roformer.py:1245
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the masked l
fengshen/models/roformer/modeling_roformer.py:1401
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size,)`, `optional`): Labels for computing the next sequence prediction
fengshen/models/roformer/modeling_roformer.py:1493
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size,)`, `optional`): Labels for computing the sequence classification/
fengshen/models/roformer/modeling_roformer.py:1602
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size,)`, `optional`): Labels for computing the multiple choice classifi
fengshen/models/roformer/modeling_roformer.py:1690
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the token cl
fengshen/models/roformer/modeling_roformer.py:1790
Methodforward
r""" start_positions (:obj:`torch.LongTensor` of shape :obj:`(batch_size,)`, `optional`): Labels for position (index) of the start
fengshen/models/roformer/modeling_roformer.py:1882
Methodforward
(self, inputs, labels, beta=0.0, iw=None, fb_mode=0, emb_noise=None)
fengshen/models/DAVAE/DAVAEModel.py:203
Methodforward
(self, pos_seq, bsz=None)
fengshen/models/DAVAE/GPT2ModelForLatent.py:40
Methodforward
(self, hidden_states, ltor_mask, position_embeddings=None, r_w_bias=None, r_r_bias=None, mem=None)
fengshen/models/DAVAE/GPT2ModelForLatent.py:188
Methodforward
(self, hidden_states)
fengshen/models/DAVAE/GPT2ModelForLatent.py:289
Methodforward
(self, hidden_states, ltor_mask, position_embeddings=None, r_w_bias=None, r_r_bias=None, mem=None)
fengshen/models/DAVAE/GPT2ModelForLatent.py:366
Methodforward
(self, hidden_states, attention_mask, latent_state, mems)
fengshen/models/DAVAE/GPT2ModelForLatent.py:501
Methodforward
(self, input_ids, attention_mask, latent_state, mems=None, labels=None, label_ignore=None)
fengshen/models/DAVAE/GPT2ModelForLatent.py:613
Methodforward
(self, input_ids, attention_mask=None, token_type_ids=None, position_ids=None, head_mask=None, emb_noise=None)
fengshen/models/DAVAE/BertForLatentConnector.py:89
Methodforward
(self, x)
fengshen/models/zen2/modeling.py:282
Methodforward
(self, input_ids, token_type_ids=None)
fengshen/models/zen2/modeling.py:303
Methodforward
(self, input_ids, token_type_ids=None)
fengshen/models/zen2/modeling.py:330
Methodforward
Input is expected to be of size [bsz x seqlen].
fengshen/models/zen2/modeling.py:385
Methodforward
(self, hidden_states, attention_mask, head_mask=None)
fengshen/models/zen2/modeling.py:440
Methodforward
(self, hidden_states, input_tensor)
fengshen/models/zen2/modeling.py:517
Methodforward
(self, input_tensor, attention_mask, head_mask=None)
fengshen/models/zen2/modeling.py:549
Methodforward
(self, hidden_states)
fengshen/models/zen2/modeling.py:569
Methodforward
(self, hidden_states, input_tensor)
fengshen/models/zen2/modeling.py:582
Methodforward
(self, hidden_states, attention_mask, head_mask=None)
fengshen/models/zen2/modeling.py:598
Methodforward
(self, hidden_states, ngram_hidden_states, ngram_position_matrix, attention_mask, ngram_attent
fengshen/models/zen2/modeling.py:619
Methodforward
(self, hidden_states)
fengshen/models/zen2/modeling.py:652
Methodforward
(self, hidden_states)
fengshen/models/zen2/modeling.py:672
Methodforward
(self, hidden_states)
fengshen/models/zen2/modeling.py:692
Methodforward
(self, sequence_output)
fengshen/models/zen2/modeling.py:703
Methodforward
(self, pooled_output)
fengshen/models/zen2/modeling.py:713
Methodforward
(self, sequence_output, pooled_output)
fengshen/models/zen2/modeling.py:724
Methodforward
(self, input_ids, input_ngram_ids, ngram_position_matrix, toke
fengshen/models/zen2/modeling.py:821
Methodforward
(self, input_ids, input_ngram_ids, ngram_position_matrix, token_type_ids=None, ngram_token_typ
fengshen/models/zen2/modeling.py:951
Methodforward
(self, input_ids, input_ngram_ids, ngram_position_matrix, token_type_ids=None, attention_mask=None, ngram_atte
fengshen/models/zen2/modeling.py:1035
Methodforward
(self, input_ids, input_ngram_ids, ngram_position_matrix, token_type_ids=None, attention_mask=None, next_sente
fengshen/models/zen2/modeling.py:1101
Methodforward
(self, input_ids, input_ngram_ids, ngram_position_matrix, token_type_ids=None, attention_mask=None, labels=Non
fengshen/models/zen2/modeling.py:1170
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None, valid_ids=None, input
fengshen/models/zen2/modeling.py:1250
Methodforward
(self, input_ids, input_ngram_ids, ngram_position_matrix, token_type_ids=None, attention_mask=None, start_posi
fengshen/models/zen2/modeling.py:1352
Methodforward
`input_ids_shape` is expected to be [bsz x seqlen].
fengshen/models/deltalm/modeling_deltalm.py:98
Methodforward
Input shape: Batch x Time x Channel
fengshen/models/deltalm/modeling_deltalm.py:140
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(seq_len, batch, embed_dim)` attention_mask (
fengshen/models/deltalm/modeling_deltalm.py:271
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
fengshen/models/deltalm/modeling_deltalm.py:353
Methodforward
r""" Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence toke
fengshen/models/deltalm/modeling_deltalm.py:531
Methodforward
r""" Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence toke
fengshen/models/deltalm/modeling_deltalm.py:908
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked language mo
fengshen/models/deltalm/modeling_deltalm.py:1210
Methodforward
(self, *args, **kwargs)
fengshen/models/deltalm/modeling_deltalm.py:1368
Methodforward
r""" Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence toke
fengshen/models/deltalm/modeling_deltalm.py:1404
Methodforward
(self, z_lt_lm1, z_lm1)
fengshen/models/deepVAE/deep_vae.py:51
Methodforward
(self, inputs, attention_mask=None)
fengshen/models/deepVAE/deep_vae.py:65
Methodforward
(self, inputs, beta_kl_constraints, cond_inputs=None)
fengshen/models/deepVAE/deep_vae.py:155
Methodforward
(self, inputs, cond_inputs=None, sample_latent=True)
fengshen/models/deepVAE/deep_vae.py:239
Methodforward
( self, input_ids=None, layer_latent_vecs=None, past_key_values=None,
fengshen/models/deepVAE/latent_connector.py:66
Methodforward
(self, input_ids, layer_latent_vecs, past=None, attention_mask=None, token_type_ids=None, position_ids=None, h
fengshen/models/deepVAE/latent_connector.py:325
Methodforward
( self, input_ids=None, past_key_values=None, attention_mask=None, tok
fengshen/models/deepVAE/latent_connector.py:378
Methodforward
(self, x)
fengshen/models/GAVAE/gans_model.py:85
Methodforward
(self,x2)
fengshen/models/GAVAE/gans_model.py:119
Methodforward
(self, pos_seq, bsz=None)
fengshen/models/transfo_xl_denoise/modeling_transfo_xl_denoise.py:116
Methodforward
(self, hidden_states, ltor_mask, position_embeddings=None, r_w_bias=None, r_r_bias=None, mem=None)
fengshen/models/transfo_xl_denoise/modeling_transfo_xl_denoise.py:274
Methodforward
(self, hidden_states)
fengshen/models/transfo_xl_denoise/modeling_transfo_xl_denoise.py:376
Methodforward
(self, hidden_states, ltor_mask, position_embeddings=None, r_w_bias=None, r_r_bias=None, mem=None)
fengshen/models/transfo_xl_denoise/modeling_transfo_xl_denoise.py:454
Methodforward
(self, hidden_states, position_ids, attention_mask, *mems)
fengshen/models/transfo_xl_denoise/modeling_transfo_xl_denoise.py:581
Methodforward
r""" encoder_hidden_states (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`, *optional*): Sequence of h
fengshen/models/transfo_xl_denoise/modeling_transfo_xl_denoise.py:706
Methodfrom_config
(cls, config)
fengshen/models/auto/modeling_auto.py:255
Methodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
fengshen/models/zen1/tokenization.py:171
Methodfrom_pretrained
(cls, pretrained_model_name_or_path, *model_args, **kwargs)
fengshen/models/auto/modeling_auto.py:265
Methodfrom_pretrained
r""" Instantiate one of the configuration classes of the library from a pretrained model configuration. The configuration class to in
fengshen/models/auto/configuration_auto.py:268
Methodfrom_pretrained
r""" Instantiate one of the tokenizer classes of the library from a pretrained model vocabulary. The tokenizer class to instantiate i
fengshen/models/auto/tokenization_auto.py:219
Methodfrom_pretrained
(cls, pretrained_model_name_or_path, *model_args, **kwargs)
fengshen/models/auto/auto_factory.py:420
Methodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
fengshen/models/zen2/tokenization.py:193
Methodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
fengshen/models/zen2/ngram_utils.py:71
Methodfrom_text_vision_configs
r""" Instantiate a [`CLIPConfig`] (or a derived class) from clip text model configuration and clip vision model configuration.
fengshen/models/clip/configuration_taiyi_clip.py:114
Functionfunc_wrapper
(*args, **kwargs)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:310
Functiongelu
Implementation of the gelu activation function. For information: OpenAI GPT's gelu is slightly different (and gives slightly different results
fengshen/models/zen2/modeling.py:251
Methodgenerate
(self,n)
fengshen/models/PPVAE/pluginVAE.py:162
Methodgenerate
(self, input_ids=None, max_length=512)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1745
Methodgenerate
(self,n)
fengshen/models/GAVAE/GAVAEModel.py:55
Methodgenerate_dummy_inputs
( self, processor: "ProcessorMixin", batch_size: int = -1, seq_length: int = -
fengshen/models/clip/configuration_taiyi_clip.py:165
Methodgenerate_dummy_inputs
( self, tokenizer: PreTrainedTokenizer, batch_size: int = -1, seq_length: int
fengshen/models/megatron_t5/configuration_megatron_t5.py:193
Methodget
Retrieves a single item from the dataset with the option to only return a portion of the item. get(idx) is the same as [idx] but get
fengshen/data/megatron_dataloader/indexed_dataset.py:514
Functionget_available_dataset_impl
()
fengshen/data/megatron_dataloader/indexed_dataset.py:31
Methodget_clip_score
(self, text, image)
fengshen/examples/finetune_taiyi_stable_diffusion/evaluate_model.py:162
Functionget_data_parallel_rank
Return my rank for the data parallel group.
fengshen/models/megatron/mpu/initialize.py:252
Functionget_data_parallel_src_rank
Calculate the global rank corresponding to a local rank zero in the data parallel group.
fengshen/models/megatron/mpu/initialize.py:231
Functionget_data_parallel_world_size
Return world size for the data parallel group.
fengshen/models/megatron/mpu/initialize.py:247
← previousnext →1,901–2,000 of 2,547, ranked by callers