<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: bloom</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/bloom.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2023-05-03T19:48:26+00:00</updated><author><name>Simon Willison</name></author><entry><title>Quoting SparseGPT</title><link href="https://simonwillison.net/2023/May/3/sparsegpt/#atom-tag" rel="alternate"/><published>2023-05-03T19:48:26+00:00</published><updated>2023-05-03T19:48:26+00:00</updated><id>https://simonwillison.net/2023/May/3/sparsegpt/#atom-tag</id><summary type="html">
    &lt;blockquote cite="https://arxiv.org/abs/2301.00774"&gt;&lt;p&gt;We show for the first time that large-scale generative pretrained transformer (GPT) family models can be pruned to at least 50% sparsity in one-shot, without any retraining, at minimal loss of accuracy. [...] We can execute SparseGPT on the largest available open-source models, OPT-175B and BLOOM-176B, in under 4.5 hours, and can reach 60% unstructured sparsity with negligible increase in perplexity: remarkably, more than 100 billion weights from these models can be ignored at inference time.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p class="cite"&gt;&amp;mdash; &lt;a href="https://arxiv.org/abs/2301.00774"&gt;SparseGPT&lt;/a&gt;, by Elias Frantar and Dan Alistarh&lt;/p&gt;

    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/ai"&gt;ai&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/generative-ai"&gt;generative-ai&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/local-llms"&gt;local-llms&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/llms"&gt;llms&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/bloom"&gt;bloom&lt;/a&gt;&lt;/p&gt;



</summary><category term="ai"/><category term="generative-ai"/><category term="local-llms"/><category term="llms"/><category term="bloom"/></entry><entry><title>ROOTS search tool</title><link href="https://simonwillison.net/2023/Apr/3/roots-search-tool/#atom-tag" rel="alternate"/><published>2023-04-03T20:40:28+00:00</published><updated>2023-04-03T20:40:28+00:00</updated><id>https://simonwillison.net/2023/Apr/3/roots-search-tool/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://huggingface.co/spaces/bigscience-data/roots-search"&gt;ROOTS search tool&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
BLOOM is one of the most interesting completely openly licensed language models. The ROOTS corpus is the training data that was collected for it, and this tool lets you run searches directly against that corpus. I tried searching for my own name and got an interesting insight into what it knows about me.

    &lt;p&gt;&lt;small&gt;&lt;/small&gt;Via &lt;a href="https://hackingsemantics.xyz/2023/closed-baselines/"&gt;Anna Rogers&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/ai"&gt;ai&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/generative-ai"&gt;generative-ai&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/llms"&gt;llms&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/bloom"&gt;bloom&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/training-data"&gt;training-data&lt;/a&gt;&lt;/p&gt;



</summary><category term="ai"/><category term="generative-ai"/><category term="llms"/><category term="bloom"/><category term="training-data"/></entry><entry><title>Could you train a ChatGPT-beating model for $85,000 and run it in a browser?</title><link href="https://simonwillison.net/2023/Mar/17/beat-chatgpt-in-a-browser/#atom-tag" rel="alternate"/><published>2023-03-17T15:43:38+00:00</published><updated>2023-03-17T15:43:38+00:00</updated><id>https://simonwillison.net/2023/Mar/17/beat-chatgpt-in-a-browser/#atom-tag</id><summary type="html">
    &lt;p&gt;I think it's now possible to train a large language model with similar functionality to GPT-3 for $85,000. And I think we might soon be able to run the resulting model entirely in the browser, and give it capabilities that leapfrog it ahead of ChatGPT.&lt;/p&gt;
&lt;p&gt;This is currently wild speculation on my part, but bear with me because I think this is worth exploring further.&lt;/p&gt;
&lt;p&gt;Large language models with GPT-3-like capabilities cost millions of dollars to build, thanks to the cost of running the expensive GPU servers needed to train them. Whether you are renting or buying those machines, there are still enormous energy costs to cover.&lt;/p&gt;
&lt;p&gt;Just one example of this: the &lt;a href="https://huggingface.co/bigscience/bloom-7b1"&gt;BLOOM large language model&lt;/a&gt; was trained in France with the support of the French government. The cost was estimated as $2-5M, it took almost four months to train and boasts about its low carbon footprint because most of the power came from a nuclear reactor!&lt;/p&gt;
&lt;p&gt;[ Fun fact: as of a few days ago you can now &lt;a href="https://github.com/NouamaneTazi/bloomz.cpp"&gt;run the openly licensed BLOOM on your own laptop&lt;/a&gt;, using Nouamane Tazi's adaptive copy of the &lt;code&gt;llama.cpp&lt;/code&gt; code that made that possible for LLaMA ]&lt;/p&gt;
&lt;p&gt;Recent developments have made me suspect that these costs could be made dramatically lower. I think a capable language model can now be trained from scratch for around $85,000.&lt;/p&gt;
&lt;h4&gt;It's all about that LLaMA&lt;/h4&gt;
&lt;p&gt;The LLaMA plus Alpaca combination is the key here.&lt;/p&gt;
&lt;p&gt;I wrote about these two projects previously:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://simonwillison.net/2023/Mar/11/llama/"&gt;Large language models are having their Stable Diffusion moment&lt;/a&gt; discusses the significance of LLaMA&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://simonwillison.net/2023/Mar/13/alpaca/"&gt;Stanford Alpaca, and the acceleration of on-device large language model development&lt;/a&gt; describes Alpaca&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To recap: &lt;a href="https://research.facebook.com/publications/llama-open-and-efficient-foundation-language-models/"&gt;LLaMA&lt;/a&gt; by Meta research provided a GPT-3 class model trained entirely on documented, available public training information, as opposed to OpenAI's continuing practice of not revealing the sources of their training data.&lt;/p&gt;
&lt;p&gt;This makes the model training a whole lot more likely to be replicable by other teams.&lt;/p&gt;
&lt;p&gt;The paper also describes some enormous efficiency improvements they made to the training process.&lt;/p&gt;
&lt;p&gt;The LLaMA research was still extremely expensive though. From the paper:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;... we estimate that we used 2048 A100-80GB for a period of approximately 5 months to develop our models&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;My friends at &lt;a href="https://replicate.com/"&gt;Replicate&lt;/a&gt; told me that a simple rule of thumb for A100 cloud costs is $1/hour.&lt;/p&gt;
&lt;p&gt;2048 * 5 * 30 * 24 = $7,372,800&lt;/p&gt;
&lt;p&gt;But... that $7M was the cost to both iterate on the model and to train all four sizes of LLaMA that they tried: 7B, 13B, 33B, and 65B.&lt;/p&gt;
&lt;p&gt;Here's Table 15 from the paper, showing the cost of training each model.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://static.simonwillison.net/static/2023/llama-table-15.jpg" alt="Table 15: Carbon footprint of training different models in the same data center. We follow Wu et al. (2022) to compute carbon emission of training OPT, BLOOM and our models in the same data center. For the power consumption of a A100-80GB, we take the thermal design power for NVLink systems, that is 400W. We take a PUE of 1.1 and a carbon intensity factor set at the national US average of 0.385 kg COze per KWh. Lists 6 models. OPT-175B: 809,472 GPU hours, 356 MWh, 137 tons CO2. BLOOM-175B: 1,082,880 GPU hours, 475 MWh, 183 tons. LLaMA-7B: 82,432 GPU hours, 36 MWh, 14 tons. LLaMA-13B: 135,168 GPU hours, 59 MWh, 23 tons. LLaMA-33B: 530,432 GPU hours, 233 MWh, 90 tons. LLaMA-65B: 1,022,362 GPU hours, 449 MWh, 173 tons." style="max-width: 100%;" /&gt;&lt;/p&gt;
&lt;p&gt;This shows that the smallest model, LLaMA-7B, was trained on 82,432 hours of A100-80GB GPUs, costing 36MWh and generating 14 tons of CO2.&lt;/p&gt;
&lt;p&gt;(That's about 28 people flying from London to New York.)&lt;/p&gt;
&lt;p&gt;Going by the $1/hour rule of thumb, this means that provided you get everything right on your first run you can train a LLaMA-7B scale model for around $82,432.&lt;/p&gt;
&lt;h4&gt;Upgrading to Alpaca&lt;/h4&gt;
&lt;p&gt;You can run LLaMA 7B &lt;a href="https://til.simonwillison.net/llms/llama-7b-m2"&gt;on your own laptop&lt;/a&gt; (or even &lt;a href="https://twitter.com/ggerganov/status/1635605532726681600"&gt;on a phone&lt;/a&gt;), but you may find it hard to get good results out of. That's because it hasn't been instruction tuned, so it's not great at answering the kind of prompts that you might send to ChatGPT or GPT-3 or 4.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://crfm.stanford.edu/2023/03/13/alpaca.html"&gt;Alpaca&lt;/a&gt; is the project from Stanford that fixes that. They fine-tuned LLaMA on 52,000 instructions (of &lt;a href="https://simonwillison.net/2023/Mar/13/alpaca/#bonus-training-data"&gt;somewhat dubious origin&lt;/a&gt;) and claim to have gotten ChatGPT-like performance as a result... from that smallest 7B LLaMA model!&lt;/p&gt;
&lt;p&gt;You can &lt;a href="https://crfm.stanford.edu/alpaca/"&gt;try out their demo&lt;/a&gt; (&lt;strong&gt;update:&lt;/strong&gt; no you can't, "Our live demo is suspended until further notice") and see for yourself that it really does capture at least some of that ChatGPT magic.&lt;/p&gt;
&lt;p&gt;The best bit? The Alpaca fine-tuning can be done for less than $100. The Replicate team have repeated the training process and &lt;a href="https://replicate.com/blog/replicate-alpaca"&gt;published a tutorial&lt;/a&gt; about how they did it.&lt;/p&gt;
&lt;p&gt;Other teams have also been able to replicate the Alpaca fine-tuning process, for example &lt;a href="https://github.com/antimatter15/alpaca.cpp"&gt;antimatter15/alpaca.cpp&lt;/a&gt; on GitHub.&lt;/p&gt;
&lt;p&gt;We are still within our $85,000 budget! And Alpaca - or an Alpaca-like model using different fine tuning data - is the ChatGPT on your own device model that we've all been hoping for.&lt;/p&gt;
&lt;h4&gt;Could we run it in a browser?&lt;/h4&gt;
&lt;p&gt;Alpaca is effectively the same size as LLaMA 7B - around 3.9GB (after 4-bit quantization ala &lt;a href="github.com/ggerganov/llama.cpp"&gt;llama.cpp&lt;/a&gt;). And LLaMA 7B has already been shown running on a whole bunch of different personal devices: laptops, Raspberry Pis (very slowly) and even a Pixel 5 phone at a decent speed!&lt;/p&gt;
&lt;p&gt;The next frontier: running it in the browser.&lt;/p&gt;
&lt;p&gt;I saw two tech demos yesterday that made me think this may be possible in the near future.&lt;/p&gt;
&lt;p&gt;The first is &lt;a href="https://github.com/xenova/transformers.js"&gt;Transformers.js&lt;/a&gt;. This is a WebAssembly port of the Hugging Face &lt;a href="https://huggingface.co/docs/transformers/index"&gt;Transformers&lt;/a&gt; library of models - previously only available for server-side Python.&lt;/p&gt;
&lt;p&gt;It's worth spending some time with &lt;a href="https://xenova.github.io/transformers.js/"&gt;their demos&lt;/a&gt;, which include some smaller language models and some very impressive image analysis languages too.&lt;/p&gt;
&lt;p&gt;The second is &lt;a href="https://github.com/mlc-ai/web-stable-diffusion"&gt;Web Stable Diffusion&lt;/a&gt;. This team managed to get the Stable Diffusion generative image model running entirely in the browser as well!&lt;/p&gt;
&lt;p&gt;Web Stable Diffusion uses WebGPU, a still emerging standard that's currently only working in Chrome Canary. But it does work! It rendered me this image of two raccoons eating a pie in the forest in 38 seconds.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://static.simonwillison.net/static/2023/web-stable-diffusion-raccoons.jpg" alt="mig.ai/web-stable-diffusion/ in a browser. The input prompt is two racoons eating a pie in the woods, with the default 20 step scheduler. After 38 seconds elapsed on the prograss bar a realistic photograph of two raccoons eating a fruit pie appears - although on closer inspection the raccoon holding the pie has three paws!" style="max-width: 100%;" /&gt;&lt;/p&gt;
&lt;p&gt;The Stable Diffusion model this loads into the browser is around 1.9GB.&lt;/p&gt;
&lt;p&gt;LLaMA/Alpaca at 4bit quantization is 3.9GB.&lt;/p&gt;
&lt;p&gt;The sizes of these two models are similar enough that I would not be at all surprised to see an Alpaca-like model running in the browser in the not-too-distant future. I wouldn't be surprised if someone is working on that right now.&lt;/p&gt;
&lt;h4 id="react-pattern"&gt;Now give it extra abilities with ReAct&lt;/h4&gt;
&lt;p&gt;A model running in your browser that behaved like a less capable version of ChatGPT would be pretty impressive. But what if it could be MORE capable than ChatGPT?&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://react-lm.github.io/"&gt;ReAct prompt pattern&lt;/a&gt; is a simple, proven way of expanding a language model's abilities by giving it access to extra tools.&lt;/p&gt;
&lt;p&gt;Matt Webb explains the significance of the pattern in &lt;a href="https://interconnected.org/home/2023/03/16/singularity"&gt;The surprising ease and effectiveness of AI in a loop&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I got it working with a few dozen lines of Python myself, which I described in &lt;a href="https://til.simonwillison.net/llms/python-react-pattern"&gt;A simple Python implementation of the ReAct pattern for LLMs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Here's the short version: you tell the model that it must think out loud and now has access to tools. It can then work through a question like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt; Population of Paris, squared?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thought:&lt;/strong&gt; I should look up the population of paris and then multiply it&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Action:&lt;/strong&gt; search_wikipedia: Paris&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Then it stops. Your code harness for the model reads that last line, sees the action and goes and executes an API call against Wikipedia. It continues the dialog with the model like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Observation:&lt;/strong&gt; &amp;lt;truncated content from the Wikipedia page, including the 2,248,780 population figure&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The model continues:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Thought:&lt;/strong&gt; Paris population is 2,248,780 I should square that&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Action:&lt;/strong&gt; calculator: 2248780 ** 2&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Control is handed back to the harness, which passes that to a calculator and returns:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Observation:&lt;/strong&gt; 5057011488400&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The model then provides the answer:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt; The population of Paris squared is 5,057,011,488,400&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Adding new actions to this system is trivial: each one can be a few lines of code.&lt;/p&gt;
&lt;p&gt;But as &lt;a href="https://react-lm.github.io/"&gt;the ReAct paper&lt;/a&gt; demonstrates, adding these capabilities to even an under-powered model (such as LLaMA 7B) can dramatically improve its abilities, at least according to several common language model benchmarks.&lt;/p&gt;
&lt;p&gt;This is essentially what Bing is! It's GPT-4 with the added ability to run searches against the Bing search index.&lt;/p&gt;
&lt;p&gt;Obviously if you're going to give a language model the ability to execute API calls and evaluate code you need to do it in a safe environment! Like for example... a web browser, which runs code from untrusted sources as a matter of habit and has the most thoroughly tested sandbox mechanism of any piece of software we've ever created.&lt;/p&gt;
&lt;h4 id="llm-conclusion"&gt;Adding it all together&lt;/h4&gt;
&lt;p&gt;There are a lot more groups out there that can afford to spend $85,000 training a model than there are that can spend $2M or more.&lt;/p&gt;
&lt;p&gt;I think LLaMA and Alpaca are going to have a lot of competition soon, from an increasing pool of openly licensed models.&lt;/p&gt;
&lt;p&gt;A fine-tuned LLaMA scale model is leaning in the direction of a ChatGPT competitor already. But... if you hook in some extra capabilities as seen in ReAct and Bing even that little model should be able to way outperform ChatGPT in terms of actual ability to solve problems and do interesting things.&lt;/p&gt;
&lt;p&gt;And we might be able to run such a thing on our phones... or even in our web browsers... sooner than you think.&lt;/p&gt;
&lt;h4 id="llm-cheaper"&gt;And it's only going to get cheaper&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://twitter.com/tobi/status/1636810016140271616"&gt;Tobias Lütke on Twitter:&lt;/a&gt;&lt;/p&gt;

&lt;blockquote class="twitter-tweet" data-conversation="none"&gt;&lt;p lang="en" dir="ltr"&gt;H100s are shipping and you can half this again. Twice (or more) if fp8 works.&lt;/p&gt;- tobi lutke (@tobi) &lt;a href="https://twitter.com/tobi/status/1636810016140271616?ref_src=twsrc%5Etfw"&gt;March 17, 2023&lt;/a&gt;&lt;/blockquote&gt;

&lt;p&gt;The &lt;a href="https://www.nvidia.com/en-us/data-center/h100/"&gt;H100&lt;/a&gt; is the new Tensor Core GPU from NVIDIA, which they claim can offer up to a 30x performance improvement over their current A100s.&lt;/p&gt;
    
        &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/ai"&gt;ai&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/webassembly"&gt;webassembly&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/generative-ai"&gt;generative-ai&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/chatgpt"&gt;chatgpt&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/llama"&gt;llama&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/local-llms"&gt;local-llms&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/llms"&gt;llms&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/bloom"&gt;bloom&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/mlc"&gt;mlc&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/transformers-js"&gt;transformers-js&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/llm-tool-use"&gt;llm-tool-use&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/llama-cpp"&gt;llama-cpp&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/tobias-lutke"&gt;tobias-lutke&lt;/a&gt;&lt;/p&gt;
    

</summary><category term="ai"/><category term="webassembly"/><category term="generative-ai"/><category term="chatgpt"/><category term="llama"/><category term="local-llms"/><category term="llms"/><category term="bloom"/><category term="mlc"/><category term="transformers-js"/><category term="llm-tool-use"/><category term="llama-cpp"/><category term="tobias-lutke"/></entry><entry><title>bloomz.cpp</title><link href="https://simonwillison.net/2023/Mar/16/bloomz/#atom-tag" rel="alternate"/><published>2023-03-16T00:24:37+00:00</published><updated>2023-03-16T00:24:37+00:00</updated><id>https://simonwillison.net/2023/Mar/16/bloomz/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/NouamaneTazi/bloomz.cpp"&gt;bloomz.cpp&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Nouamane Tazi Adapted the llama.cpp project to run against the BLOOM family of language models, which were released in July 2022 and trained in France on 45 natural languages and 12 programming languages using the Jean Zay Public Supercomputer, provided by the French government and powered using mostly nuclear energy.&lt;/p&gt;

&lt;p&gt;It’s under the RAIL license which allows (limited) commercial use, unlike LLaMA.&lt;/p&gt;

&lt;p&gt;Nouamane reports getting 16 tokens/second from BLOOMZ-7B1 running on an M1 Pro laptop.

    &lt;p&gt;&lt;small&gt;&lt;/small&gt;Via &lt;a href="https://twitter.com/nouamanetazi/status/1636077137089400832"&gt;@nouamanetazi&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/open-source"&gt;open-source&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/ai"&gt;ai&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/generative-ai"&gt;generative-ai&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/llama"&gt;llama&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/local-llms"&gt;local-llms&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/llms"&gt;llms&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/bloom"&gt;bloom&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/llama-cpp"&gt;llama-cpp&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/ai-energy-usage"&gt;ai-energy-usage&lt;/a&gt;&lt;/p&gt;



</summary><category term="open-source"/><category term="ai"/><category term="generative-ai"/><category term="llama"/><category term="local-llms"/><category term="llms"/><category term="bloom"/><category term="llama-cpp"/><category term="ai-energy-usage"/></entry><entry><title>Petals</title><link href="https://simonwillison.net/2023/Jan/2/petals/#atom-tag" rel="alternate"/><published>2023-01-02T23:29:42+00:00</published><updated>2023-01-02T23:29:42+00:00</updated><id>https://simonwillison.net/2023/Jan/2/petals/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/bigscience-workshop/petals"&gt;Petals&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
The challenge with large language models in the same scale ballpark as GPT-3 is that they’re large—really large. Far too big to run on a single machine at home. Petals is a fascinating attempt to address that problem: it works a little bit like BitTorrent, in that each user of Petal runs a subset of the overall language model on their machine and participates in a larger network to run inference across potentially hundreds of distributed GPUs. I tried it just now in Google Colab and it worked exactly as advertised, after downloading an 8GB subset of the 352GB BLOOM-176B model.

    &lt;p&gt;&lt;small&gt;&lt;/small&gt;Via &lt;a href="https://social.bobek.cz/@bobek/109621826849135220"&gt;@bobek&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/ai"&gt;ai&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/gpt-3"&gt;gpt-3&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/generative-ai"&gt;generative-ai&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/llms"&gt;llms&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/bloom"&gt;bloom&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/gpus"&gt;gpus&lt;/a&gt;&lt;/p&gt;



</summary><category term="ai"/><category term="gpt-3"/><category term="generative-ai"/><category term="llms"/><category term="bloom"/><category term="gpus"/></entry></feed>