News for hackers. Stuff that matters.
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by wokwokwok on Thursday January 19, 2023 @07:55PM (#34447812)
> Can these models feasibly be run locally?

Bluntly, no.

The models which are small enough to run locally perform so badly it’s not worth bothering.

To run inference on the large models the perform decently you need the equivalent of two or three top end graphics cards.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by adam_arthur on Thursday January 19, 2023 @08:30PM (#34448079)
Hmmm, 2-3 high end GPUs implies it's likely not very far off from mainstream. Maybe runnable on the average device within 10-20 years... perhaps even sooner if the model/software can be optimized?
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by lolspace on Thursday January 19, 2023 @08:56PM (#34448256)
20 years?
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by adam_arthur on Thursday January 19, 2023 @09:17PM (#34448391)
In 20 years I'll still be alive and enjoying myself. Does 20 years seem long to you?
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by krsdcbl on Thursday January 19, 2023 @10:39PM (#34448925)
it seems a bit long for achieving just running your own AI models locally, given it seems to be largely a question of vram and that you already _could_ do it today with a handful of graphic cards.

20y ago we had the GeForce Ti4400, current graphics cards now come with 100x the vram and 50-60x the bandwidth.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by 5e92cb50239222b on Friday January 20, 2023 @02:38AM (#34450171)
That's one hell of an assumption. Many of my Russian friends were absolutely certain they'll be alive and well for at least the next 20 years not that long ago.
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by adam_arthur on Friday January 20, 2023 @04:28PM (#34460185)
If I'm dead then being able to run an AI locally doesn't matter anyway
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by simne on Saturday January 21, 2023 @01:16PM (#34468666)
Sure, they will be alive if not come to Ukraine.
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by dahdum on Thursday January 19, 2023 @09:20PM (#34448422)
> 2-3 high end GPUs implies it's likely not very far off from mainstream

Looks like FLOP/s per $ are doubling every ~3 years for high end cards, and 10x in ~10 years. So probably not that far off for desktop users.

https://www.lesswrong.com/posts/c6KFvQcZggQKZzxr9/trends-in-...

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by visarga on Friday January 20, 2023 @03:50AM (#34450534)
FLOPs remain unused when the bottleneck is bandwidth.
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by bemmu on Thursday January 19, 2023 @09:42PM (#34448548)
I’d be surprised if there weren’t any algo breakthroughs before that to make these several times faster (10x?).

(such as are all of the weights really needed all of the time, or could you load different ones based on recent context?)

If in 10 years on top of that you’d have that 10x faster hardware as well, you might be running GPT-3s as just a subcomponent of games/apps.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by ETH_start on Thursday January 19, 2023 @10:58PM (#34449058)
ChatGPT prompt: What's the difference between a component and subcomponent?

A component is a self-contained unit of functionality, often in the form of a class or object, that represents a piece of an overall system or application. A subcomponent, on the other hand, is a smaller, simpler component that is used as part of a larger component. A subcomponent is typically used to break down a larger component into smaller, more manageable pieces, and is often used to create reusable building blocks for larger components. In other words, a subcomponent is a component that is used by another component.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by lfkdev on Thursday January 19, 2023 @07:58PM (#34447828)
Two or three top GPUs? Thats basically nothing for a professinal project or even an investeded hobby
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by throwifasd on Thursday January 19, 2023 @07:59PM (#34447842)
We are not talking two or three and we are not talking 4090s here... If someone talks about something with confidence you see no one doing despite it being desirable they are usually full of shit and have no idea what they are talking about.
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by wokwokwok on Thursday January 19, 2023 @08:21PM (#34447999)
You details of what is required can be found per project.

eg. https://github.com/fauxpilot/fauxpilot/blob/main/setup.sh#L5...

/shrug

If you don't want to run it locally, don't.

If the hardware you have doesn't support it, don't.

...but to say it's not possible is, again, bluntly, wrong.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by space_fountain on Thursday January 19, 2023 @08:26PM (#34448052)
The largest model is an order of magnitude smaller than gpt3 right? Does it perform similarly to copilot?
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by throwifasd on Thursday January 19, 2023 @08:25PM (#34448039)
yeah, that's not what op asked about. That's one of those smaller models that "suck" as you said so confidently in your first comment. Not even close to gpt3/chatgpt. Next time when I talk bullshit I just post a random py file to make my argument. lmao
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by adam_arthur on Thursday January 19, 2023 @08:36PM (#34448118)
Though if true, it does beg the question, how can these services possibly be offered profitably if a single query requires many high end GPUs to run?

Doesn't really track logically either. Though I'm not in the know. Perhaps ChatGPT is run with massive operating losses and its all VC subsidized.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by throwifasd on Thursday January 19, 2023 @08:46PM (#34448197)
This post [0] is a good primer and they are talking about a 20b model gpt3 has 175b. Their other posts go more into details but yes, it really is a massive operation.

Some hard facts from here [1] talking about BLOOM with 175b parameters..

>> Installing the full 175B version is a challenge though as it requires around 350GB of GPU VRAM, which is not something one can easily afford.

But hey why deploy a model like chatGPT at all when you guys can be confidently incorrect all by yourselves.

[0] https://nlpcloud.com/deploying-gpt-neox-20-production-focus-...

[1] https://nlpcloud.com/chatgpt-open-source-alternatives.html

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by adam_arthur on Thursday January 19, 2023 @09:09PM (#34448347)
So it sounds like this is a question of loading the model into VRAM, and not a question of the cost of a single query. I assume once a model is loaded, many queries can be serviced by that model quickly.

There's nothing incorrect about my assertion. If it were to actually take many GPUs to service one query, then there is no mass scale cost viable consumer product. That's just a clear economic fact. Regardless if a model could be theoretically spun up in a cost inefficient manner.

And even 100s of GB of VRAM is not far off from consumer hardware. Look at how quickly graphics ram has expanded over time. About ~10x in ~10 years for high end cards, at a cursory glance at various Nvidia cards. At the same trajectory we could see a 400GB vram card within the next decade (though lots of assumptions)

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by throwifasd on Thursday January 19, 2023 @09:18PM (#34448399)
You really are like a chatbot... look at the last three node sizes and the density of ram in them. It's not gonna happen as fast as you dream about it especially not with the discounts of the last Gens. The hope is to go to fp4 if you want to run it on consumer hardware and we are still not talking to about 2-3 cards. Why not at least try to Google before hammering down on stupid and uninformed hot takes?
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by visarga on Friday January 20, 2023 @04:03AM (#34450605)
> I assume once a model is loaded, many queries can be serviced by that model quickly.

Depends. If you have room to load the whole model, yes. If you need to swap in and out parts of the model, then it matters if you have enough RAM.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by jacobr1 on Thursday January 19, 2023 @09:01PM (#34448287)
One thing to consider, there is considerable asymmetry between the high training costs and the lower (relatively) operating costs.

> Perhaps ChatGPT is run with massive operating losses and its all VC subsidized.

I'm not in the know either, but the current access is providing both marketing awareness, and significant human training/feedback to be used for improvements on future commercial projects. It could certainly be the case that that benefits outweigh costs compared to the classic, dumber "get eyeballs now, monetize later" strategy.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by visarga on Friday January 20, 2023 @04:01AM (#34450591)
$3M/day is what I heard
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by visarga on Friday January 20, 2023 @03:55AM (#34450560)
You need something like an NVIDIA DGX station which tops $300K and uses over 5kW of power.

https://www.deltacomputer.com/nvidia-dgx-h100-640gb.html

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by blagie on Friday January 20, 2023 @05:43AM (#34451216)
No, you can get away with under $20k these days. The models can now distribute adequately well, so you can get away with a swarm of thirty two 12GB 3060 Ti cards. 32*$400 = $12,800. Add in computers to stick them in and interlink, and that's sort of where you land.

When you needed this in one machine, the cost to build a box capable of running OPT was around $50-$150k. An 80GB GPU runs around $10k-$20k, and you need five of them.

So you can get away with a good bit less than an NVidia DGX Station. Unless you're a FAANG SWE of a high level of some kind, it's well outside of hobbyist use, but it's not an unreasonable expense for most business use. The way I think of this expense is it's 10% of the annual cost of a SWE. If it improves productivity by more than 10%, it's worth it for a one-person team. With a 10-person team, it's worth it at a 1% improvement.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by ronsor on Thursday January 19, 2023 @08:05PM (#34447881)
A few 4090Ti GPUs might be good enough, if they do indeed end up with 48GB of VRAM.
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by firsttimebigboy on Thursday January 19, 2023 @08:18PM (#34447981)
According to wikipedia ChatGPT is built on GPT-3 which has 175B parameters requiring 800GB of memory, so a few 4090s will fall short.
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by samr71 on Thursday January 19, 2023 @11:04PM (#34449100)
Let's say the 4090ti is priced around $2500. 16 of them would set you back just $40 grand. That's quite a bit for the average consumer, but people spend that kinda dough on cars/boats/planes etc. It's well within the realm of dedicated hobbyists. For companies it's nothing.

Someone will come along selling pre-builts for this purpose, if that's not already available for their current research/enterprise cards.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by corobo on Thursday January 19, 2023 @09:17PM (#34448387)
How badly is bad? What sort of output are we talking?

I am asking as I once had a Markov-chain IRC bot* and while it often struggled to string together a sentence, it was quite hilarious sometimes. Absolutely pointless other than the occasional laugh.

Can it form sentences or are those small models completely unusable for anything?

I'm not thinking OpenAI level uses - sort of compare a Postgres cluster to a SQLite file (not literally, conceptually I guess). Can it be used for single tasks in any way?

Could it figure out how to map search terms to URLs for a knowledge base type thing?

Forgive me if these are silly questions. The extent of my knowledge in this field is asking ChatGPT questions and going "that's so cool" when it answers.

* Your phone's predictive text except it finishes the sentence itself based on a word someone in chat used so that it felt on topic.

In my case it also learned how to form sentences from other people talking in chat, in hindsight it's amazing I never had a Tay issue.

https://en.m.wikipedia.org/wiki/Tay_(bot)

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by wokwokwok on Thursday January 19, 2023 @11:14PM (#34449170)
> or are those small models completely unusable for anything?

Sadly, they really offer almost no value.

For the effort, you’re better off with an NLP framework like spacy.

You can play with the small neo gpt models on hugging face, eg. https://huggingface.co/EleutherAI/gpt-neo-125M

…but, the tldr is they’re cute to play with, but practically, the content they can generate is short, inconsistent and full of errors.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by blagie on Friday January 20, 2023 @05:33AM (#34451129)
.... which is actually not of "almost no value." The value of smaller models is different. For example, I have anonymized data, with fields removed. The smaller models do fine for filling those fields in with plausible values.

The smaller models do okay for zero-shot clustering of data in many cases (e.g. liberal versus conservative text), and if not, with minimal training. For generating statistics or probabilistic information about large numbers of text, they're great.

GPT-3, they're not, but I use them in my day-to-day work quite a bit more than I thought I would. I bought a GPU for one purpose, and I find I spin it up a lot these days.

I /really/ want to be able to use a large-scale language model locally, though. For the types of things I'd like it for, such as helping me draft emails, I don't trust OpenAI with my data.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by ggerganov on Friday January 20, 2023 @01:31AM (#34449858)
I was recently playing with the GPT-2 and GPT-J models. Results are often non-sensical for any practical purposes, but I think can be used for making something fun - similar to your IRC bot idea.

If you are interested in running these models yourself without having a beefy GPU, you can try my custom inference implementation. It's in pure C/C++ without any 3rd party dependencies, runs straight on the CPU and builds very easily. I think it is relatively well optimised. For example, on a MacBook M1 Pro I can run GPT-2 XL (1.5B params) at 42ms/token and GPT-J / GPT-JT (6B params) at 125ms/token.

Here are a couple of generated examples using GPT-J:

https://github.com/ggerganov/ggml/tree/master/examples/gpt-j

These are examples using zero-shot prompt where the model auto-completes a text given a starting prompt. You can try to make a conversation bot with a few-shot prompt, but it's not great. Probably the model needs some fine-tuning for that to become feasible.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by corobo on Friday January 20, 2023 @04:53PM (#34460500)
I'll have to have a look into those, there's an audience of about 12 people that would be thrilled to hear "eggbot" is back with a shiny modern brain on, haha.

Oddly enough any processing delay is good in an "AI" chat bot, within reason, makes it feel more natural rather than getting a response ping instantly. Chat version of uncanny valley or something, haha.

Something it also did in Markov form was pick randomly from the longest words in the sentence it had decided to reply to, build the rest of it from that, then run itself "backwards" from the picked word to a sentence starter word it knew.

Thank you for the reply! Looking forward to some tinkering.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by visarga on Friday January 20, 2023 @03:48AM (#34450526)
FLAN T5 shows promising signs, but it doesn't get even to 50% of GPT-3 performance.
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by anigbrowl on Thursday January 19, 2023 @09:20PM (#34448415)
How much of this is the language vs the vast amount of passably accurate domain knowledge? ChatGPT etc. seem magic because they can answer questions about virtually anything with a high degree of plausibility. It often gets specific facts wrong, but the general contours are correct. Many of us know a lot of trivia/specialist knowledge, but I don't think anyone is as broadly informed as ChatGPT appears to be. It's not clear where the language ends and the encyclopedic knowledge starts, but the latter must be taking up a very large amount of the space in the model.
Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by dragonwriter on Friday January 20, 2023 @01:32AM (#34449863)
> How much of this is the language vs the vast amount of passably accurate domain knowledge?

LLMs don’t have domain knowledge, its all language.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by anigbrowl on Friday January 20, 2023 @02:05PM (#34458075)
That's what I meant by 'It's not clear where the language ends and the encyclopedic knowledge starts,' since the model (and perhaps our brains) make little distinction.

But the model seems to be storing an absolutely vast amount of information, beyond the the capability of any individual person to accumulate and recall. This is clearly not a prerequisite for language, even if the information is represented linguistically. Put another way, at age 20 I had read maybe 10-20% of what I've read since, but I was capable of reading comprehension and conversation even though my levels of knowledge and insight were much lower. By 'comprehension' I mean in the sense of being able to read a piece of text and answer questions about it or rewrite it, without necessarily having any priors about the topic; the kind of task we expect to be able to assign to a high school graduate.

I'm wondering what the size of an 'ignorant' language model is, as a precursor to more curated/directed training. While the state of the art is very impressive, it's a bit like taking a feast for a thousand people and rendering it into a giant cube of spam. This strategy seems guaranteed to produce a succession of increasingly capable idiots savant but limits other avenues of exploration.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by simne on Saturday January 21, 2023 @01:14PM (#34468640)
> at age 20 I had read maybe 10-20% of what I've read since, but I was capable of reading comprehension and conversation...

This is because human intelligence is not just language, but lot of indirect context, "software" inside spinal cord (and other non-cortex parts of brain), and even human body itself.

But as I know, current LLMs working in plain flat structures. At the moment, nobody tried to use even neocortex-like structures, not even considered artificial spinal cord.

All these looks like, to teach table lamp, or something similar smart.

Re:ChatRWKV, like ChatGPT but powered by the RWKV (RNN-based... by visarga on Friday January 20, 2023 @03:54AM (#34450555)
There have been attempts to separate fact knowledge from language knowledge - for example DeepMind RETRO that uses a search index of 1T tokens. RETRO manages to reach GPT-3 performance on some tasks with a 20x smaller model. I believe smaller model are more useful for extractive and classification tasks than creative text generation.