forked from phoenix/litellm-mirror
docs
This commit is contained in:
parent
85862c1066
commit
5b2f952035
1 changed files with 10 additions and 6 deletions
|
@ -1,6 +1,12 @@
|
|||
# Petals
|
||||
Petals: https://github.com/bigscience-workshop/petals
|
||||
|
||||
## Pre-Requisites
|
||||
Ensure you have `petals` installed
|
||||
```shell
|
||||
pip install git+https://github.com/bigscience-workshop/petals
|
||||
```
|
||||
|
||||
## Usage
|
||||
Ensure you add `petals/` as a prefix for all petals LLMs. This sets the custom_llm_provider to petals
|
||||
|
||||
|
@ -16,12 +22,10 @@ print(response)
|
|||
```
|
||||
|
||||
### Model Details
|
||||
|
||||
| Model Name | Function Call |
|
||||
|------------------|--------------------------------------------|
|
||||
| StableBeluga | ```python
|
||||
| completion(
|
||||
| model="petals/petals-team/StableBeluga2",
|
||||
| messages=messages
|
||||
| )
|
||||
| ``` |
|
||||
| StableBeluga | `completion('petals/petals-team/StableBeluga2', messages)` |
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue