transformers的 pipeline是什么:将模型加载、数据预处理、推理等步骤进行了封装 pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, max_new_tokens=50 ) pipeline :这是 transformers 库中一个非常实用的工具函数。它可以基于预训练模型快速构建一个完整的