Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(petals): add backend #1350

Merged
merged 2 commits into from
Nov 28, 2023
Merged

feat(petals): add backend #1350

merged 2 commits into from
Nov 28, 2023

Conversation

mudler
Copy link
Owner

@mudler mudler commented Nov 27, 2023

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}]
}'

Copy link

netlify bot commented Nov 27, 2023

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
24 checks passed
@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