| from transformers.pipelines import SUPPORTED_TASKS | |
| print(f"{'任务名称':<30} | {'模型类型':<15} | {'Pipeline实现类'}") | |
| print("-" * 70) | |
| for task_name, task_info in SUPPORTED_TASKS.items(): | |
| task_type = task_info['type'] | |
| impl_class = task_info['impl'].__name__ | |
| print(f"{task_name:<30} | {task_type:<15} | {impl_class}") | |
| from transformers import Conversation |