MCPcopy Create free account

hub / github.com/FreedomIntelligence/CMB / types & classes

Types & classes39 in github.com/FreedomIntelligence/CMB

↓ 2 callersClassChatGLMModel
workers/chatglm3_modeling.py:733
↓ 2 callersClassInvalidScoreLogitsProcessor
workers/chatglm3_modeling.py:53
↓ 1 callersClassChatGLMModel
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
workers/modeling_chatglm_med.py:783
↓ 1 callersClassCoreAttention
workers/chatglm3_modeling.py:195
↓ 1 callersClassGLMBlock
A single transformer layer. Transformer layer takes input with size [s, b, h] and returns an output of the same size.
workers/chatglm3_modeling.py:505
↓ 1 callersClassGLMBlock
workers/modeling_chatglm_med.py:591
↓ 1 callersClassGLU
workers/modeling_chatglm_med.py:548
↓ 1 callersClassInvalidScoreLogitsProcessor
workers/modeling_chatglm_med.py:138
↓ 1 callersClassMLP
MLP. MLP will take the input with h hidden state, project it to 4*h hidden dimension, perform nonlinear transformation, and project the s
workers/chatglm3_modeling.py:459
↓ 1 callersClassMyDataset
workers/base.py:343
↓ 1 callersClassPrefixEncoder
The torch.nn model to encode the prefix Input shape: (batch-size, prefix-length) Output shape: (batch-size, prefix-length, 2*layers*hidde
workers/chatglm3_modeling.py:61
↓ 1 callersClassPromptWrapper
workers/base.py:253
↓ 1 callersClassRotaryEmbedding
workers/chatglm3_modeling.py:121
↓ 1 callersClassRotaryEmbedding
workers/modeling_chatglm_med.py:231
↓ 1 callersClassSelfAttention
Parallel self-attention layer abstract class. Self-attention layer takes input with size [s, b, h] and returns output of the same size.
workers/chatglm3_modeling.py:313
↓ 1 callersClassSelfAttention
workers/modeling_chatglm_med.py:398
ClassBaichuanChatWorker
workers/baichuanchat.py:4
ClassBaseWorker
The base class of each model worker.
workers/base.py:20
ClassBentsaoWorker
workers/bentsao.py:10
ClassBianQueV2Worker
workers/bianque_v2.py:5
ClassChatGLM3Worker
workers/chatglm3_6b.py:5
ClassChatGLMConfig
workers/chatglm3_configuration.py:4
ClassChatGLMConfig
r""" This is the configuration class to store the configuration of a [`~ChatGLMModel`]. It is used to instantiate an ChatGLM model according t
workers/modeling_chatglm_med.py:53
ClassChatGLMForConditionalGeneration
workers/chatglm3_modeling.py:851
ClassChatGLMForConditionalGeneration
workers/modeling_chatglm_med.py:1001
ClassChatGLMForSequenceClassification
workers/chatglm3_modeling.py:1210
ClassChatGLMMedWorker
workers/chatglm_med.py:5
ClassChatGLMPreTrainedModel
An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained models.
workers/chatglm3_modeling.py:661
ClassChatGLMPreTrainedModel
An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained models.
workers/modeling_chatglm_med.py:695
ClassChatMedConsultWorker
workers/chatmed_consult.py:10
ClassDoctorGLMWorker
workers/doctorglm.py:5
ClassEmbedding
Language model embeddings.
workers/chatglm3_modeling.py:705
ClassGEGLU
workers/modeling_chatglm_med.py:537
ClassGLMTransformer
Transformer class.
workers/chatglm3_modeling.py:579
ClassHuatuoChatWorker
workers/huatuo_chat.py:10
ClassMedicalGPTWorker
workers/medicalgpt.py:8
ClassMyModelWorker
workers/mymodel.py:5
ClassQizhenWorker
workers/qizhen_cama_13b.py:10
ClassRMSNorm
workers/chatglm3_modeling.py:181