aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-09-29 14:38:02 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-09-29 14:38:02 +0200
commit91c6aa07597462705a7f30ee5b97e2c7943b5616 (patch)
treeb16f686279a1f1b0691a6c0d65a544084fcc1c1e /Makefile
parent6f98fc8cf3f7cc4b9d523d16492a07d3e2aea8c9 (diff)
downloadlangdet-91c6aa07597462705a7f30ee5b97e2c7943b5616.tar.gz
langdet-91c6aa07597462705a7f30ee5b97e2c7943b5616.zip
Remove unused checkpoint, tokenizer, and attention compatibility paths
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9697934..7ea80f8 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ CPU_SOURCES = langdet.c model.c model_blas.c forward.c alloc.c config.c \
LIB_SOURCES = $(addprefix liblangdet/,$(CPU_SOURCES)) deps/yyjson/yyjson.c
LIB_OBJECTS = $(LIB_SOURCES:%.c=build/%.o)
OBJECTS = build/langdetect.o $(LIB_OBJECTS)
-TEST_OBJECTS = build/tools/test_api.o build/tools/token_ids.o
+TEST_OBJECTS = build/tools/test_api.o build/tools/token_ids.o build/tools/test_safetensors.o
.PHONY: all clean test
all: langdetect liblangdet.a
@@ -32,7 +32,11 @@ build/test_api: build/tools/test_api.o liblangdet.a
build/token_ids: build/tools/token_ids.o liblangdet.a
$(CC) $(LDFLAGS) -o $@ $< liblangdet.a $(LDLIBS)
-test: all build/test_api build/token_ids
+build/test_safetensors: build/tools/test_safetensors.o liblangdet.a
+ $(CC) $(LDFLAGS) -o $@ $< liblangdet.a $(LDLIBS)
+
+test: all build/test_api build/token_ids build/test_safetensors
+ ./build/test_safetensors
./build/test_api "$(MODEL)"
UV_CACHE_DIR="$(CURDIR)/.uv-cache" UV_PYTHON_DOWNLOADS=never \
HF_HOME="$(CURDIR)/.hf-cache" HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 \