File tree Expand file tree Collapse file tree 3 files changed +408
-1
lines changed Expand file tree Collapse file tree 3 files changed +408
-1
lines changed Original file line number Diff line number Diff line change 22BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot train-text-from-scratch convert-llama2c-to-ggml simple server embd-input-test
33
44# Binaries only useful for tests
5- TEST_TARGETS = tests/test-grammar-parser tests/test-double-float tests/test-grad0 tests/test-opt tests/test-quantize-fns tests/test-quantize-perf tests/test-sampling tests/test-tokenizer-0
5+ TEST_TARGETS = tests/test-llama-grammar tests/test- grammar-parser tests/test-double-float tests/test-grad0 tests/test-opt tests/test-quantize-fns tests/test-quantize-perf tests/test-sampling tests/test-tokenizer-0
66
77default : $(BUILD_TARGETS )
88
@@ -412,6 +412,9 @@ benchmark-matmult: examples/benchmark/benchmark-matmult.cpp build-info.h ggml.o
412412vdot : pocs/vdot/vdot.cpp ggml.o $(OBJS )
413413 $(CXX ) $(CXXFLAGS ) $^ -o $@ $(LDFLAGS )
414414
415+ tests/test-llama-grammar : tests/test-llama-grammar.cpp build-info.h ggml.o llama.o common.o $(OBJS )
416+ $(CXX ) $(CXXFLAGS ) $(filter-out % .txt,$^ ) -o $@ $(LDFLAGS )
417+
415418tests/test-grammar-parser : tests/test-grammar-parser.cpp examples/grammar-parser.cpp build-info.h ggml.o llama.o common.o $(OBJS )
416419 $(CXX ) $(CXXFLAGS ) $(filter-out % .txt,$^ ) -o $@ $(LDFLAGS )
417420
Original file line number Diff line number Diff line change @@ -12,5 +12,6 @@ llama_add_test(test-quantize-perf.cpp)
1212llama_add_test(test -sampling.cpp)
1313llama_add_test(test -tokenizer-0.cpp ${CMAKE_CURRENT_SOURCE_DIR} /../models/ggml-vocab.bin)
1414llama_add_test(test -grammar-parser.cpp ${CMAKE_CURRENT_SOURCE_DIR} /../examples/grammar-parser.cpp)
15+ llama_add_test(test -llama-grammar.cpp ${CMAKE_CURRENT_SOURCE_DIR} /../examples/grammar-parser.cpp ${CMAKE_CURRENT_SOURCE_DIR} /../llama.cpp ${CMAKE_CURRENT_SOURCE_DIR} /../examples/common.cpp)
1516llama_add_test(test -grad0.cpp) # SLOW
1617# llama_add_test(test-opt.cpp) # SLOW
You can’t perform that action at this time.
0 commit comments