Skip to content

Commit 0cd6bd3

Browse files
authored
llama : remove beam search (#7736)
1 parent 5ca0944 commit 0cd6bd3

File tree

6 files changed

+2
-494
lines changed

6 files changed

+2
-494
lines changed

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Define the default target now so that it is always the first target
22
BUILD_TARGETS = \
33
main quantize quantize-stats perplexity imatrix embedding vdot q8dot train-text-from-scratch convert-llama2c-to-ggml \
4-
simple batched batched-bench save-load-state server gguf gguf-split eval-callback llama-bench libllava.a llava-cli baby-llama beam-search \
4+
simple batched batched-bench save-load-state server gguf gguf-split eval-callback llama-bench libllava.a llava-cli baby-llama \
55
retrieval speculative infill tokenize benchmark-matmult parallel finetune export-lora lookahead lookup passkey gritlm tests/test-c.o
66

77
# Binaries only useful for tests
@@ -914,10 +914,6 @@ baby-llama: examples/baby-llama/baby-llama.cpp ggml.o llama.o $(COMMON_DEPS) tra
914914
$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
915915
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
916916

917-
beam-search: examples/beam-search/beam-search.cpp ggml.o llama.o $(COMMON_DEPS) $(OBJS)
918-
$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
919-
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
920-
921917
finetune: examples/finetune/finetune.cpp ggml.o llama.o $(COMMON_DEPS) train.o $(OBJS)
922918
$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
923919
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)

examples/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ else()
1515
add_subdirectory(baby-llama)
1616
add_subdirectory(batched)
1717
add_subdirectory(batched-bench)
18-
add_subdirectory(beam-search)
1918
add_subdirectory(benchmark)
2019
add_subdirectory(convert-llama2c-to-ggml)
2120
add_subdirectory(embedding)

examples/beam-search/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/beam-search/beam-search.cpp

Lines changed: 0 additions & 188 deletions
This file was deleted.

0 commit comments

Comments
 (0)