Get the default conversation template.
(model_path: str)
| 376 | |
| 377 | |
| 378 | def get_conversation_template(model_path: str) -> Conversation: |
| 379 | """Get the default conversation template.""" |
| 380 | adapter = get_model_adapter(model_path) |
| 381 | return adapter.get_default_conv_template(model_path) |
| 382 | |
| 383 | |
| 384 | def get_generate_stream_function(model: torch.nn.Module, model_path: str): |
searching dependent graphs…