News for hackers. Stuff that matters.
Re:Large language models are having their Stable Diffusion m... by simonw on Saturday March 11, 2023 @04:14PM (#35112773)
By caveats do you mean the licensing terms or the difficulty of prompting the model?

Unless it's relicensed I don't expect LLaMA to be a long-term foundation model. But it's shown that yes, you can run a GPT-3 class model on an M1 Mac with 8GB of RAM (or maybe 16GB for the 13B one?)

I fully expect other models to follow, from other organizations, with better capabilities and more friendly licensing terms.

Re:Large language models are having their Stable Diffusion m... by minimaxir on Saturday March 11, 2023 @04:42PM (#35113065)
Ignoring the licensing issues, there are a few other constraints that would make the model harder to go viral outside of developers who spend a lot of time in this space already:

1) Model weights are heavy for just experimentation, although quantizing it down to 4-bit might make them on par with SD FP16.

2) Requires extreme CLI shenanigans (and likely configuration since you have to run make) compared to just running a Colab Notebook or a .bat Windows Installer for the A1111 UI.

3) Again hardware: a M1 Pro or a RTX 4090 is not super common among people who are just curious about text generation.

4) It is possible the extreme quantization could be affecting text output quality; although the examples are coherent for simple queries, more complex GPT-3-esque queries might become relatively incoherent. Particularly with ChatGPT and its cheap API (timely!) out now such that even nontechies have a strong baseline on good output already. The viral moment for SD was that it was easy to use and it was a significant quality leap over VQGAN + CLIP.

I was going to say inference speed since that's usually another constraint for new LLMs but given the 61.41 ms/token cited for the 7B model in the repo/your GIF, that seems on par with the inference speed from OPT-6.7B FP16 in transformers on a T4.

Some of these caveats are fixable, but even then I don't think LLaMA will have its Stable Diffusion moment.

Re:Large language models are having their Stable Diffusion m... by simonw on Saturday March 11, 2023 @05:14PM (#35113338)
The 4-bit quantized models are 4GB for 7B and 8GB for 13B.

I'm not too worried about CLI shenanigans, because of what happened with whisper.cpp - it resulted in apps like https://goodsnooze.gumroad.com/l/macwhisper - wouldn't be at all surprised to see the same happen with llama.cpp

A regular M1 with 8GB of RAM appears to be good enough to run that 7B model. I wonder at what point it will run on an iPhone... the Stable Diffusion model was 4GB when they first released it, and that runs on iOS now after some more optimization tricks.

For me though, the "Stable Diffusion" moment isn't necessarily about the LLaMA model itself. It's not licensed for commercial use, so it won't see nearly the same level of things built on top of it.

The key moment for me is that I've now personally seen a GPT-3 scale model running on my own personal laptop. I know it can be done! Now I just need to wait for the inevitable openly-licensed, instruction-tuned model that runs on the same hardware.

It's that, but also the forthcoming explosion of developer innovation that a local model will unleash. llama.cpp is just the first hint of that.

Re:Large language models are having their Stable Diffusion m... by smoldesu on Saturday March 11, 2023 @05:27PM (#35113450)
> The key moment for me is that I've now personally seen a GPT-3 scale model running on my own personal laptop.

I hate to pooh-pooh it for everyone, but this was possible before LLaMa. GPT-J-125m/6b have been around for a while, and are frankly easier to install and get results out of. The smaller pruned model even fits on an iPhone.

The problem is more that these smaller models won't ever compete with GPT-scale APIs. Tomorrow's local LLaMa might beat yesterday's ChatGPT, but I think those optimistic for the democratization of chatbot intelligence are setting their hopes a bit high. LLaMa really isn't breaking new ground.

Re:Large language models are having their Stable Diffusion m... by simonw on Saturday March 11, 2023 @05:40PM (#35113543)
I'm not particularly interested in beating ChatGPT: I'm looking for a "calculator for words" which I can use for things like summarization, term extraction, text rephrasing etc - maybe translation between languages too.

There are all kinds of things I want to be able to do with a LLM that are a lot tighter than general chatbots.

I'd love to see a demo of GPT-J on an iPhone!

Re:Large language models are having their Stable Diffusion m... by sroussey on Saturday March 11, 2023 @08:13PM (#35115124)
In a decade, these models will be baked into a SOC.
Re:Large language models are having their Stable Diffusion m... by Vetch on Saturday March 11, 2023 @06:43PM (#35114010)
There was only ever a 6B GPT-J, you must be thinking of GPT-neo's for smaller sizes. GPT-J was the best of its kind for a long while but even just the 7b version of LLaMa soundly surpasses it in how well it follows examples to solve problems and do useful work like summarization, keyword extraction and a mini search agent. Being able to run something on your laptop that matches the original davinci GPT3 and can be tuned to go beyond is nothing to sniff at.

The best models will be by API but there is a threshold of utility for LLMs, below which they're just bad story telling toys, that hasn't been available for home users until recently, with FlanT5s and LLaMas.

Re:Large language models are having their Stable Diffusion m... by simonw on Saturday March 11, 2023 @07:01PM (#35114243)
What prompt are you using to get LLaMA to do summarization?
Re:Large language models are having their Stable Diffusion m... by BryceSchroeder on Tuesday March 21, 2023 @09:59PM (#35255756)
Would also like to know.
Re:Large language models are having their Stable Diffusion m... by ShamelessC on Saturday March 11, 2023 @06:53PM (#35114104)
GPT-J is cool and all, but it’s been out for awhile and hasn’t seen anywhere near this amount of network effects. Further the Eleuther team is a bit detached from the “average user” in my experience, being all-in on TPU and JAX (which is still suffering from a similar lack of maturity making it difficult to run on non-standard setups).

I’m sure someone did the work you suggest to let folks run on this on more reasonable setups- but I never saw it on the front page here.

Did they achieve GPT-3 performance on anything at that model size? Happy to be corrected, but my understanding was llama does in fact outperform GPT-3 even at the smaller parameter-counts on certain downstream tasks due to using the chinchilla training regime (and other tricks).

Re:Large language models are having their Stable Diffusion m... by stonebraker on Tuesday March 21, 2023 @02:31AM (#35243114)
Has anyone compared performance between LLaMa.cpp vs Alpaca.cpp?
Re:Large language models are having their Stable Diffusion m... by zamnos on Saturday March 11, 2023 @04:39PM (#35113024)
But is anyone actually making money off of StableDiffusion? Maybe the shovel-sellers (runpod.io et al), but afaik no one using it as the foundation for a revenue generating company. I ask, because yes, technically, you can't get LLaMA legally unless you're a researcher and get it directly from Facebook. But that trivially findable torrent of it shows a healthy swarm of users. Users who are working on the MPS port or other features, licensing be damned.
Re:Large language models are having their Stable Diffusion m... by logifail on Saturday March 11, 2023 @04:51PM (#35113156)
> is anyone actually making money off of StableDiffusion?

We're all still waiting to hear about (non-shovel-selling) successes in this space.

Re:Large language models are having their Stable Diffusion m... by pmoriarty on Saturday March 11, 2023 @05:42PM (#35113559)
I don't know about Stable Diffusion in particular, but three examples of AI-generated art making money immediately spring to mind:

1 - some guy won hundreds of dollars in an art contest from AI generated art (and this made big news, so it should be easy to find)

2 - one person reported using midjourney's images as a starting point for images that wound up being used in a physical magazine

3 - another artist has used midjourney images that they modify to sell in all sorts of contexts (like background images on stock illustration sites)

You'd probably find many other examples in midjourney's #in-the-world discord channel.

I'd also be shocked if stock image sites, clipart sites and freelance design/illustration sites weren't already flooded with AI generated images that have been sold for money.

That being said, because high questly AI-generated images are so easy to make, the value of images of all types is likely to plummet soon if it hasn't already.

Re:Large language models are having their Stable Diffusion m... by dragonwriter on Sunday March 12, 2023 @02:24PM (#35124050)
> the value of images of all types is likely to plummet soon if it hasn't already.

The price might, but the marginal value having them or not has to other products which incorporate them likely won’t as much. So, say, if you are a TTRPG publisher, the value of art to your business doesn't change, but the cost of moving farther along the no art -> scattered sketches & tangentially relevant public domain works -> ideal quantity of art, specific to the product, goes down. So, you are, in effect, making money on SD.

Re:Large language models are having their Stable Diffusion m... by dragonwriter on Sunday March 12, 2023 @02:13PM (#35123903)
Ultimately, its an art tool — a shovel — ecosystem that is democratized enough that it is dominated by high-quality, end-user usable components.

Making money with it in the non-shovel-selling sense is going to be commercial artists (or other people with visual image needs, perhaps avoiding the need for commercial artists) incorporating it in production workflows. But except when they are also selling shovels (e.g., Pixar with Renderman) there’s not a whole lot of incentive to trumpet workflow components rather than product in that space.

Re:Large language models are having their Stable Diffusion m... by logifail on Sunday March 12, 2023 @03:26PM (#35124967)
> commercial artists (or other people with visual image needs, perhaps avoiding the need for commercial artists) incorporating it in production workflows

Maybe it's just me, but that reeks of the archetypal race to the bottom.

"We didn't have to pay professional X to do task Y as we and others have been doing for decades, instead we used modern replacement Z funded by cheap money which costs peanuts at present".

Q: Is there really a business to be made selling Z?

Re:Large language models are having their Stable Diffusion m... by dragonwriter on Sunday March 12, 2023 @04:00PM (#35125445)
Who cares? If Z is free, and there are businesses to be enhanced using Z, then people are making money with Z, even if the mechanism isn’t “selling Z.”
Re:Large language models are having their Stable Diffusion m... by simonw on Saturday March 11, 2023 @05:11PM (#35113311)
I believe Midjourney may have used bits of Stable Diffusion in their product, which is definitely profitable.
Re:Large language models are having their Stable Diffusion m... by nomdep on Saturday March 11, 2023 @06:45PM (#35114021)
> But is anyone actually making money off of StableDiffusion?

How about:

- https://www.deepagency.com/

- https://avatarai.me/

Re:Large language models are having their Stable Diffusion m... by blueblimp on Saturday March 11, 2023 @08:18PM (#35115169)
NovelAI's image generation uses a fine-tune of Stable Diffusion.
Re:Large language models are having their Stable Diffusion m... by vintermann on Monday March 13, 2023 @09:59AM (#35135802)
If anyone is making net money on Stable Diffusion already, they're either small scale or not going to be around for long, probably both. Anything in it for the longer term is going to be in the buildup phase.