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 2
2
BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot train-text-from-scratch convert-llama2c-to-ggml simple server embd-input-test
3
3
4
4
# 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
6
6
7
7
default : $(BUILD_TARGETS )
8
8
@@ -412,6 +412,9 @@ benchmark-matmult: examples/benchmark/benchmark-matmult.cpp build-info.h ggml.o
412
412
vdot : pocs/vdot/vdot.cpp ggml.o $(OBJS )
413
413
$(CXX ) $(CXXFLAGS ) $^ -o $@ $(LDFLAGS )
414
414
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
+
415
418
tests/test-grammar-parser : tests/test-grammar-parser.cpp examples/grammar-parser.cpp build-info.h ggml.o llama.o common.o $(OBJS )
416
419
$(CXX ) $(CXXFLAGS ) $(filter-out % .txt,$^ ) -o $@ $(LDFLAGS )
417
420
Original file line number Diff line number Diff line change @@ -12,5 +12,6 @@ llama_add_test(test-quantize-perf.cpp)
12
12
llama_add_test (test -sampling.cpp )
13
13
llama_add_test (test -tokenizer-0.cpp ${CMAKE_CURRENT_SOURCE_DIR} /../models/ggml-vocab.bin )
14
14
llama_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 )
15
16
llama_add_test (test -grad0.cpp ) # SLOW
16
17
# llama_add_test(test-opt.cpp) # SLOW
You can’t perform that action at this time.
0 commit comments