Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Yay, llama2.c can now load and inference the Meta released models! :) E.g. here inferencing the smallest 7B model at ~3 tokens/s on 96 OMP threads on a cloud Linux box. Still just CPU, fp32, one single .c file of 500 lines: expecting ~300 tok/s tomorrow :)

409,394 görüntüleme • 3 yıl önce •via X (Twitter)

9 Yorum

Andrej Karpathy profil fotoğrafı
Andrej Karpathy3 yıl önce

If we can get 7B model to run at nice and interactive rates then we can go from "scratch-trained micromodels" to "LoRA finetuned 7B base model", all within the code of the minimal llama2.c repo (both training and inference). Can reach more capability and with less training data.

Matt Schwab profil fotoğrafı
Matt Schwab3 yıl önce

Translation from ChatGPT: Great news! The program 'llama2.c' has been updated, and now it can handle and process the Meta released models. For example, it can now process the smallest 7-billion model at around 3 tokens per second using 96 OMP threads on a cloud Linux computer. It's worth noting that this is all done using just the CPU, which is the main processor of the computer, and it's using a standard type of computing precision called fp32. What's even more impressive is that the entire program is contained in a single .c file with only 500 lines of code.

Loreto Parisi profil fotoğrafı
Loreto Parisi3 yıl önce

I know it's a minimalistic design, but it would be cool to add MPS via Accelerate and eventually MPI for distributed inference

ai geek (wishesh) ⚡️ profil fotoğrafı
ai geek (wishesh) ⚡️3 yıl önce

We are getting there. Let's go 🚀

Andreas Cambitsis profil fotoğrafı
Andreas Cambitsis3 yıl önce

How much RAM is available and being used?

Nikhil Verma profil fotoğrafı
Nikhil Verma3 yıl önce

You make AI approachable and accessibile for all. Thank you for that its incredible to see so much can be achieved with so little amount of code

Kratius profil fotoğrafı
Kratius3 yıl önce

I included -fopenmp while compiling because omp_num_threads were unable to use all the cores. On 15 core machine achieving 41 tok/s

arkephi profil fotoğrafı
arkephi3 yıl önce

I always knew efficiency was the answer

grimes apologist profil fotoğrafı
grimes apologist3 yıl önce

I love you and I would die for you

Benzer Videolar