make : add test-tokenizer-0-llama-v3
This commit is contained in:
parent
8791e94e3c
commit
a774d7084e
1 changed files with 27 additions and 6 deletions
33
Makefile
33
Makefile
|
@ -6,12 +6,27 @@ BUILD_TARGETS = \
|
||||||
|
|
||||||
# Binaries only useful for tests
|
# Binaries only useful for tests
|
||||||
TEST_TARGETS = \
|
TEST_TARGETS = \
|
||||||
tests/test-llama-grammar tests/test-tokenizer-0-deepseek-coder tests/test-tokenizer-0-deepseek-llm \
|
tests/test-autorelease \
|
||||||
tests/test-grammar-parser tests/test-double-float tests/test-grad0 tests/test-opt \
|
tests/test-backend-ops \
|
||||||
tests/test-quantize-fns tests/test-quantize-perf tests/test-sampling tests/test-tokenizer-0-llama \
|
tests/test-double-float \
|
||||||
tests/test-tokenizer-0-falcon tests/test-tokenizer-1-llama tests/test-tokenizer-1-bpe tests/test-rope \
|
tests/test-grad0 \
|
||||||
tests/test-backend-ops tests/test-model-load-cancel tests/test-autorelease \
|
tests/test-grammar-integration \
|
||||||
tests/test-json-schema-to-grammar tests/test-grammar-integration
|
tests/test-grammar-parser \
|
||||||
|
tests/test-json-schema-to-grammar \
|
||||||
|
tests/test-llama-grammar \
|
||||||
|
tests/test-model-load-cancel \
|
||||||
|
tests/test-opt \
|
||||||
|
tests/test-quantize-fns \
|
||||||
|
tests/test-quantize-perf \
|
||||||
|
tests/test-rope \
|
||||||
|
tests/test-sampling \
|
||||||
|
tests/test-tokenizer-0-deepseek-coder \
|
||||||
|
tests/test-tokenizer-0-deepseek-llm \
|
||||||
|
tests/test-tokenizer-0-falcon \
|
||||||
|
tests/test-tokenizer-0-llama \
|
||||||
|
tests/test-tokenizer-0-llama-v3 \
|
||||||
|
tests/test-tokenizer-1-bpe \
|
||||||
|
tests/test-tokenizer-1-llama
|
||||||
|
|
||||||
# Code coverage output files
|
# Code coverage output files
|
||||||
COV_TARGETS = *.gcno tests/*.gcno *.gcda tests/*.gcda *.gcov tests/*.gcov lcov-report gcovr-report
|
COV_TARGETS = *.gcno tests/*.gcno *.gcda tests/*.gcda *.gcov tests/*.gcov lcov-report gcovr-report
|
||||||
|
@ -52,6 +67,8 @@ test: $(TEST_TARGETS)
|
||||||
for test_target in $(TEST_TARGETS); do \
|
for test_target in $(TEST_TARGETS); do \
|
||||||
if [ "$$test_target" = "tests/test-tokenizer-0-llama" ]; then \
|
if [ "$$test_target" = "tests/test-tokenizer-0-llama" ]; then \
|
||||||
./$$test_target $(CURDIR)/models/ggml-vocab-llama.gguf; \
|
./$$test_target $(CURDIR)/models/ggml-vocab-llama.gguf; \
|
||||||
|
elif [ "$$test_target" = "tests/test-tokenizer-0-llama-v3" ]; then \
|
||||||
|
./$$test_target $(CURDIR)/models/ggml-vocab-llama-v3.gguf; \
|
||||||
elif [ "$$test_target" = "tests/test-tokenizer-0-falcon" ]; then \
|
elif [ "$$test_target" = "tests/test-tokenizer-0-falcon" ]; then \
|
||||||
./$$test_target $(CURDIR)/models/ggml-vocab-falcon.gguf; \
|
./$$test_target $(CURDIR)/models/ggml-vocab-falcon.gguf; \
|
||||||
elif [ "$$test_target" = "tests/test-tokenizer-0-deepseek-coder" ]; then \
|
elif [ "$$test_target" = "tests/test-tokenizer-0-deepseek-coder" ]; then \
|
||||||
|
@ -984,6 +1001,10 @@ tests/test-tokenizer-0-llama: tests/test-tokenizer-0-llama.cpp ggml.o llama.o $(
|
||||||
$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
|
$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
|
||||||
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
|
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
|
||||||
|
|
||||||
|
tests/test-tokenizer-0-llama-v3: tests/test-tokenizer-0-llama-v3.cpp ggml.o llama.o $(COMMON_DEPS) console.o $(OBJS)
|
||||||
|
$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
|
||||||
|
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
|
||||||
|
|
||||||
tests/test-tokenizer-0-deepseek-coder: tests/test-tokenizer-0-deepseek-coder.cpp ggml.o llama.o $(COMMON_DEPS) $(OBJS)
|
tests/test-tokenizer-0-deepseek-coder: tests/test-tokenizer-0-deepseek-coder.cpp ggml.o llama.o $(COMMON_DEPS) $(OBJS)
|
||||||
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
|
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue