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
|
||||||
Petals: https://github.com/bigscience-workshop/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
|
## Usage
|
||||||
Ensure you add `petals/` as a prefix for all petals LLMs. This sets the custom_llm_provider to petals
|
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 Details
|
||||||
|
|
||||||
| Model Name | Function Call |
|
| Model Name | Function Call |
|
||||||
|------------------|--------------------------------------------|
|
|------------------|--------------------------------------------|
|
||||||
| StableBeluga | ```python
|
| StableBeluga | `completion('petals/petals-team/StableBeluga2', messages)` |
|
||||||
| completion(
|
|
||||||
| model="petals/petals-team/StableBeluga2",
|
|
||||||
| messages=messages
|
|
||||||
| )
|
|
||||||
| ``` |
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue