Skip to content

GGML_LLAMAFILE build flag #10326

Answered by danbev
bertsons asked this question in Q&A
Discussion options

You must be logged in to vote

This is a build flag that is related to the cpu backend. It enables the usage of is a small optimized BLAS (Basic Linear Algebra Subprograms) implementation originally written by Justine Tunney for llamafile. It was contributed in #6414.

There is a nice blog post about this here: https://justine.lol/matmul/

We can see that this is used in the CPU backend in src/ggml-cpu/CMakeLists.txt:

if (GGML_LLAMAFILE)                                                                 
    message(STATUS "Using llamafile")                                           
                                                                                
    add_compile_definitions(GGML_USE_LLAMAFILE)              …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bertsons
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants