Llama2.c: Inference llama 2 in one file of pure C
21–30 of 173 posts
Re: Llama2.c: Inference llama 2 in one file of pure C
#22As someone who doesn’t work with languages like C, what’s the appeal of “in one file” or “header only”? Is it about dependency management?
Re: Llama2.c: Inference llama 2 in one file of pure C
#23As someone who doesn’t work with languages like C, what’s the appeal of “in one file” or “header only”? Is it about dependency management?
Re: Llama2.c: Inference llama 2 in one file of pure C
#24Re: Llama2.c: Inference llama 2 in one file of pure C
#25As someone who doesn’t work with languages like C, what’s the appeal of “in one file” or “header only”? Is it about dependency management?
Re: Llama2.c: Inference llama 2 in one file of pure C
#26Is this for educational purposes only? Based on the success of llama.cpp and this one it appears that the industry is going in a direction of separate source code for every model that is released instead of general purpose frameworks like pytorch/tensorflow/onnxruntime?
No. Despite the name, llama.cpp supports more than just llama. It also isn’t an entirely bespoke thing as you indicate, since it is built on the more general purpose “ggml” tensor library/framework.
Re: Llama2.c: Inference llama 2 in one file of pure C
#27Is this for educational purposes only? Based on the success of llama.cpp and this one it appears that the industry is going in a direction of separate source code for every model that is released instead of general purpose frameworks like pytorch/tensorflow/onnxruntime?
Re: Llama2.c: Inference llama 2 in one file of pure C
#28Sounds like what Llama.cpp used to be.
This project cites llama.cpp as inspiration, but seems much-simplified. It only supports llama-2, only supports fp-32, and only runs on one CPU thread.
Re: Llama2.c: Inference llama 2 in one file of pure C
#29What are some uses for this?
Create a computer game about a small island with 100 people, with each person being politically aware, with llama2.c being their brain. Then you can simulate politics for a thousand years and see what happens. For instance.