File tree Expand file tree Collapse file tree 5 files changed +498
-1
lines changed Expand file tree Collapse file tree 5 files changed +498
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ models-mnt
4747/libllama.so
4848/llama-bench
4949/llava-cli
50+ /lookahead
5051/main
5152/metal
5253/perplexity
Original file line number Diff line number Diff line change 22BUILD_TARGETS = \
33 main quantize quantize-stats perplexity embedding vdot q8dot train-text-from-scratch convert-llama2c-to-ggml \
44 simple batched batched-bench save-load-state server gguf llama-bench libllava.a llava-cli baby-llama beam-search \
5- speculative infill tokenize benchmark-matmult parallel finetune export-lora tests/test-c.o
5+ speculative infill tokenize benchmark-matmult parallel finetune export-lora lookahead tests/test-c.o
66
77# Binaries only useful for tests
88TEST_TARGETS = \
@@ -657,6 +657,9 @@ speculative: examples/speculative/speculative.cpp ggml.o llama.o $(COMMON_DEPS)
657657parallel : examples/parallel/parallel.cpp ggml.o llama.o $(COMMON_DEPS ) $(OBJS )
658658 $(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
659659
660+ lookahead : examples/lookahead/lookahead.cpp ggml.o llama.o $(COMMON_DEPS ) $(OBJS )
661+ $(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
662+
660663ifdef LLAMA_METAL
661664metal : examples/metal/metal.cpp ggml.o $(OBJS )
662665 $(CXX ) $(CXXFLAGS ) $^ -o $@ $(LDFLAGS )
Original file line number Diff line number Diff line change 3232 add_subdirectory (save-load-state )
3333 add_subdirectory (simple )
3434 add_subdirectory (speculative )
35+ add_subdirectory (lookahead )
3536 add_subdirectory (train-text-from-scratch )
3637 if (LLAMA_METAL )
3738 add_subdirectory (metal )
Original file line number Diff line number Diff line change 1+ set (TARGET lookahead )
2+ add_executable (${TARGET} lookahead.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