152 karma · joined Oct 1, 2015 (11y ago) · 53 submissions
comment 3y ago · link · parent
We developed Petals for people who have less GPU memory than needed. Also, there's still a chance of larger open models being released in the future.
comment 3y ago · link · parent
This catches frequent attackers but doesn't provide 100% protection - so we expect people to set up a _private_ swarm if they want full correctness guarantees. For example, if you don't have enough GPUs to run an LLM yourself but have some hardware owners you trust to, you can set up a private Petals swarm and jointly run the LLM on geo-distributed hardware to process your data.
comment 3y ago · link · parent
Apparently, the Colab code snippet is just too simplified and does not handle </s> correctly. This is not the case with the full chatbot app at https://chat.petals.dev - you can try it out instead.
4.
Talk to Falcon 180B-Chat running over Petals(chat.petals.dev ↗)
1 points · by borzunov · 3y ago · discuss
5.
Chat with Llama 2 (70B) running over the Petals P2P network(chat.petals.dev ↗)
4 points · by borzunov · 3y ago · discuss
comment 3y ago · link · parent
comment 3y ago · link · parent
Colab: https://colab.research.google.com/drive/1uCphNY7gfAUkdDrTx21...
Project description: https://github.com/bigscience-workshop/petals
8.
Petals runs Llama 2 (70B) from Colab at 5 tokens/sec(github.com ↗)
5 points · by borzunov · 3y ago · 3 comments
comment 3y ago · link · parent
10.
Make a PyTorch model tensor-parallel in one line of code(github.com ↗)
4 points · by borzunov · 3y ago · discuss
comment 3y ago · link · parent
In contrast, the training methods implemented in Hivemind struggle to minimize compute and communication but don't provide data privacy guarantees. This is mostly okay for LLMs, since they are trained on public data scraped from the Internet anyway.
comment 3y ago · link · parent
So, I believe 1 sec/token with Petals is the best you can get for the models of this size, unless you have enough GPUs to fit the entire model into the GPU memory (you'd need 3x A100 or 8x 3090 for the 8-bit quantized model).
comment 3y ago · link · parent
We have guides for adding other models to Petals in the repo. One of our contributors is working on adding the largest LLaMA right now. I doubt that we can host LLaMA in the public swarm due to its license, but there's a chance that we'll get similar models with more permissive license in future.
comment 3y ago · link · parent
In turn, "parallel inference" refers to the high-throughput scenario when you generate multiple sequences in parallel. This is useful when you process some large dataset with LLM (e.g. run inference with batch size of 200) or run a beam search with a large beam width. In this case, you can actually get the speed of hundreds of tokens per sec, see our benchmarks for parallel forward passes: https://github.com/bigscience-workshop/petals#benchmarks
If you have another wording in mind that is more up front, please let us know, we'd be happy to improve the project description. Petals is a non-commercial research project, and we don't want to oversell anything.
comment 3y ago · link · parent
The fact that the FlexGen's single-batch generation performance is much worse is unclear to most people not familiar with peculiarities of LLM inference and worth clarifying. Instead, the readme starts with mentioning ChatGPT and Codex - projects that both rely on single-batch inference of LLMs at interactive speeds, which is not really possible with FlexGen's offloading (given the speed mentioned in the parent comment). The batch sizes are not reported in the table as well.
Seeing that, I'm not surprised that most HN commenters misunderstood the project's contribution.
comment 3y ago · link · parent
comment 3y ago · link · parent
> The batch size is tuned to a value that maximizes the generation throughput for each system.
> FlexGen cannot achieve its best throughput in [...] single-batch case.
For 175B models, this likely means that the system takes a few seconds for each generation step, but you can generate multiple sequences in parallel and get a good performance _per token_.
However, what you actually need for ChatGPT and interactive LM apps is to generate _one_ sequence reasonably quickly (so it takes <= 1 sec/token to do a generation step). I'm not sure if this system can be used for that, since our measurements [1] show that even the theoretically-best RAM offloading setup can't run the single-batch generation faster than 5.5 sec/token due to hardware constraints.
The authors don't report the speed of the single-batch generation in the repo and the paper.
comment 3y ago · link · parent
A client needs to communicate with multiple servers in a specific way to run the model, I'm not sure our communication model can be implemented with BOINC.
comment 3y ago · link · parent
You can use and fine-tune them to solve almost all existing natural language processing tasks: machine translation, recommendation/search, text classification and summarization, code generation, etc.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
In other words, if Petals nodes became 10-100x slower, Petals would lose its competitive advantage over simpler methods that don't communicate over the Internet.
comment 3y ago · link · parent