Skip to content

feat(petals): add backend - #1350

Merged
mudler merged 2 commits into
masterfrom
petals
Nov 28, 2023
Merged

feat(petals): add backend#1350
mudler merged 2 commits into
masterfrom
petals

Conversation

@mudler

@mudler mudler commented Nov 27, 2023

Copy link
Copy Markdown
Owner

Description

This PR fixes #1262

It adds petals (https://github.com/bigscience-workshop/petals) support - it does not support token generation yet, but is a first attempt on supporting p2p based backends. really interesting as this unlock usage of LocalAI in very low or embedded environments.

Maybe time to get arm64 workers so we can build images faster? cross-compiling on GH was impossible to handle anymore

Example model config:

name: petals
parameters:
  model: petals-team/StableBeluga2
backend: petals

curl call:

curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
     "model": "petals",
     "messages": [{"role": "user", "content": "Once upon a time..", "temperature": 0.1}]
}'

@netlify

netlify Bot commented Nov 27, 2023

Copy link
Copy Markdown

Deploy Preview for localai canceled.

Name Link
🔨 Latest commit 1c09529
🔍 Latest deploy log https://app.netlify.com/sites/localai/deploys/6564e73b2eba8c00080ff5af

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler
mudler force-pushed the petals branch 2 times, most recently from eaf59c9 to 1409dd6 Compare November 27, 2023 18:59
@mudler
mudler merged commit b782136 into master Nov 28, 2023
@mudler
mudler deleted the petals branch November 28, 2023 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(Petals): Add support to Petals

1 participant