|
.PHONY: start |
|
start: |
|
python app.py |
|
|
|
serve: |
|
ifeq ("$(PORT)", "") |
|
JINA_HIDE_SURVEY=1 TRANSFORMERS_OFFLINE=1 python -m lcserve deploy local server |
|
else |
|
JINA_HIDE_SURVEY=1 TRANSFORMERS_OFFLINE=1 python -m lcserve deploy local server --port=${PORT} |
|
endif |
|
|
|
test: |
|
python test.py $(TEST) |
|
|
|
chat: |
|
python test.py chat |
|
|
|
tele: |
|
python telegram_bot.py |
|
|
|
ingest: |
|
python ingest.py |
|
|
|
mlock: |
|
@echo 'To set new value for mlock, please run: sudo prlimit --memlock=35413752832:35413752832 --pid $$$$' |
|
prlimit --memlock |
|
|
|
.PHONY: format |
|
format: |
|
isort . |
|
black . |
|
|
|
install: |
|
pip install -U -r requirements.txt |
|
pip show langchain transformers |
|
|
|
install-extra: |
|
CXX=g++-11 CC=gcc-11 pip install -U -r requirements_extra.txt |
|
pip show langchain llama-cpp-python transformers |
|
|
|
install-extra-mac: |
|
# brew install llvm libomp |
|
CXX=/usr/local/opt/llvm/bin/clang++ CC=/usr/local/opt/llvm/bin/clang pip install -U -r requirements_extra.txt |
|
pip show langchain llama-cpp-python transformers |
|
|