(self, config: ChatGLMConfig, empty_init=True, device=None)
| 722 | |
| 723 | class ChatGLMForConditionalGeneration(ChatGLMPreTrainedModel): |
| 724 | def __init__(self, config: ChatGLMConfig, empty_init=True, device=None): |
| 725 | super().__init__(config) |
| 726 | |
| 727 | self.max_sequence_length = config.max_length |
| 728 | self.transformer = ChatGLMModel(config, empty_init=empty_init, device=device) |
| 729 | self.config = config |
| 730 | self.pack_loss = False |
| 731 | |
| 732 | def _update_model_kwargs_for_generation( |
| 733 | self, |
nothing calls this directly
no test coverage detected