Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FreedomIntelligence/CMB
/ types & classes
Types & classes
39 in github.com/FreedomIntelligence/CMB
⨍
Functions
210
◇
Types & classes
39
↳
Endpoints
1
↓ 2 callers
Class
ChatGLMModel
workers/chatglm3_modeling.py:733
↓ 2 callers
Class
InvalidScoreLogitsProcessor
workers/chatglm3_modeling.py:53
↓ 1 callers
Class
ChatGLMModel
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 callers
Class
CoreAttention
workers/chatglm3_modeling.py:195
↓ 1 callers
Class
GLMBlock
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 callers
Class
GLMBlock
workers/modeling_chatglm_med.py:591
↓ 1 callers
Class
GLU
workers/modeling_chatglm_med.py:548
↓ 1 callers
Class
InvalidScoreLogitsProcessor
workers/modeling_chatglm_med.py:138
↓ 1 callers
Class
MLP
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 callers
Class
MyDataset
workers/base.py:343
↓ 1 callers
Class
PrefixEncoder
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 callers
Class
PromptWrapper
workers/base.py:253
↓ 1 callers
Class
RotaryEmbedding
workers/chatglm3_modeling.py:121
↓ 1 callers
Class
RotaryEmbedding
workers/modeling_chatglm_med.py:231
↓ 1 callers
Class
SelfAttention
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 callers
Class
SelfAttention
workers/modeling_chatglm_med.py:398
Class
BaichuanChatWorker
workers/baichuanchat.py:4
Class
BaseWorker
The base class of each model worker.
workers/base.py:20
Class
BentsaoWorker
workers/bentsao.py:10
Class
BianQueV2Worker
workers/bianque_v2.py:5
Class
ChatGLM3Worker
workers/chatglm3_6b.py:5
Class
ChatGLMConfig
workers/chatglm3_configuration.py:4
Class
ChatGLMConfig
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
Class
ChatGLMForConditionalGeneration
workers/chatglm3_modeling.py:851
Class
ChatGLMForConditionalGeneration
workers/modeling_chatglm_med.py:1001
Class
ChatGLMForSequenceClassification
workers/chatglm3_modeling.py:1210
Class
ChatGLMMedWorker
workers/chatglm_med.py:5
Class
ChatGLMPreTrainedModel
An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained models.
workers/chatglm3_modeling.py:661
Class
ChatGLMPreTrainedModel
An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained models.
workers/modeling_chatglm_med.py:695
Class
ChatMedConsultWorker
workers/chatmed_consult.py:10
Class
DoctorGLMWorker
workers/doctorglm.py:5
Class
Embedding
Language model embeddings.
workers/chatglm3_modeling.py:705
Class
GEGLU
workers/modeling_chatglm_med.py:537
Class
GLMTransformer
Transformer class.
workers/chatglm3_modeling.py:579
Class
HuatuoChatWorker
workers/huatuo_chat.py:10
Class
MedicalGPTWorker
workers/medicalgpt.py:8
Class
MyModelWorker
workers/mymodel.py:5
Class
QizhenWorker
workers/qizhen_cama_13b.py:10
Class
RMSNorm
workers/chatglm3_modeling.py:181