Skip to main content

Petals

本页面介绍如何在LangChain中使用Petals生态系统。 它分为两个部分:安装和设置,以及对特定Petals包装器的引用。

安装和设置

  • 使用 pip install petals 安装
  • 获取Hugging Face API密钥并将其设置为环境变量 (HUGGINGFACE_API_KEY)

包装器

LLM

存在一个Petals LLM包装器,您可以通过以下方式访问

from langchain_community.llms import Petals

Was this page helpful?


You can also leave detailed feedback on GitHub.

扫我,入群扫我,找书