mindformers.models.glm.GLMChatModel

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

Provide glm chat capability through network. :param config: The config of GLMModel. :type config: GLMConfig

返回

Tensor, the probability distribution of network loss.

sample(log_probs)[源代码]

Convert the log_probs to probability