Video yükleniyor...
Video Yüklenemedi
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

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.

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.

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

We are getting there. Let's go 🚀

How much RAM is available and being used?

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

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

I always knew efficiency was the answer

I love you and I would die for you

