Add makefile
This commit is contained in:
parent
447a3d249e
commit
00ea3af51b
1 changed files with 49 additions and 0 deletions
49
Makefile
Normal file
49
Makefile
Normal file
|
@ -0,0 +1,49 @@
|
|||
update:
|
||||
poetry install
|
||||
git submodule update --init --recursive
|
||||
|
||||
update.vendor:
|
||||
cd vendor/llama.cpp && git pull origin master
|
||||
|
||||
build:
|
||||
python3 setup.py develop
|
||||
|
||||
build.cuda:
|
||||
CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 python3 setup.py develop
|
||||
|
||||
build.opencl:
|
||||
CMAKE_ARGS="-DLLAMA_CLBLAST=on" FORCE_CMAKE=1 python3 setup.py develop
|
||||
|
||||
build.openblas:
|
||||
CMAKE_ARGS="-DLLAMA_OPENBLAS=on" FORCE_CMAKE=1 python3 setup.py develop
|
||||
|
||||
build.blis:
|
||||
CMAKE_ARGS="-DLLAMA_OPENBLAS=on -DLLAMA_OPENBLAS_VENDOR=blis" FORCE_CMAKE=1 python3 setup.py develop
|
||||
|
||||
build.sdist:
|
||||
python3 setup.py sdist
|
||||
|
||||
deploy.pypi:
|
||||
python3 -m twine upload dist/*
|
||||
|
||||
deploy.gh-docs:
|
||||
mkdocs build
|
||||
mkdocs gh-deploy
|
||||
|
||||
clean:
|
||||
- cd vendor/llama.cpp && make clean
|
||||
- cd vendor/llama.cpp && rm libllama.so
|
||||
- rm -rf _skbuild
|
||||
- rm llama_cpp/libllama.so
|
||||
|
||||
.PHONY: \
|
||||
update \
|
||||
update.vendor \
|
||||
build \
|
||||
build.cuda \
|
||||
build.opencl \
|
||||
build.openblas \
|
||||
build.sdist \
|
||||
deploy.pypi \
|
||||
deploy.gh-docs \
|
||||
clean
|
Loading…
Reference in a new issue