Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenBMB/CPM-Live
/ types & classes
Types & classes
70 in github.com/OpenBMB/CPM-Live
⨍
Functions
302
◇
Types & classes
70
↓ 7 callers
Class
Linear
cpm-live/cpm_live/layers/linear.py:22
↓ 7 callers
Class
Linear
cpm-live/cpm_live/native_layers/linear.py:21
↓ 6 callers
Class
Embedding
cpm-live/cpm_live/layers/embedding.py:24
↓ 5 callers
Class
FileInfo
cpm-live/cpm_live/dataset/distributed_dataset.py:37
↓ 5 callers
Class
Token
cpm-live/cpm_live/tokenizers/bee.py:35
↓ 4 callers
Class
CPMBeeTokenizer
cpm-live/cpm_live/tokenizers/bee.py:51
↓ 4 callers
Class
Encoder
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 callers
Class
LayerNorm
RMS LayerNorm
cpm-live/cpm_live/layers/layernorm.py:13
↓ 3 callers
Class
LayerNorm
RMS LayerNorm
cpm-live/cpm_live/native_layers/layernorm.py:12
↓ 3 callers
Class
PickleSerializer
cpm-live/cpm_live/dataset/serializer.py:31
↓ 2 callers
Class
BeamHypotheses
cpm-live/cpm_live/generation/generation_utils.py:69
↓ 2 callers
Class
BucketPositionBias
cpm-live/cpm_live/layers/position_embedding.py:131
↓ 2 callers
Class
CPMBee
cpm-live/cpm_live/models/bee.py:72
↓ 2 callers
Class
CPMBeeBeamSearch
cpm-live/cpm_live/generation/bee.py:248
↓ 2 callers
Class
CPMBeeTorch
cpm-live/cpm_live/models/bee_torch.py:23
↓ 2 callers
Class
DistributedDataset
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 callers
Class
EmbeddingExt
cpm-live/cpm_live/layers/embedding.py:67
↓ 2 callers
Class
FinetuneDataset
cpm-live/cpm_live/training_tasks/bee/finetune.py:7
↓ 2 callers
Class
RawSerializer
cpm-live/cpm_live/dataset/serializer.py:53
↓ 2 callers
Class
SegmentPositionEmbedding
cpm-live/cpm_live/layers/position_embedding.py:22
↓ 2 callers
Class
SimpleDataset
cpm-live/cpm_live/dataset/distributed_dataset.py:588
↓ 2 callers
Class
_MixedDatasetBatchPacker
cpm-live/cpm_live/training_tasks/bee/pretrain.py:252
↓ 1 callers
Class
Attention
cpm-live/cpm_live/layers/attention.py:23
↓ 1 callers
Class
Attention
cpm-live/cpm_live/native_layers/attention.py:22
↓ 1 callers
Class
DatasetBuilder
cpm-live/cpm_live/dataset/distributed_dataset.py:679
↓ 1 callers
Class
DatasetWriter
cpm-live/cpm_live/dataset/distributed_dataset.py:617
↓ 1 callers
Class
DenseGatedACT
cpm-live/cpm_live/layers/feedforward.py:22
↓ 1 callers
Class
DenseGatedACT
cpm-live/cpm_live/native_layers/feedforward.py:21
↓ 1 callers
Class
FFNBlock
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 callers
Class
FFNBlock
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 callers
Class
FeedForward
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 callers
Class
FeedForward
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 callers
Class
LogManager
cpm-live/cpm_live/utils/log.py:30
↓ 1 callers
Class
LossSpikeDetector
cpm-live/pretrain_cpm_bee.py:116
↓ 1 callers
Class
MixedDataset
cpm-live/cpm_live/training_tasks/bee/pretrain.py:943
↓ 1 callers
Class
RotaryEmbedding
cpm-live/cpm_live/layers/position_embedding.py:219
↓ 1 callers
Class
RotaryEmbedding
cpm-live/cpm_live/native_layers/position_embedding.py:212
↓ 1 callers
Class
SafeFile
cpm-live/cpm_live/dataset/distributed_dataset.py:135
↓ 1 callers
Class
SelfAttentionBlock
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 callers
Class
SelfAttentionBlock
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 callers
Class
TransformerBlock
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 callers
Class
TransformerBlock
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 callers
Class
Translator
cpm-live/cpmbee_translator.py:20
↓ 1 callers
Class
WordpieceTokenizer
cpm-live/cpm_live/tokenizers/ant.py:35
↓ 1 callers
Class
_MixedDatasetConfigMananger
cpm-live/cpm_live/training_tasks/bee/pretrain.py:700
Class
BucketPositionBias
cpm-live/cpm_live/native_layers/position_embedding.py:127
Class
CPMAnt
cpm-live/cpm_live/models/ant.py:65
Class
CPMAntBeamSearch
cpm-live/cpm_live/generation/ant.py:51
Class
CPMAntConfig
cpm-live/cpm_live/models/ant.py:23
Class
CPMAntGeneration
cpm-live/cpm_live/generation/ant.py:7
Class
CPMAntPretrainDataset
cpm-live/cpm_live/training_tasks/ant/pretrain.py:21
Class
CPMAntRandomSampling
cpm-live/cpm_live/generation/ant.py:278
Class
CPMAntTokenizer
cpm-live/cpm_live/tokenizers/ant.py:67
Class
CPMAntTorch
cpm-live/cpm_live/models/ant_torch.py:20
Class
CPMBeeBatch
cpm-live/cpm_live/training_tasks/bee/pretrain.py:73
Class
CPMBeeConfig
cpm-live/cpm_live/models/bee.py:35
Class
CPMBeeGeneration
cpm-live/cpm_live/generation/bee.py:12
Class
CPMBeeInferenceState
cpm-live/cpm_live/models/bee.py:26
Class
Config
model configuration
cpm-live/cpm_live/utils/config.py:47
Class
Embedding
cpm-live/cpm_live/native_layers/embedding.py:23
Class
EmbeddingExt
cpm-live/cpm_live/native_layers/embedding.py:63
Class
Encoder
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
Class
JsonSerializer
cpm-live/cpm_live/dataset/serializer.py:42
Class
OpGradientShrink
cpm-live/cpm_live/utils/gradient_shrink.py:4
Class
SegmentPositionEmbedding
cpm-live/cpm_live/native_layers/position_embedding.py:21
Class
Serializer
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