File tree 6 files changed +410
-1
lines changed
6 files changed +410
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Define the default target now so that it is always the first target
2
2
BUILD_TARGETS = \
3
- main quantize quantize-stats perplexity embedding vdot q8dot train-text-from-scratch convert-llama2c-to-ggml \
3
+ main quantize quantize-stats perplexity imatrix embedding vdot q8dot train-text-from-scratch convert-llama2c-to-ggml \
4
4
simple batched batched-bench save-load-state server gguf llama-bench libllava.a llava-cli baby-llama beam-search \
5
5
speculative infill tokenize benchmark-matmult parallel finetune export-lora lookahead lookup passkey tests/test-c.o
6
6
@@ -614,6 +614,9 @@ quantize-stats: examples/quantize-stats/quantize-stats.cpp build-info.o ggml.
614
614
perplexity : examples/perplexity/perplexity.cpp ggml.o llama.o $(COMMON_DEPS ) $(OBJS )
615
615
$(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
616
616
617
+ imatrix : examples/imatrix/imatrix.cpp ggml.o llama.o $(COMMON_DEPS ) $(OBJS )
618
+ $(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
619
+
617
620
embedding : examples/embedding/embedding.cpp ggml.o llama.o $(COMMON_DEPS ) $(OBJS )
618
621
$(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
619
622
Original file line number Diff line number Diff line change 36
36
add_subdirectory (lookahead)
37
37
add_subdirectory (lookup)
38
38
add_subdirectory (train-text-from-scratch)
39
+ add_subdirectory (imatrix)
39
40
if (LLAMA_METAL)
40
41
add_subdirectory (metal)
41
42
endif ()
Original file line number Diff line number Diff line change
1
+ set (TARGET imatrix)
2
+ add_executable (${TARGET} imatrix.cpp)
3
+ install (TARGETS ${TARGET} RUNTIME)
4
+ target_link_libraries (${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT} )
5
+ target_compile_features (${TARGET} PRIVATE cxx_std_11)
You can’t perform that action at this time.
0 commit comments