2023-05-26 21:56:20 +00:00
|
|
|
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
|
|
|
|
|
2023-06-08 04:22:39 +00:00
|
|
|
build.metal:
|
|
|
|
CMAKE_ARGS="-DLLAMA_METAL=on" FORCE_CMAKE=1 python3 setup.py develop
|
|
|
|
|
2023-05-26 21:56:20 +00:00
|
|
|
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
|