petals social preview
inference-server10,740MIT

petals

๐ŸŒธ Run LLMs at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading

Updated Dec 5, 2026
Platforms
macos, linux, windows, docker
Pricing
free-open-source
Status
active
License
MIT

What it does

Core capabilities at a glance

  • Bloom
  • Chatbot
  • Distributed Systems
  • Falcon
  • GPT
  • Guanaco
  • Language Models
  • Large Language Models

Deep dive

The full breakdown - performance, comparisons, and setup

petalsLink to this section

petals is a fine-tuning toolkit - ๐ŸŒธ Run LLMs at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading.

OverviewLink to this section

Run large language models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading

Generate text with distributed Llama 3.1 (up to 405B), Mixtral (8x22B), Falcon (40B+) or BLOOM (176B) and fineโ€‘tune them for your own tasks โ€” right from your desktop computer or Google Colab:

๐Ÿฆ™ Want to run Llama? Request access to its weights, then run 'huggingface-cli login' in the terminal before loading the model. Or just try it in our chatbot app.

๐Ÿ” Privacy. Your data will be processed with the help of other people in the public swarm. Learn more about privacy here. For sensitive data, you can set up a private swarm among people you trust.

Petals is a community-run system โ€” we rely on people sharing their GPUs. You can help serving one of the available models or host a new model from ๐Ÿค— Model Hub!

As an example, here is how to host a part of Llama 3.1 (405B) Instruct on your GPU:

๐Ÿฆ™ Want to host Llama? Request access to its weights, then run 'huggingface-cli login' in the terminal before loading the model.

๐Ÿง Linux + Anaconda. Run these commands for NVIDIA GPUs (or follow this for AMD):

๐Ÿ‹ Docker. Run our Docker image for NVIDIA GPUs (or follow this for AMD):

petals is open-source, written primarily in Python, with 10,740 GitHub stars under the MIT license. The latest release is v2.2.0 (2023-09-06).

Key capabilitiesLink to this section

From the project's documentation:

  • Launch a private swarm: guide
  • Run a custom model: guide

InstallLink to this section

A quick way to get started (always check the official docs for the latest):

pip install git+https://github.com/bigscience-workshop/petals

How it fits a local-AI stackLink to this section

petals runs on your own hardware, so pair it with a model and a GPU sized to your needs. Use the VRAM calculator to pick a model that fits your card, and see what you can run for hardware guidance. Related fine-tuning toolkits in the directory:

SourcesLink to this section

Stats from GitHub, 2026-10-22.

From the community

What users are saying

โ€œA Petals dev here. It is not real-time, but we think the speed of ~1 token/sec may be enough for some interactive apps such as chat bots (especially, if you show tokens to a user once they are generated).โ€

โ€œHm, looks like this is an old project (2022) associated with HuggingFace ( https://huggingface.co/bigscience ). Doesn't look like it's very active nowadays: https://github.com/bigscience-workshop/petals Article with more details: https://techcrunch.com/2022/12/20/petals-is-creating-a-free-...โ€

โ€œI only read up to the "Petals around the Rose" exercise. I found it pretty easy to deduce (induce?) but the author is right, there's no general algorithmic method to do it .. except for intelligence. So, the solution is "AI", and even then it's only a "probably".โ€

Frequently asked

Quick answers to common questions

What is petals?

petals is a inference-server tool for local AI workloads. ๐ŸŒธ Run LLMs at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading

Is petals free and open source?

Yes, petals has 10,740 GitHub stars and is licensed under MIT. You can self-host it for free on macos, linux, windows, docker.

What platforms does petals support?

petals runs on macos, linux, windows, docker.

What hardware do I need for petals?

The hardware requirements depend on which models you run. Check our hardware directory for compatible GPUs and systems. petals has 10,740 GitHub stars and an active community.

Does petals support GPU acceleration?

petals supports GPU acceleration via CUDA, Metal, or Vulkan depending on your platform. For the best performance, pair it with an NVIDIA RTX 4090 or 5090.

What are the best alternatives to petals?

Popular alternatives include other inference-server tools in our directory. Browse our full collection at /tool for comparisons, community reviews, and benchmark data to find the right fit for your workflow.

How much does petals cost?

petals is free-open-source. It is completely free and open source to self-host.

Pairs well with

Complementary tools, models, and hardware