MCPcopy Create free account

hub / github.com/OpenBMB/CPM-Live / types & classes

Types & classes70 in github.com/OpenBMB/CPM-Live

↓ 7 callersClassLinear
cpm-live/cpm_live/layers/linear.py:22
↓ 7 callersClassLinear
cpm-live/cpm_live/native_layers/linear.py:21
↓ 6 callersClassEmbedding
cpm-live/cpm_live/layers/embedding.py:24
↓ 5 callersClassFileInfo
cpm-live/cpm_live/dataset/distributed_dataset.py:37
↓ 5 callersClassToken
cpm-live/cpm_live/tokenizers/bee.py:35
↓ 4 callersClassCPMBeeTokenizer
cpm-live/cpm_live/tokenizers/bee.py:51
↓ 4 callersClassEncoder
Layers of encoder transformer blocks plus an final layernorm. Args: num_layers (int): number of layers. dim_model (int): main dim
cpm-live/cpm_live/layers/transformer.py:24
↓ 3 callersClassLayerNorm
RMS LayerNorm
cpm-live/cpm_live/layers/layernorm.py:13
↓ 3 callersClassLayerNorm
RMS LayerNorm
cpm-live/cpm_live/native_layers/layernorm.py:12
↓ 3 callersClassPickleSerializer
cpm-live/cpm_live/dataset/serializer.py:31
↓ 2 callersClassBeamHypotheses
cpm-live/cpm_live/generation/generation_utils.py:69
↓ 2 callersClassBucketPositionBias
cpm-live/cpm_live/layers/position_embedding.py:131
↓ 2 callersClassCPMBee
cpm-live/cpm_live/models/bee.py:72
↓ 2 callersClassCPMBeeBeamSearch
cpm-live/cpm_live/generation/bee.py:248
↓ 2 callersClassCPMBeeTorch
cpm-live/cpm_live/models/bee_torch.py:23
↓ 2 callersClassDistributedDataset
Open dataset in readonly mode. `DistributeDataset` is used to read datasets in a distributed manner. Data in this dataset will be distributed
cpm-live/cpm_live/dataset/distributed_dataset.py:203
↓ 2 callersClassEmbeddingExt
cpm-live/cpm_live/layers/embedding.py:67
↓ 2 callersClassFinetuneDataset
cpm-live/cpm_live/training_tasks/bee/finetune.py:7
↓ 2 callersClassRawSerializer
cpm-live/cpm_live/dataset/serializer.py:53
↓ 2 callersClassSegmentPositionEmbedding
cpm-live/cpm_live/layers/position_embedding.py:22
↓ 2 callersClassSimpleDataset
cpm-live/cpm_live/dataset/distributed_dataset.py:588
↓ 2 callersClass_MixedDatasetBatchPacker
cpm-live/cpm_live/training_tasks/bee/pretrain.py:252
↓ 1 callersClassAttention
cpm-live/cpm_live/layers/attention.py:23
↓ 1 callersClassAttention
cpm-live/cpm_live/native_layers/attention.py:22
↓ 1 callersClassDatasetBuilder
cpm-live/cpm_live/dataset/distributed_dataset.py:679
↓ 1 callersClassDatasetWriter
cpm-live/cpm_live/dataset/distributed_dataset.py:617
↓ 1 callersClassDenseGatedACT
cpm-live/cpm_live/layers/feedforward.py:22
↓ 1 callersClassDenseGatedACT
cpm-live/cpm_live/native_layers/feedforward.py:21
↓ 1 callersClassFFNBlock
The whole feed-forward block. A sequence of operation. Consists of layernorm, feed-forward and residual connection. Args: dim_model (int)
cpm-live/cpm_live/layers/blocks.py:102
↓ 1 callersClassFFNBlock
The whole feed-forward block. A sequence of operation. Consists of layernorm, feed-forward and residual connection. Args: dim_model (int)
cpm-live/cpm_live/native_layers/blocks.py:101
↓ 1 callersClassFeedForward
r"""FeedForward module Args: dim_in (int): input dimension. dim_ff (int): middle dimension. dim_out (int, optional): outp
cpm-live/cpm_live/layers/feedforward.py:64
↓ 1 callersClassFeedForward
r"""FeedForward module Args: dim_in (int): input dimension. dim_ff (int): middle dimension. dim_out (int, optional): outp
cpm-live/cpm_live/native_layers/feedforward.py:62
↓ 1 callersClassLogManager
cpm-live/cpm_live/utils/log.py:30
↓ 1 callersClassLossSpikeDetector
cpm-live/pretrain_cpm_bee.py:116
↓ 1 callersClassMixedDataset
cpm-live/cpm_live/training_tasks/bee/pretrain.py:943
↓ 1 callersClassRotaryEmbedding
cpm-live/cpm_live/layers/position_embedding.py:219
↓ 1 callersClassRotaryEmbedding
cpm-live/cpm_live/native_layers/position_embedding.py:212
↓ 1 callersClassSafeFile
cpm-live/cpm_live/dataset/distributed_dataset.py:135
↓ 1 callersClassSelfAttentionBlock
The whole cross-attention block. A sequence of operation. Consists of layernorm, self-attention and residual connection. Args: dim_model
cpm-live/cpm_live/layers/blocks.py:24
↓ 1 callersClassSelfAttentionBlock
The whole cross-attention block. A sequence of operation. Consists of layernorm, self-attention and residual connection. Args: dim_model
cpm-live/cpm_live/native_layers/blocks.py:23
↓ 1 callersClassTransformerBlock
The whole transformer block. A sequence of operation. Consists of self-attention block[, cross-attention block] and feed-forward block. Args:
cpm-live/cpm_live/layers/blocks.py:161
↓ 1 callersClassTransformerBlock
The whole transformer block. A sequence of operation. Consists of self-attention block[, cross-attention block] and feed-forward block. Args:
cpm-live/cpm_live/native_layers/blocks.py:160
↓ 1 callersClassTranslator
cpm-live/cpmbee_translator.py:20
↓ 1 callersClassWordpieceTokenizer
cpm-live/cpm_live/tokenizers/ant.py:35
↓ 1 callersClass_MixedDatasetConfigMananger
cpm-live/cpm_live/training_tasks/bee/pretrain.py:700
ClassBucketPositionBias
cpm-live/cpm_live/native_layers/position_embedding.py:127
ClassCPMAnt
cpm-live/cpm_live/models/ant.py:65
ClassCPMAntBeamSearch
cpm-live/cpm_live/generation/ant.py:51
ClassCPMAntConfig
cpm-live/cpm_live/models/ant.py:23
ClassCPMAntGeneration
cpm-live/cpm_live/generation/ant.py:7
ClassCPMAntPretrainDataset
cpm-live/cpm_live/training_tasks/ant/pretrain.py:21
ClassCPMAntRandomSampling
cpm-live/cpm_live/generation/ant.py:278
ClassCPMAntTokenizer
cpm-live/cpm_live/tokenizers/ant.py:67
ClassCPMAntTorch
cpm-live/cpm_live/models/ant_torch.py:20
ClassCPMBeeBatch
cpm-live/cpm_live/training_tasks/bee/pretrain.py:73
ClassCPMBeeConfig
cpm-live/cpm_live/models/bee.py:35
ClassCPMBeeGeneration
cpm-live/cpm_live/generation/bee.py:12
ClassCPMBeeInferenceState
cpm-live/cpm_live/models/bee.py:26
ClassConfig
model configuration
cpm-live/cpm_live/utils/config.py:47
ClassEmbedding
cpm-live/cpm_live/native_layers/embedding.py:23
ClassEmbeddingExt
cpm-live/cpm_live/native_layers/embedding.py:63
ClassEncoder
Layers of encoder transformer blocks plus an final layernorm. Args: num_layers (int): number of layers. dim_model (int): main dim
cpm-live/cpm_live/native_layers/transformer.py:23
ClassJsonSerializer
cpm-live/cpm_live/dataset/serializer.py:42
ClassOpGradientShrink
cpm-live/cpm_live/utils/gradient_shrink.py:4
ClassSegmentPositionEmbedding
cpm-live/cpm_live/native_layers/position_embedding.py:21
ClassSerializer
cpm-live/cpm_live/dataset/serializer.py:20
Class_DictTree
cpm-live/cpm_live/training_tasks/bee/pretrain.py:51
Class_MixedDatasetConfig
cpm-live/cpm_live/training_tasks/bee/pretrain.py:36
Class_PrevExtTableStates
cpm-live/cpm_live/training_tasks/bee/pretrain.py:59
Class_TransformFuncDict
cpm-live/cpm_live/training_tasks/bee/pretrain.py:64