aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-06-15 13:47:23 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-06-15 13:53:31 +0200
commit458563c163a885e336ef3365922af4d17e578f56 (patch)
tree52c7515d418e60f4923a69b5eade794a221cc5b4 /Makefile
parentd58e523c14356ac8a29480528dbceb19290b18c1 (diff)
downloadffwd-458563c163a885e336ef3365922af4d17e578f56.tar.gz
ffwd-458563c163a885e336ef3365922af4d17e578f56.zip
all: add CLS first-token pooling
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1bd2b23..76b9f57 100644
--- a/Makefile
+++ b/Makefile
@@ -171,6 +171,8 @@ TEST_QWEN3_SRCS = tests/test_qwen3.c embed.c embed_config.c qwen_safetenso
$(KERNEL_SRCS)
TEST_QWEN2_SRCS = tests/test_qwen2.c embed.c embed_config.c qwen_safetensors.c \
$(KERNEL_SRCS)
+TEST_CLS_SRCS = tests/test_cls.c embed.c embed_config.c qwen_safetensors.c \
+ $(KERNEL_SRCS)
TEST_WORKSPACE_SRCS = tests/test_workspace.c embed.c embed_config.c qwen_tokenizer.c \
qwen_safetensors.c $(KERNEL_SRCS)
TEST_LATE_SRCS = tests/test_late.c embed.c embed_config.c qwen_tokenizer.c \
@@ -203,6 +205,9 @@ test:
$(CC) $(TEST_CC_FLAGS) $(TEST_BLAS_CFLAGS) -o tests/test_qwen2 \
$(TEST_QWEN2_SRCS) -lm -lpthread $(TEST_BLAS_LDFLAGS)
./tests/test_qwen2
+ $(CC) $(TEST_CC_FLAGS) $(TEST_BLAS_CFLAGS) -o tests/test_cls \
+ $(TEST_CLS_SRCS) -lm -lpthread $(TEST_BLAS_LDFLAGS)
+ ./tests/test_cls
$(CC) $(TEST_CC_FLAGS) -o tests/test_workspace \
$(TEST_WORKSPACE_SRCS) -lm -lpthread
./tests/test_workspace