Petals
Run and fine-tune large language models like Llama 3.1 and BLOOM on a consumer GPU
Free
Developer Tools
Visit website
What is Petals?
Petals lets you generate text with large language models such as Llama 3.1 (up to 405B), Mixtral (8x22B), Falcon (40B+) and BLOOM (176B). Instead of hosting a full model yourself, you load one part of it and join a network of people who serve the other parts, similar to how BitTorrent shares files.
It suits developers and researchers who want API-style convenience with the control of PyTorch and 🤗 Transformers. You can fine-tune models for your own tasks, use custom sampling methods, run custom paths through the model, or inspect its hidden states. Single-batch inference reaches up to 6 tokens/sec for Llama 2 (70B), enough for chatbots and interactive apps.
Key features
Generate text with Llama 3.1 (up to 405B), Mixtral and BLOOM
Fine-tune models using a consumer-grade GPU or Google Colab
Custom sampling methods and custom paths through the model
Access to hidden states
Works with PyTorch and 🤗 Transformers





