Open source implementation for LLaMA-based ChatGPT
github.com
github.com
The perf of a model of that size on the M1 will not be good. That is big enough it won't quite fit on a 3090 (24GB) without quantization.
Also, Neuralmagic may run their sparsification on ARM cpu's in the future, so keep an eye.
1. ChatRWKV v2: with "stream" and "split" strategies. 3G VRAM is enough to run RWKV 14B :)
The dataset is interesting. It's not dissimllar to The Pile, which RWKV is already trained on, but does seem to have quite a lot more preprocessing to increase the dataset quality.
Even if you could use all 128 cores I would still get the 2080 would be faster
https://www.pcworld.com/article/402592/nvidia-turing-gpu-gef...
IMHO these chips designed for specialized workloads are looking more and more ridiculous. I expect GPU manufacturers to keep dragging them out for another decade or so, as well as Apple as it explores offshoots of M1. It all makes me feel very tired (the ultimate code smell).
A better design would be something like a 256+ core RISC-V with local memories in/by each core for data-locality and a content-addressable caching scheme for deduplication. Copy-on-write languages like Clojure and orchestrating processes under something like Docker would make it a breeze to program, although it would still support manually managed mutability like with Rust for innermost loops in games or whatever. It's fairly obvious how it would all work, but IP law and gatekeeping ensure that it will not happen anytime soon.
Then stuff like CUDA would be just another framework run on a symmetric multiprocessor and we could get back to exploring alternatives like genetic algorithms like we did in the 1990s. Thankfully nobody cares what I think, heck even I'm sick of reading my own complaints, so it's easy enough to just unsee this.
I mean, “many” is not usually the case; an RTX 3090 has 10,496 CUDA cores, 328 Tensor cores, 82 RT (raytracing) cores, and 96 render output pipelines. ML apps will uses the first and, depending on software, second set. The vast majority of the cores being CUDA cores is the norm.
* The largest contributor is the sheer number of cores.
* The latency between cores and memory.
* FP16 instructions.
128 cores isn't an insignificant fraction of the number of cores on a 1050 (about 600), but CPU cores are individually more powerful. That advantage is potentially difficult to call. The top-end of Genoa has 96/192 cores, and you can slot many of them onto a single board.
AMD is throwing more and more memory into the CPU cache. That's very different to a direct path to GBs of HBM, but at some point the difference in performance might not matter to a novice/dabbler.
I would say give it a go, see what happens.
ML is really something which should be left to a GPU.
However, many models including LLaMA are not OSS (they have terms such as "non-commercial use only"). And you need models.
It can be confusing, it's important to try to make that clear.
The architecture is available just fine, both in the paper[1] and in code: https://github.com/facebookresearch/llama/blob/main/llama/mo...
It's the model weights that you can't get as easily.
[1] https://research.facebook.com/publications/llama-open-and-ef...
In the future there's going to have to be a way to benchmark the "human-ness" or "intrigue" or "feistiness" of a model to show us if its getting better at what we want
In theory, a significantly smaller neural network that outputs at nearly as good a quality, should be able to chew through training data, and its re-enforcement process, much faster and cheaper, right? A more generalized, lower parameter model, is almost always preferred, as long as it works?
If the human feeling is all boltonable to the neural net later, there is no reason to discount this component as lacking potential to exceed current models.
Then, we can use this model to compare different LLMs and optimize new models - could be with genetic algorithms or just a human tweaking the model - so that the LLM maximizes whatever we want.
Benchmarks are used as a way to show that a particular machine learning technique does better at some task. It’s a way for researchers to show they’re making progress that will be legible to other researchers. You can’t publish a paper saying “we tried it out and we think it’s better.”
This is important for researchers and implementers, not (immediately, ay least) end users.
If they follow through on their promise of making the weights available and share source code that is a big step in the right direction for democratising this technology
And I like that announcement. I just don't think they will actually follow through on this.
https://ai.facebook.com/blog/large-language-model-llama-meta...
https://twitter.com/nebuly_ai is the author of the repo.
The large pretrained model is a prereq for domain-specific models.
Furthermore, when making task-specific models, an 'encoder' architecture (similar to BERT) often works better than a 'decoder' architecture (similar to GPTx), so you might want to use a similar-but-different architecture than the general model intended to be conversational/generative.
Try to start with a NN and 50 images of dogs and cats, and it won't work very well.
For example, if you want a domain-specific model for the legal domain, then you can pre-train a large self-supervised model on every single legal-related document in the world you can get your hands on, instead of a general mix of news and fiction and blogs and everything else - and that might be a more efficient starting point for however many(few) annotated examples you have for your task-specific classifier than the general model.
You can see instances of this with Minerva, where the finetuned 540b version beats the finetuned 62b version despite being finetuned on only a quarter of the data the 62b version was finetuned on.
OpenAI offers the ability to fine-tune some of their models: https://platform.openai.com/docs/guides/fine-tuning
There are also other services that will fine-tune an LLM, for a specific domain, for you: https://activechat.ai/build-your-own-chatgpt/
ChatGPT:GPT3::ChatLLaMa:LLaMa
The analogy is somewhat accurate, but also moot, since within the ML community "ChatGPT" can be used either as the product or the method (more specifically called RLHF) somewhat interchangeably. It's more like Google/Googling, where the largest/most popular provider becomes the defacto way to refer to a method. As someone who develops DL models, the title seems quite apt.
The purpose here is to use the relationship from a known, to describe the relationship between a partial known.
ChatGPT is to GPT3 as ChatLLaMa is to LLaMa. It uses the relationship between ChatGPT and GPT3 to extrapolate a relationship between an unknown and LLaMa.
see Analogies.pdf https://resources.finalsite.net/images/v1584287027/brockton/...
Corolla:Toyota::3-Series:BMW. If you had heard of a Corolla, Toyota, and BMW, but not a 3-Series, you now roughly know that a 3-Series is BMWs equivalent to a Corolla.
ChatGPT:GPT3::ChatLLaMa:LLaMa::Chatbot-through-RLHF:LLM
aka ChatGPT is a known chatbot implementation, and GPT3 and LLaMa are known LLMs.
In the analogy, that’s exactly what you are saying. Identical to Toyota and BMW meaning “the make of the car.”
Maybe reimplementation is a more precise word, a black box re-engineering/cloning. In this case I inferred it by knowing it was a different LLM underneath, and that this group didn’t have access to the chatgpt source code.
You can't use what has been released unless you want to spend $500,000 on training.
> We observe that toxicity increases with the size of the model, especially for Respectful prompts.
It does outperform GPT3 slightly in terms of observed bias against protected groups (as in it is slightly less biased) but not substantially so.
EDIT: I stand corrected. They do compare 13B model with a large GPT-3 model which is hard to believe without a bit more concrete evidence
> For example, LLaMA's 13B architecture outperforms GPT-3 despite being 10 times smaller.
Of course this is all on benchmarks but it's a big improvement if true.
LLaMA is still only available to the elite.
files_catbox_moe[slash]o8a7xw(dot)torrent
Open source implementation for LLaMA-based chat bot*
Open source implementation for LLaMA-based ChatGPT alternative*
https://docs.google.com/forms/d/e/1FAIpQLSfqNECQnMkycAp2jP4Z...
If your model is really that good, unleash it into the open so that others can truly evaluate it-warts and all-and help improve it by identifying the flaws.
When they don't do it, people scream at them (see Galactica)
"Journalists" react like this:
> On November 15 Meta unveiled a new large language model called Galactica, designed to assist scientists. But instead of landing with the big bang Meta hoped for, Galactica has died with a whimper after three days of intense criticism. Yesterday the company took down the public demo that it had encouraged everyone to try out.
> Meta’s misstep—and its hubris—show once again that Big Tech has a blind spot about the severe limitations of large language models. There is a large body of research that highlights the flaws of this technology, including its tendencies to reproduce prejudice and assert falsehoods as facts.
> However, Meta and other companies working on large language models, including Google, have failed to take it seriously.
Yann LeCunn confirmed this: https://twitter.com/pmarca/status/1631185701864865792
I wonder if they just leaked it onto 4chan themselves, lol.
[1] https://ai.facebook.com/blog/large-language-model-llama-meta...
what? GPT3 is available by a public api that anyone can sign up and pay for and use for commercial use. how is it "as available"?
That said, if LLaMa can achieve performance competitive with GPT-3 with just 13B parameters, I imagine that it is only a matter of time until open source pre-trained models based on this architecture become available, which would render GPT-3 obsolete.
Exactly. Best part is that it is open-source.
That is worth getting excited about. Not a AI SaaS API owned by a so-called pseudo-non profit company which struggles on API uptime and availablity, just like GitHub.
This is the 'revolution' you are looking for that changes everything. Not ChatGPT.
The proprietary nature of the weights is not going to be a bottleneck for more than a month, if I had to guess.
The other bottle-neck to personal use — the hardware required to run (not train from scratch) the thing - is going to be gone within the year I bet. I would assume some clever bloke is going to be able to prune the model or decrease the precision of the weights and discover you can get good-enough results with 1/10th of the memory.
What happens then?
Well, probably some Very Bad Things.