forked from larryliu0820/executorch-ggml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (18 loc) · 688 Bytes
/
Makefile
File metadata and controls
22 lines (18 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
NPROC ?= $(shell nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4)
CMAKE ?= $(shell which cmake)
llm-runner:
$(CMAKE) -B build-llm \
-DCMAKE_BUILD_TYPE=Release \
-DEXECUTORCH_GGML_BUILD_LLAMA_RUNNER=ON
$(CMAKE) --build build-llm --target llm_main -j$(NPROC)
llm-runner-debug:
$(CMAKE) -B build-llm-debug \
-DCMAKE_BUILD_TYPE=Debug \
-DEXECUTORCH_GGML_BUILD_LLAMA_RUNNER=ON
$(CMAKE) --build build-llm-debug --target llm_main -j$(NPROC)
parakeet-demo:
$(CMAKE) -B build-llm \
-DCMAKE_BUILD_TYPE=Release \
-DEXECUTORCH_GGML_BUILD_LLAMA_RUNNER=ON
$(CMAKE) --build build-llm --target parakeet_demo -j$(NPROC)
.PHONY: llm-runner llm-runner-debug parakeet-demo