forked from shakfu/cyllama
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
33 lines (23 loc) · 814 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# set path so `llama-cli` etc.. be in path
export PATH := $(PWD)/bin:$(PATH)
export MACOSX_DEPLOYMENT_TARGET := 11
# models
MODEL := models/Llama-3.2-1B-Instruct-Q8_0.gguf
THIRDPARTY := $(PWD)/thirdparty
LLAMACPP := $(THIRDPARTY)/llama.cpp
.PHONY: all build wheel clean test download
all: build
build:
@bash scripts/setup.sh
python setup.py build_ext --inplace
wheel:
@python setup.py bdist_wheel
clean:
@rm -rf build dist src/llama.cpp src/*.egg-inf thirdparty/llama.cpp/build o .pytest_cache .coverage
test: build
@pytest
$(MODEL):
@mkdir -p models && cd models && \
curl --output Llama-3.2-1B-Instruct-Q8_0.gguf -L https://huggingface.co/bartowski/Llama-3.2-1B-Instruct-GGUF/resolve/main/Llama-3.2-1B-Instruct-Q8_0.gguf
download: $(MODEL)
@echo "minimal model downloaded to models directory"