Skip to content

Commit 00ea3af

Browse files
committed
Add makefile
1 parent 447a3d2 commit 00ea3af

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

Makefile

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
update:
2+
poetry install
3+
git submodule update --init --recursive
4+
5+
update.vendor:
6+
cd vendor/llama.cpp && git pull origin master
7+
8+
build:
9+
python3 setup.py develop
10+
11+
build.cuda:
12+
CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 python3 setup.py develop
13+
14+
build.opencl:
15+
CMAKE_ARGS="-DLLAMA_CLBLAST=on" FORCE_CMAKE=1 python3 setup.py develop
16+
17+
build.openblas:
18+
CMAKE_ARGS="-DLLAMA_OPENBLAS=on" FORCE_CMAKE=1 python3 setup.py develop
19+
20+
build.blis:
21+
CMAKE_ARGS="-DLLAMA_OPENBLAS=on -DLLAMA_OPENBLAS_VENDOR=blis" FORCE_CMAKE=1 python3 setup.py develop
22+
23+
build.sdist:
24+
python3 setup.py sdist
25+
26+
deploy.pypi:
27+
python3 -m twine upload dist/*
28+
29+
deploy.gh-docs:
30+
mkdocs build
31+
mkdocs gh-deploy
32+
33+
clean:
34+
- cd vendor/llama.cpp && make clean
35+
- cd vendor/llama.cpp && rm libllama.so
36+
- rm -rf _skbuild
37+
- rm llama_cpp/libllama.so
38+
39+
.PHONY: \
40+
update \
41+
update.vendor \
42+
build \
43+
build.cuda \
44+
build.opencl \
45+
build.openblas \
46+
build.sdist \
47+
deploy.pypi \
48+
deploy.gh-docs \
49+
clean

0 commit comments

Comments
 (0)