| start: | |
| python app.py | |
| test: | |
| PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 TRANSFORMERS_OFFLINE=1 python test.py | |
| chat: | |
| python test.py chat | |
| ingest: | |
| python ingest.py | |
| mlock: | |
| @echo 'To set new value for mlock, please run: sudo prlimit --memlock=35413752832:35413752832 --pid $$$$' | |
| prlimit --memlock | |
| format: | |
| isort . | |
| black . | |
| install: | |
| CXX=g++-11 CC=gcc-11 pip install -U -r requirements.txt | |
| pip show langchain llama-cpp-python transformers | |
| mac-install: | |
| pip install -U -r requirements.txt | |
| pip show langchain transformers | |