跳到正文
Machine Learning Mastery· Iván Palomares Carrascosa·· 7 天前AI 评分44

使用 FastAPI 将 Scikit-LLM 零样本文本分类管线部署为 REST API

Serving Scikit-LLM Pipelines as REST APIs with FastAPI

AI 导读

教程演示如何将 Scikit-LLM 零样本文本分类器接入本地 Ollama 的 llama3 模型,并通过 FastAPI 的 /predict 异步端点提供 REST API。

来源:Machine Learning Mastery · machinelearningmastery.com