mindformers.models.glm.GLMChatModel

class mindformers.models.glm.GLMChatModel(config: GLMConfig)[源代码]

Provide glm chat capability through network. Args:

config (GLMConfig): The config of GLMModel.

Returns:

Tensor, the probability distribution of network loss.

sample(log_probs)[源代码]

Convert the log_probs to probability