File tree 5 files changed +498
-1
lines changed
5 files changed +498
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ models-mnt
47
47
/libllama.so
48
48
/llama-bench
49
49
/llava-cli
50
+ /lookahead
50
51
/main
51
52
/metal
52
53
/perplexity
Original file line number Diff line number Diff line change 2
2
BUILD_TARGETS = \
3
3
main quantize quantize-stats perplexity 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
- 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
6
6
7
7
# Binaries only useful for tests
8
8
TEST_TARGETS = \
@@ -657,6 +657,9 @@ speculative: examples/speculative/speculative.cpp ggml.o llama.o $(COMMON_DEPS)
657
657
parallel : examples/parallel/parallel.cpp ggml.o llama.o $(COMMON_DEPS ) $(OBJS )
658
658
$(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
659
659
660
+ lookahead : examples/lookahead/lookahead.cpp ggml.o llama.o $(COMMON_DEPS ) $(OBJS )
661
+ $(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
662
+
660
663
ifdef LLAMA_METAL
661
664
metal : examples/metal/metal.cpp ggml.o $(OBJS )
662
665
$(CXX ) $(CXXFLAGS ) $^ -o $@ $(LDFLAGS )
Original file line number Diff line number Diff line change 32
32
add_subdirectory (save-load-state)
33
33
add_subdirectory (simple)
34
34
add_subdirectory (speculative)
35
+ add_subdirectory (lookahead)
35
36
add_subdirectory (train-text-from-scratch)
36
37
if (LLAMA_METAL)
37
38
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