2023-02-14 05:20:19 +00:00
|
|
|
# Petals
|
|
|
|
|
|
|
|
This page covers how to use the Petals ecosystem within LangChain.
|
|
|
|
It is broken into two parts: installation and setup, and then references to specific Petals wrappers.
|
|
|
|
|
|
|
|
## Installation and Setup
|
|
|
|
- Install with `pip install petals`
|
2023-02-22 18:34:16 +00:00
|
|
|
- Get a Hugging Face api key and set it as an environment variable (`HUGGINGFACE_API_KEY`)
|
2023-02-14 05:20:19 +00:00
|
|
|
|
|
|
|
## Wrappers
|
|
|
|
|
|
|
|
### LLM
|
|
|
|
|
|
|
|
There exists an Petals LLM wrapper, which you can access with
|
|
|
|
```python
|
|
|
|
from langchain.llms import Petals
|
2023-02-22 18:34:16 +00:00
|
|
|
```
|