MCPcopy Index your code

hub / github.com/IDEA-CCNL/Fengshenbang-LM / types & classes

Types & classes564 in github.com/IDEA-CCNL/Fengshenbang-LM

↓ 22 callersClassUniversalCheckpoint
fengshen/utils/universal_checkpoint.py:5
↓ 16 callersClassUniversalDataModule
fengshen/data/universal_datamodule/universal_datamodule.py:20
↓ 13 callersClass_LazyAutoMapping
" A mapping config to object (model or tokenizer for instance) that will load keys and values when it is accessed. Args: - config_m
fengshen/models/auto/auto_factory.py:553
↓ 10 callersClassResBlock
A residual block that can optionally change the number of channels. :param channels: the number of input channels. :param emb_channels:
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:145
↓ 9 callersClassStableDropout
Optimized dropout module for stabilizing the training Args: drop_prob (float): the dropout probabilities
fengshen/models/deberta_v2/modeling_deberta_v2.py:193
↓ 9 callersClassTimestepEmbedSequential
A sequential module that passes timestep embeddings to the children that support it as an extra input.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:68
↓ 8 callersClassRoFormerModel
The model can behave as an encoder (with only self-attention) as well as a decoder, in which case a layer of cross-attention is added betwee
fengshen/models/roformer/modeling_roformer.py:922
↓ 6 callersClassAlbertModel
fengshen/models/albert/modeling_albert.py:624
↓ 6 callersClassFusedScaleMaskSoftmax
fused operation: scaling + mask + softmax Arguments: input_in_fp16: flag to indicate if input in fp16 data format. input_in_b
fengshen/models/megatron/layers/fused_softmax.py:92
↓ 6 callersClassZenModel
ZEN model ("BERT-based Chinese (Z) text encoder Enhanced by N-gram representations"). Params: `config`: a BertConfig class instance with
fengshen/models/zen2/modeling.py:757
↓ 5 callersClassAttentionBlock
An attention block that allows spatial positions to attend to each other. Originally ported from here, but adapted to the N-d case. http
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:261
↓ 5 callersClassBertLayerNorm
fengshen/models/zen1/modeling.py:177
↓ 5 callersClassBertLayerNorm
fengshen/models/zen2/modeling.py:273
↓ 5 callersClassCustomDataset
fengshen/examples/clue_sim/finetune_clue_sim.py:27
↓ 5 callersClassDebertaV2Model
fengshen/models/deberta_v2/modeling_deberta_v2.py:978
↓ 5 callersClassLongformerModel
This class copied code from :class:`~transformers.RobertaModel` and overwrote standard self-attention with longformer self-attention to provi
fengshen/models/longformer/modeling_longformer.py:1672
↓ 5 callersClassMaskedLMOutput
Base class for masked language models outputs. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `labels` i
fengshen/models/zen2/modeling.py:132
↓ 5 callersClassT5Stack
fengshen/models/megatron_t5/modeling_megatron_t5.py:968
↓ 5 callersClassTokenClassifierOutput
Base class for outputs of token classification models.
fengshen/models/zen2/modeling.py:1192
↓ 5 callersClassZenModel
ZEN model ("BERT-based Chinese (Z) text encoder Enhanced by N-gram representations"). Params: `config`: a BertConfig class instance with
fengshen/models/zen1/modeling.py:564
↓ 4 callersClassDownsample
A downsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determin
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:115
↓ 4 callersClassGPT2QADataset
Dataset Used for yuyuan medical qa task. Just surpport small datasets, when deal with large datasets it may be slowly. for large datasets
fengshen/data/task_dataloader/medicalQADataset.py:9
↓ 4 callersClassMyDataset
fengshen/models/GAVAE/gans_model.py:8
↓ 4 callersClassSeqEntityScore
fengshen/metric/metric.py:74
↓ 4 callersClassT5StyleDataset
fengshen/examples/qa_t5/qa_dataset.py:30
↓ 4 callersClassUnsuperviseT5Dataset
Dataset Used for T5 unsuprvise pretrain. load_data_type = 0: load raw data from data path and save tokenized data, call function load_data
fengshen/data/t5_dataloader/t5_datasets.py:61
↓ 3 callersClassBlendableDataset
fengshen/data/megatron_dataloader/blendable_dataset.py:26
↓ 3 callersClassDeepVAE
DeepVAE with recursive latent z extracted from every layer of encoder and applied on every layer of decoder
fengshen/models/deepVAE/deep_vae.py:77
↓ 3 callersClassDeltalmAttention
Multi-headed attention from 'Attention Is All You Need' paper
fengshen/models/deltalm/modeling_deltalm.py:107
↓ 3 callersClassDialogDataset
fengshen/data/t5_dataloader/t5_gen_datasets.py:38
↓ 3 callersClassExtractModel
fengshen/models/uniex/modeling_uniex.py:1537
↓ 3 callersClassFastExtractModel
fengshen/models/uniex/modeling_uniex.py:1218
↓ 3 callersClassFocalLoss
Multi-class Focal loss implementation
fengshen/models/tagging_models/losses/focal_loss.py:5
↓ 3 callersClassInputExample
A single training/test example for simple sequence classification.
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:39
↓ 3 callersClassInputExample
A single training/test example for simple sequence classification.
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:40
↓ 3 callersClassLCSTSDataset
Dataset Used for LCSTS summary task.
fengshen/data/task_dataloader/task_datasets.py:65
↓ 3 callersClassLabelSmoothingCrossEntropy
fengshen/models/tagging_models/losses/label_smoothing.py:4
↓ 3 callersClassMLPLayer
fengshen/models/uniex/modeling_uniex.py:875
↓ 3 callersClassMMapIndexDataset
fengshen/data/mmap_dataloader/mmap_index_dataset.py:7
↓ 3 callersClassPretrainingSampler
fengshen/data/universal_datamodule/universal_sampler.py:22
↓ 3 callersClassT5Embeddings
Construct the embeddings from word, position and token_type embeddings.
fengshen/models/megatron_t5/modeling_megatron_t5.py:917
↓ 3 callersClassTaskDataset
fengshen/data/sequence_tagging_dataloader/sequence_tagging_datasets.py:103
↓ 3 callersClassTaskDataset
fengshen/examples/zen2_finetune/fengshen_token_level_ft_task.py:349
↓ 3 callersClassTaskDataset
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:348
↓ 3 callersClassTaskDataset
fengshen/examples/classification/finetune_classification.py:54
↓ 3 callersClassTaskDataset
fengshen/examples/zen1_finetune/fengshen_token_level_ft_task.py:324
↓ 3 callersClassTaskDataset
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:328
↓ 3 callersClassUniEXDataEncode
fengshen/models/uniex/modeling_uniex.py:246
↓ 3 callersClassUniMCDataModel
fengshen/models/unimc/modeling_unimc.py:235
↓ 3 callersClassUpsample
An upsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determini
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:83
↓ 3 callersClassflickr30k_CNA
fengshen/data/clip_dataloader/flickr.py:10
↓ 2 callersClassAlbertMLMHead
fengshen/models/albert/modeling_albert.py:855
↓ 2 callersClassBertEmbeddings
Construct the embeddings from word, position and token_type embeddings.
fengshen/models/zen1/modeling.py:193
↓ 2 callersClassBertLMPredictionHead
fengshen/models/zen1/modeling.py:485
↓ 2 callersClassBertLMPredictionHead
fengshen/models/zen2/modeling.py:679
↓ 2 callersClassBertPooler
fengshen/models/zen1/modeling.py:452
↓ 2 callersClassChineseSentenceSplitter
fengshen/data/data_utils/sentence_split.py:4
↓ 2 callersClassCollator
fengshen/examples/pretrain_taiyi_clip/pretrain.py:32
↓ 2 callersClassConfig
fengshen/data/bert_dataloader/preprocessing.py:61
↓ 2 callersClassContextPooler
fengshen/models/deberta_v2/modeling_deberta_v2.py:56
↓ 2 callersClassCustomDataset
fengshen/models/PPVAE/utils.py:3
↓ 2 callersClassCustomModel
fengshen/examples/clue_sim/finetune_clue_sim.py:136
↓ 2 callersClassDAVAEModel
fengshen/models/DAVAE/DAVAEModel.py:35
↓ 2 callersClassDeltalmDecoder
Transformer decoder consisting of *config.decoder_layers* layers. Each layer is a [`DeltalmDecoderLayer`] Args: config: DeltalmConfig
fengshen/models/deltalm/modeling_deltalm.py:473
↓ 2 callersClassDeltalmLearnedPositionalEmbedding
This module learns positional embeddings up to a fixed maximum size.
fengshen/models/deltalm/modeling_deltalm.py:87
↓ 2 callersClassEarlyStopping
fengshen/models/PPVAE/utils.py:16
↓ 2 callersClassEmbedding
Language model embeddings. Arguments: hidden_size: hidden size vocab_size: vocabulary size max_sequence_length: maximum si
fengshen/models/megatron/layers/word_embeddings.py:23
↓ 2 callersClassEntityScore
fengshen/metric/metric.py:36
↓ 2 callersClassGPT2FinetuneMedicalQA
fengshen/examples/wenzhong_qa/finetune_medicalQA.py:45
↓ 2 callersClassGPT2ForDecoderLatentConnector
r""" **labels**: (`optional`) ``torch.LongTensor`` of shape ``(batch_size, sequence_length)``: Labels for language modeling.
fengshen/models/deepVAE/latent_connector.py:270
↓ 2 callersClassGPT2ForEncoderLatentConnector
fengshen/models/deepVAE/latent_connector.py:370
↓ 2 callersClassGPT2QADataModel
fengshen/data/task_dataloader/medicalQADataset.py:80
↓ 2 callersClassHumanOutputFormat
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:35
↓ 2 callersClassIndexedDataset
Loader for IndexedDataset
fengshen/data/megatron_dataloader/indexed_dataset.py:130
↓ 2 callersClassLlama
fengshen/examples/ziya_llama/finetune_ziya_llama.py:88
↓ 2 callersClassLlamaConfig
r""" This is the configuration class to store the configuration of a [`LlamaModel`]. It is used to instantiate an LLama model according to the
fengshen/models/llama/configuration_llama.py:24
↓ 2 callersClassLlamaForCausalLM
fengshen/models/llama/modeling_llama.py:239
↓ 2 callersClassMT5PretrainModel
fengshen/examples/pretrain_t5/pretrain_t5.py:16
↓ 2 callersClassMyDataset_new
fengshen/models/GAVAE/gans_model.py:21
↓ 2 callersClassOffsetMapping
fengshen/models/uniex/modeling_uniex.py:1172
↓ 2 callersClassParallelLinear
A Parallel Linear Layer transforming the transformer outputs from hidden_size -> vocab_size
fengshen/models/megatron/layers/transformer.py:136
↓ 2 callersClassPoolerEndLogits
fengshen/models/tagging_models/layers/linears.py:27
↓ 2 callersClassPretrainingRandomSampler
fengshen/data/universal_datamodule/universal_sampler.py:71
↓ 2 callersClassQAFinetuneModel
fengshen/examples/qa_t5/finetune_t5_cmrc.py:40
↓ 2 callersClassQKVAttention
A module which performs QKV attention and splits in a different order.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:363
↓ 2 callersClassRoFormerAttention
fengshen/models/roformer/modeling_roformer.py:391
↓ 2 callersClassRoFormerLMPredictionHead
fengshen/models/roformer/modeling_roformer.py:735
↓ 2 callersClassRoFormerOnlyMLMHead
fengshen/models/roformer/modeling_roformer.py:756
↓ 2 callersClassT5Attention
fengshen/models/megatron_t5/modeling_megatron_t5.py:333
↓ 2 callersClassTCBertDataModel
fengshen/models/tcbert/modeling_tcbert.py:123
↓ 2 callersClassTCBertDataset
fengshen/models/tcbert/modeling_tcbert.py:41
↓ 2 callersClassTaiyiCLIP
fengshen/examples/pretrain_taiyi_clip/pretrain.py:65
↓ 2 callersClassTaskModelCheckpoint
fengshen/models/uniex/modeling_uniex.py:1144
↓ 2 callersClassTaskT5Dataset
fengshen/data/t5_dataloader/t5_datasets.py:438
↓ 2 callersClassTextGenCollator
fengshen/examples/qa_t5/qa_dataset.py:93
↓ 2 callersClassTokenClassifierOutput
Base class for outputs of token classification models.
fengshen/models/tagging_models/layers/bert_output.py:6
↓ 2 callersClassUbertDataset
fengshen/models/ubert/modeling_ubert.py:56
↓ 2 callersClassUbertPipelines
fengshen/models/ubert/modeling_ubert.py:673
↓ 2 callersClassUniEXDataModel
fengshen/models/uniex/modeling_uniex.py:816
↓ 2 callersClassUniEXDataset
fengshen/models/uniex/modeling_uniex.py:799
next →1–100 of 564, ranked by callers