-
Hello, Sorry for the absolute newbie question, just discovering llama.cpp. I took a llama.cpp release and built both llama and ggml_static projet. Then for headers, llama.h is obvious, but do i also need unicode.h to use llama.lib ? I didn't see any gguf related static lib, so i'm wondering, what's the bare minimum i need to run gguf file ? Again, sorry for the very basic questions and thanks for any pointers: i'm currently just exploring the possiblities and i'd like to avoid spending hours trying to understand the example codes only to discover i can't do what i want. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hello, first of all, If you need all the headers |
Beta Was this translation helpful? Give feedback.
-
Whatever main.exe links is what your application would need correct? common.lib llama.lib threading library |
Beta Was this translation helpful? Give feedback.
-
Finally found the time to test everything, it was quite straight forward and i have to say it's kind of amazing to be able to use an lm with a exe that is 1Mb. It's really hard to believe ! So just in case any absolute newbie like me wonders what's the bare minimum needed for an inference, here's what i did to compile and use simple.cpp in VS. 4/ add a lib dir in your project and copy those libs: 5/ declare everything in your project properties (compiler/linker additional directories), compile, done. I'm was quite surprised to discover that ggml_static.lib was actually not needed ! Anyway, thanks everyone for your answers, and hope this little noob thread will help some future beginners :-) |
Beta Was this translation helpful? Give feedback.
Finally found the time to test everything, it was quite straight forward and i have to say it's kind of amazing to be able to use an lm with a exe that is 1Mb.
It's really hard to believe !
So just in case any absolute newbie like me wonders what's the bare minimum needed for an inference, here's what i did to compile and use simple.cpp in VS.
1/ create an empty project
2/ add a cpp file and copy paste the content of simple.cpp
3/ add an include dir in your project and copy those headers:
4/ add a lib dir in your project and copy those libs:
5/ declare everything in your project properties (compiler/linker additional directories), compile, done.
I'm was quite surprised to discover tha…