News for hackers. Stuff that matters.
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by amrb on Monday February 27, 2023 @10:23AM (#34957423)
I would care more about LLaMA architecture when I can get hands on, honestly this project is more interesting and lighting fast on even a 2060 laptop https://github.com/BlinkDL/RWKV-LM
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by iForgotMyPW on Monday February 27, 2023 @11:32AM (#34958388)
came here to say this
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by lachlan_gray on Monday February 27, 2023 @11:56AM (#34958777)
Has anyone tried this on an m1 machine?
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by tmptmptmp1 on Monday February 27, 2023 @12:22PM (#34959171)
Do you have access to the weights? If so you probably have better ML hardware. Wish this model was actually "open".

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.

Re:Open source ChatGPT with LLaMA implementation trains 15x ... by pumanoir on Monday February 27, 2023 @12:58PM (#34959696)
I think is feasible. The description even says is designed to save on vram[1]. I don't get the other comments about needing more vram than a 3090.

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 :)

Re:Open source ChatGPT with LLaMA implementation trains 15x ... by IanCal on Monday February 27, 2023 @06:15PM (#34963394)
You have to split it up which slows it down a lot. The 14B model doesn't fit fully on a 3090, though the 7B fits easily and is very fast. Other replies either may have meant this or thought the original comment was about llama.
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by fswd on Monday February 27, 2023 @02:28PM (#34960766)
I've ran it on a AMD 3950 which I think is half the speed of a M1, and it's plenty fast. Note I am specifically talked about RWKV
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by nl on Monday February 27, 2023 @09:48PM (#34965053)
It would be interesting to see a version of RWKV[1] that takes some of the improvements in LLaMA (eg the SwiGLU activation function and the Rotary Embeddings - although I think they have tried rotary embeddings in some versions of RWKV) as well as the same dataset and see how it does.

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.

[1] https://github.com/BlinkDL/RWKV-LM

Re:Open source ChatGPT with LLaMA implementation trains 15x ... by pmarreck on Monday February 27, 2023 @11:58AM (#34958816)
very interesting. Do you know of anything that would take advantage of the 128 cores of my Ryzen Threadripper even though I have a 2080 and a 3080 as well? (Or all three... lol)
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by vorticalbox on Monday February 27, 2023 @12:20PM (#34959148)
GPU is massively faster than CPUs for this sort of work load.

Even if you could use all 128 cores I would still get the 2080 would be faster

Re:Open source ChatGPT with LLaMA implementation trains 15x ... by pmarreck on Monday February 27, 2023 @12:27PM (#34959235)
ah ok, that's fair.
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by zackmorris on Monday February 27, 2023 @01:14PM (#34959912)
Keep in mind that many of the GPU cores go unused, since they are dedicated to geometry or ray tracing or whatnot:

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.

Re:Open source ChatGPT with LLaMA implementation trains 15x ... by dragonwriter on Monday February 27, 2023 @01:39PM (#34960215)
> Keep in mind that many of the GPU cores go unused, since they are dedicated to geometry or ray tracing or whatnot

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.

Re:Open source ChatGPT with LLaMA implementation trains 15x ... by zamalek on Monday February 27, 2023 @01:30PM (#34960102)
This is not strictly true. GPUs fare better at these tasks for a few reasons:

* 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.

Re:Open source ChatGPT with LLaMA implementation trains 15x ... by pumanoir on Monday February 27, 2023 @12:51PM (#34959574)
Look into sparsification of ML models: https://neuralmagic.com/ If your cpu has avx512 it can make it even faster.
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by qwertox on Monday February 27, 2023 @01:47PM (#34960320)
I'm using a Ryzen 9 5950X to run some tests with Whisper (ASR), and since I have no GPU with more than 4 GB VRAM, I'm running it on the CPU. It is slow. It takes between 20 seconds and 2 minutes to transcribe 1 minute of audio, I'm using 8 cores. Adding more cores doesn't seem to improve the inferencing time.

ML is really something which should be left to a GPU.

Re:Open source ChatGPT with LLaMA implementation trains 15x ... by amrb on Monday February 27, 2023 @02:06PM (#34960552)
There is an example to use multi GPU in the link, Outside of this I have read about offloading to cpu/nvme in the case of 100GB+ models that don't fit in VRAM tho this will be at the expense of performance.

https://pypi.org/project/rwkvstic/

Re:Open source ChatGPT with LLaMA implementation trains 15x ... by la64710 on Monday February 27, 2023 @01:32PM (#34960139)
News flash : filling a google form to get access to the model based on Meta’s discretion cannot be called open source .
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by MH15 on Monday February 27, 2023 @02:43PM (#34960953)
And yet they're trying real hard to.
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by holtkam2 on Monday February 27, 2023 @06:14PM (#34963382)
Anyone know of the best way to get approved? I’m not a academic researcher but I really want to start experimenting…
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by flangola7 on Monday February 27, 2023 @10:48PM (#34965394)
If you can tell them which university you're with and the formal name of your research project that would be a start. They'll reach out to the admin to confirm.
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by UncleOxidant on Monday February 27, 2023 @03:15PM (#34961318)
The README there doesn't seem to coherent... how does one actually get that running? The Quick Start section isn't very helpful.
Re:Open source ChatGPT with LLaMA implementation trains 15x ... by dwheeler on Monday February 27, 2023 @03:20PM (#34961372)
The nebullvm projrct and specifically chatllama, by themselves, are clearly OSS. They're licensed under Apache-2.0: https://github.com/nebuly-ai/nebullvm/tree/main/apps/acceler...

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.

Re:Open source ChatGPT with LLaMA implementation trains 15x ... by nl on Monday February 27, 2023 @05:39PM (#34963015)
> I would care more about LLaMA architecture when I can get hands on

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...