llama-cpp-python 0.2.15__tar.gz → 0.2.16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- llama_cpp_python-0.2.16/.git/FETCH_HEAD +1 -0
- llama_cpp_python-0.2.16/.git/HEAD +1 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/config +1 -1
- llama_cpp_python-0.2.16/.git/index +0 -0
- llama_cpp_python-0.2.16/.git/logs/HEAD +1 -0
- llama_cpp_python-0.2.16/.git/modules/vendor/llama.cpp/HEAD +1 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/config +1 -1
- llama_cpp_python-0.2.16/.git/modules/vendor/llama.cpp/index +0 -0
- llama_cpp_python-0.2.16/.git/modules/vendor/llama.cpp/logs/HEAD +2 -0
- llama_cpp_python-0.2.16/.git/modules/vendor/llama.cpp/logs/refs/heads/master +1 -0
- llama_cpp_python-0.2.16/.git/modules/vendor/llama.cpp/logs/refs/remotes/origin/HEAD +1 -0
- llama_cpp_python-0.2.16/.git/modules/vendor/llama.cpp/objects/pack/pack-e9e88c6e4829004ba3844e3ec02cda2d16322828.idx +0 -0
- llama_cpp_python-0.2.15/.git/modules/vendor/llama.cpp/objects/pack/pack-a289e01376af5b952d8e50b0b34b637d8328146d.pack → llama_cpp_python-0.2.16/.git/modules/vendor/llama.cpp/objects/pack/pack-e9e88c6e4829004ba3844e3ec02cda2d16322828.pack +0 -0
- llama_cpp_python-0.2.16/.git/modules/vendor/llama.cpp/objects/pack/pack-e9e88c6e4829004ba3844e3ec02cda2d16322828.rev +0 -0
- llama_cpp_python-0.2.16/.git/modules/vendor/llama.cpp/packed-refs +2 -0
- llama_cpp_python-0.2.16/.git/modules/vendor/llama.cpp/refs/heads/master +1 -0
- llama_cpp_python-0.2.16/.git/modules/vendor/llama.cpp/shallow +1 -0
- llama_cpp_python-0.2.16/.git/objects/23/c7e86cace58018b34f1dae1b548df9981eebf9 +0 -0
- llama_cpp_python-0.2.16/.git/objects/25/26bcbf5a89773bf179fd631c782274635da9e1 +0 -0
- llama_cpp_python-0.2.16/.git/objects/2a/6aed81cf0cc6d59972fe184a57666f281dbe8f +0 -0
- llama_cpp_python-0.2.16/.git/objects/2e/18b47a0261b4e81255fc71811a7c2405e4e19f +0 -0
- llama_cpp_python-0.2.15/.git/objects/09/57742df65a6a0b326a9db8f57988ba0a57bf67 → llama_cpp_python-0.2.16/.git/objects/36/90f40c28d3d9821712c70f68a25f5671bfcaa8 +0 -0
- llama_cpp_python-0.2.16/.git/objects/45/a1513dde96b5d7f0e3b3a49fc3d7bcda8f7c6f +0 -0
- llama_cpp_python-0.2.16/.git/objects/4d/c32b015468696f721ddb37a53d09cf5f9c7612 +0 -0
- llama_cpp_python-0.2.16/.git/objects/54/3365d8d631f36da2f57381801edabbc3ca4769 +0 -0
- llama_cpp_python-0.2.16/.git/objects/5b/51e98ce432974ff031367f8937babe755e3d73 +0 -0
- llama_cpp_python-0.2.16/.git/objects/61/027ef99725c50b0891fdbf0bf263a33abe648f +0 -0
- llama_cpp_python-0.2.16/.git/objects/6c/3a6e594fab3a61940f00840cb717f53ea1e8b7 +0 -0
- llama_cpp_python-0.2.16/.git/objects/7b/01670640a150525c7671a7a3c1ae652a2d7b3d +0 -0
- llama_cpp_python-0.2.16/.git/objects/81/d58f627258591fc76e28e8378d0f9c3d49c9e5 +0 -0
- llama_cpp_python-0.2.15/.git/objects/5a/5e05ec3a528958a1f9c0c0865b768e68d65c55 → llama_cpp_python-0.2.16/.git/objects/8e/841233c07f9d6be8b4bf1e25231789a84781c0 +0 -0
- llama_cpp_python-0.2.16/.git/objects/a0/b7d5b55cf67870c3efc3e5c42b96196d1f707c +0 -0
- llama_cpp_python-0.2.16/.git/objects/a2/4e55042fd63aeb7e9873fff7474cc9141f4474 +0 -0
- llama_cpp_python-0.2.16/.git/objects/b7/e60b66f47950e385980a1329af9dfb14da6906 +4 -0
- llama_cpp_python-0.2.16/.git/objects/e0/b98f7ec76339ad83913015531541a7de9d8e1e +0 -0
- llama_cpp_python-0.2.16/.git/objects/e2/1e0bd82d6cacf620ea2f2dd7e8e7e2ee34b42a +0 -0
- llama_cpp_python-0.2.16/.git/objects/e6/f024107b7e75246ba7a7b083b2aafaada82697 +0 -0
- llama_cpp_python-0.2.15/.git/objects/aa/e61ce85bebc9f295eb5eb2eaef77a045db5d6b → llama_cpp_python-0.2.16/.git/objects/f1/76c95ddb207e422703d8a73dd0d12a984a838f +0 -0
- llama_cpp_python-0.2.16/.git/objects/f7/2b9b39ef1e5d433ac15638f1090b96c582eb5b +0 -0
- llama_cpp_python-0.2.16/.git/refs/tags/v0.2.16 +1 -0
- llama_cpp_python-0.2.16/.git/shallow +1 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.github/workflows/build-and-release.yaml +3 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/CHANGELOG.md +13 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/PKG-INFO +1 -1
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docs/server.md +32 -2
- llama_cpp_python-0.2.16/examples/notebooks/Functions.ipynb +400 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/llama_cpp/__init__.py +1 -1
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/llama_cpp/llama.py +42 -24
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/llama_cpp/llama_chat_format.py +210 -83
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/llama_cpp/llama_grammar.py +15 -1
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/llama_cpp/llama_types.py +1 -1
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/llama_cpp/server/app.py +4 -2
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/tests/test_llama.py +16 -12
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/build-info.cpp +1 -1
- llama_cpp_python-0.2.16/vendor/llama.cpp/convert-hf-to-gguf.py +890 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/convert.py +2 -2
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/README.md +2 -0
- llama_cpp_python-0.2.16/vendor/llama.cpp/examples/server/index.html.hpp +2693 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/public/index.html +2 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/server.cpp +2 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-alloc.c +12 -9
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/mypy.ini +1 -0
- llama_cpp_python-0.2.15/.git/FETCH_HEAD +0 -1
- llama_cpp_python-0.2.15/.git/HEAD +0 -1
- llama_cpp_python-0.2.15/.git/index +0 -0
- llama_cpp_python-0.2.15/.git/logs/HEAD +0 -1
- llama_cpp_python-0.2.15/.git/modules/vendor/llama.cpp/HEAD +0 -1
- llama_cpp_python-0.2.15/.git/modules/vendor/llama.cpp/index +0 -0
- llama_cpp_python-0.2.15/.git/modules/vendor/llama.cpp/logs/HEAD +0 -2
- llama_cpp_python-0.2.15/.git/modules/vendor/llama.cpp/logs/refs/heads/master +0 -1
- llama_cpp_python-0.2.15/.git/modules/vendor/llama.cpp/logs/refs/remotes/origin/HEAD +0 -1
- llama_cpp_python-0.2.15/.git/modules/vendor/llama.cpp/objects/pack/pack-a289e01376af5b952d8e50b0b34b637d8328146d.idx +0 -0
- llama_cpp_python-0.2.15/.git/modules/vendor/llama.cpp/objects/pack/pack-a289e01376af5b952d8e50b0b34b637d8328146d.rev +0 -0
- llama_cpp_python-0.2.15/.git/modules/vendor/llama.cpp/packed-refs +0 -2
- llama_cpp_python-0.2.15/.git/modules/vendor/llama.cpp/refs/heads/master +0 -1
- llama_cpp_python-0.2.15/.git/modules/vendor/llama.cpp/shallow +0 -1
- llama_cpp_python-0.2.15/.git/objects/01/cb3a03818c644bccfaa7dc80a5366df46e204c +0 -0
- llama_cpp_python-0.2.15/.git/objects/03/0c591bf472645eca64879c097bea625598d8bf +0 -0
- llama_cpp_python-0.2.15/.git/objects/09/96e07d6e6f540436b8bc96e3be3d7eac233287 +0 -0
- llama_cpp_python-0.2.15/.git/objects/13/56d3755566a5e042d839c322ec0792e20c7c34 +0 -0
- llama_cpp_python-0.2.15/.git/objects/17/3f132b55544ddf8c982ed8fabfc038a2a5a919 +0 -0
- llama_cpp_python-0.2.15/.git/objects/1f/eef583e2155c032f9521164673978d19c0951c +0 -0
- llama_cpp_python-0.2.15/.git/objects/30/0a13988ebdfeb214aee65f8d0da0e99335c7e2 +0 -0
- llama_cpp_python-0.2.15/.git/objects/4d/27bb00b5c86698291f231596f8bd2cb3fc6103 +0 -0
- llama_cpp_python-0.2.15/.git/objects/51/2de6fd31f7277099bd22188be106078e7fede4 +0 -0
- llama_cpp_python-0.2.15/.git/objects/54/48743818ecc40b31daf66fb4b03f69c6e75f2f +0 -0
- llama_cpp_python-0.2.15/.git/objects/58/50356ad34f2751ba5bb21493283775a92b570a +0 -0
- llama_cpp_python-0.2.15/.git/objects/6e/64afb7dd93c931f3fdeb7bd22b2cf6dab95c71 +0 -0
- llama_cpp_python-0.2.15/.git/objects/95/a820e82ed6b6ac5777d4f09e5a0492d39e66a5 +0 -0
- llama_cpp_python-0.2.15/.git/objects/9e/d6a7fddac55454fa61a63568bb5e011c1ca5bc +0 -0
- llama_cpp_python-0.2.15/.git/objects/a8/4e11b0156de2bc1038474de7d31a8f028fa44f +0 -0
- llama_cpp_python-0.2.15/.git/objects/b1/d7d015e6c9039d2108799e6dc62d48ca53e0f8 +0 -0
- llama_cpp_python-0.2.15/.git/objects/ce/d86f6fa2de2add170191515772e99fbd1c3388 +0 -0
- llama_cpp_python-0.2.15/.git/objects/de/3a03fd0e4b56d64159c5d5cdfc569abf1307f4 +0 -0
- llama_cpp_python-0.2.15/.git/objects/e4/e189120df2144441e406bd0ac757ad52dc4f19 +0 -0
- llama_cpp_python-0.2.15/.git/refs/tags/v0.2.15 +0 -1
- llama_cpp_python-0.2.15/.git/shallow +0 -1
- llama_cpp_python-0.2.15/examples/notebooks/Functions.ipynb +0 -225
- llama_cpp_python-0.2.15/vendor/llama.cpp/convert-bloom-hf-to-gguf.py +0 -247
- llama_cpp_python-0.2.15/vendor/llama.cpp/convert-falcon-hf-to-gguf.py +0 -253
- llama_cpp_python-0.2.15/vendor/llama.cpp/convert-gptneox-hf-to-gguf.py +0 -221
- llama_cpp_python-0.2.15/vendor/llama.cpp/convert-mpt-hf-to-gguf.py +0 -227
- llama_cpp_python-0.2.15/vendor/llama.cpp/convert-refact-hf-to-gguf.py +0 -272
- llama_cpp_python-0.2.15/vendor/llama.cpp/convert-starcoder-hf-to-gguf.py +0 -210
- llama_cpp_python-0.2.15/vendor/llama.cpp/examples/server/index.html.hpp +0 -2679
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.dockerignore +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/description +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/applypatch-msg.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/commit-msg.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/fsmonitor-watchman.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/post-update.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/pre-applypatch.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/pre-commit.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/pre-merge-commit.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/pre-push.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/pre-rebase.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/pre-receive.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/prepare-commit-msg.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/push-to-checkout.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/sendemail-validate.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/hooks/update.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/info/exclude +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/description +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/applypatch-msg.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/commit-msg.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/fsmonitor-watchman.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/post-update.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/pre-applypatch.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/pre-commit.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/pre-merge-commit.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/pre-push.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/pre-rebase.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/pre-receive.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/prepare-commit-msg.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/push-to-checkout.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/sendemail-validate.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/hooks/update.sample +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/info/exclude +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/modules/vendor/llama.cpp/refs/remotes/origin/HEAD +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/04/5856ea2ffe697ec33db1c1c989bd45cde5bb3d +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/04/7bc14424303575f73af90611fec827334f54e8 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/11/2a0f7872fa9244bf38729a2722dc5c08dec20c +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/11/b6d5c26e3f7157658952b8ec353e985d522fac +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/12/90cad4931d6fc9b80e00baadecda4d45b1f005 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/13/c5b6b0df5f67e80cbe584909b83777901265a1 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/19/9bd4ffbf88c68c98b52c05f388dfa92716f6b7 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/1b/61eec690c380fe7d97e6bd30310f49d4ed0fa6 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/23/e37d4d40e5ec0bfd85b5e928834d58e2cf0da6 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/24/04228325d88c59b819acaedb20b15635f75df9 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/27/2e4767b47397d1529e6a2d01298144d9d746ba +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/29/03e0146d304bcacbfabfe71f171a2edc03043e +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/33/197007d97015ba62fb8fe835bf6eabe5bebd86 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/3a/1d7180d508818fe957923e00dcd8950938632d +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/3a/6457dcdfd47e764654bacae0ba8347976b645a +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/41/cc68ea2402cf682807649d841e7c0f4175db01 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/44/b6d4a35d3caf0c65aef0a1c77ff0ab4077d405 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/47/4503fdfc554d8caabee4f321a80427f8c7d696 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/4b/3189dd1a54be3bc416786ddf184dd047dc4b20 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/4b/38dbacb6208ed2496e517018b0670beb21be65 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/51/f357200f8b998031f4be924e11ed2ae4bf3fea +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/55/d08db5f514fb6847938e3d6489b99f737ba6e3 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/5d/f12aaf53a0e85f55e1aa0e5167bc831ab32783 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/60/bc7aef42aac0409cfdca666ad2ff6f516d7b5b +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/67/50769eef1992c7eaa624b9e602109a0ea77118 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/68/7316b327ca038d26a338b3070a7d4698322515 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/6c/10225819e88df6faf38ed409b00e6ae9a4d139 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/72/f6a1211b53960672f7af628800bc86a7c5c547 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/74/7c6130e3cb1479d20e2013b1dd3db3379c2266 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/76/e26fbd106895fba52861f8ac1e11cc6ee2a307 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/7d/6c970483161eaf43cfa9d50010c071d4953053 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/7e/069b1903cc69a74e562a32ef8b0c1bd22d41d2 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/7e/df0975dc12ccc95ad14de085f07efe6d65c620 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/7e/e8f748eab47180cea09c0ad8e75c3b991b4af4 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/82/e5c4487e57d6d59c901a73bdd2a9bc172fee7c +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/8b/d03f88a1895cbf3ef249e13df79ee0efda779d +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/8d/063708d0b17c59a8637d2d35ec39e7e27b8171 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/91/abb11fdf507883caeeb2d2958e1c65fb6cbdc1 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/94/1a4eac8ffb4e7978bb8d6ef5108efdb06975bf +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/99/32d6130f5552a9b85c8b15b4ac6bc26b1068ce +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/9c/eb1f3c9e1498b2fddc890b8cbf6e883dccc488 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/9d/0ec2f705618e591cfa8d6512cb9a96b3da75f1 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/a2/94ebf8a4ed0b4dd705aaeaccd0df201e361c8b +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/a4/d21004f628b4160ab02a0299960a55f7c516cb +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/a9/e51cdc1672134ec9af66c9eccf09f6da4ceccd +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/ae/e2d8a965593394373d618a49f4f392600d0072 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/b9/1632f5bc787c1404600c894a6a4126359747d8 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/bb/cbbe7d61558adde3cbfd0c7a63a67c27ed6d30 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/c8/5e73d2b657bb05ed99309615d67bac93d9f86e +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/ca/ebbb67fdb02a0a8897d4e4826ea046a9931f6f +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/cc/6a3a7252ea6e698614f0629d4bc040ab6ca717 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/d3/329eec3bac6ce7e54c76b77ac9bf99fab0fe3f +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/d4/888b448a6895f87411f7c52dc23f1ad5f0d8f6 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/e3/cff3251c7fb6410937ee586b94f7b84331da2f +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/e4/1f375774e6945e445bfb179502b128fe22dda7 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/e9/30609ff5c479a1d5e12a8f3993582d421a6326 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/e9/48f8deb150039c6853e14537a8dd0cc9002b72 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/eb/9a2cfa9167df02f136502af79738c71363abfd +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/f1/b8e9d154231932c4b7b9b59611626764e68632 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/fc/25ff5160028dee3570249abc40cd57780bcca9 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/fc/ef8cd800ee8a265b146748d178cb56b5632bf3 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/fd/64c09b37947c97e58903ce570785c657d56722 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/fe/b0ed68d94eac48b844fd587ddfb808649716a1 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.git/objects/ff/3e950cd1110fe552912cea4c268c4023d2b737 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.github/dependabot.yml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.github/workflows/build-docker.yaml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.github/workflows/publish-to-test.yaml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.github/workflows/publish.yaml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.github/workflows/test-pypi.yaml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.github/workflows/test.yaml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.gitignore +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.gitmodules +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/.readthedocs.yaml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/LICENSE.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/Makefile +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docker/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docker/cuda_simple/Dockerfile +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docker/open_llama/Dockerfile +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docker/open_llama/build.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docker/open_llama/hug_model.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docker/open_llama/start.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docker/open_llama/start_server.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docker/openblas_simple/Dockerfile +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docker/simple/Dockerfile +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docker/simple/run.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docs/api-reference.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docs/changelog.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docs/index.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docs/install/macos.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/docs/requirements.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/high_level_api/fastapi_server.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/high_level_api/high_level_api_embedding.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/high_level_api/high_level_api_inference.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/high_level_api/high_level_api_streaming.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/high_level_api/langchain_custom_llm.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/low_level_api/Chat.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/low_level_api/Miku.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/low_level_api/ReasonAct.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/low_level_api/common.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/low_level_api/low_level_api_chat_cpp.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/low_level_api/low_level_api_llama_cpp.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/low_level_api/quantize.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/low_level_api/util.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/notebooks/Batching.ipynb +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/notebooks/Clients.ipynb +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/notebooks/Guidance.ipynb +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/notebooks/Multimodal.ipynb +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/examples/notebooks/PerformanceTuning.ipynb +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/llama_cpp/_utils.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/llama_cpp/llama_cpp.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/llama_cpp/llava_cpp.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/llama_cpp/py.typed +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/llama_cpp/server/__init__.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/llama_cpp/server/__main__.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/mkdocs.yml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/pyproject.toml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.clang-tidy +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.devops/cloud-v-pipeline +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.devops/full-cuda.Dockerfile +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.devops/full-rocm.Dockerfile +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.devops/full.Dockerfile +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.devops/main-cuda.Dockerfile +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.devops/main-rocm.Dockerfile +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.devops/main.Dockerfile +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.devops/tools.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.dockerignore +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.ecrc +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.editorconfig +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.flake8 +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.git +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.github/ISSUE_TEMPLATE/bug.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.github/ISSUE_TEMPLATE/enhancement.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.github/workflows/build.yml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.github/workflows/code-coverage.yml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.github/workflows/docker.yml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.github/workflows/editorconfig.yml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.github/workflows/gguf-publish.yml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.github/workflows/tidy-post.yml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.github/workflows/tidy-review.yml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.github/workflows/zig-build.yml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.gitignore +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/.pre-commit-config.yaml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/LICENSE +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/Makefile +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/Package.swift +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/SHA256SUMS +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/build.zig +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ci/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ci/run.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/cmake/FindSIMD.cmake +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/codecov.yml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/base64.hpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/build-info.cpp.in +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/common.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/common.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/console.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/console.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/grammar-parser.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/grammar-parser.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/log.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/sampling.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/sampling.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/stb_image.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/train.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/common/train.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/convert-baichuan-hf-to-gguf.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/convert-llama-ggml-to-gguf.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/convert-lora-to-ggml.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/convert-persimmon-to-gguf.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/docs/BLIS.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/docs/token_generation_performance_tips.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/Miku.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/alpaca.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/baby-llama/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/baby-llama/baby-llama.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/batched/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/batched/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/batched/batched.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/batched-bench/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/batched-bench/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/batched-bench/batched-bench.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/batched.swift/.gitignore +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/batched.swift/Makefile +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/batched.swift/Package.swift +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/batched.swift/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/batched.swift/Sources/main.swift +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/beam-search/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/beam-search/beam-search.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/benchmark/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/benchmark/benchmark-matmult.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/chat-13B.bat +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/chat-13B.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/chat-persistent.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/chat-vicuna.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/chat.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/convert-llama2c-to-ggml/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/convert-llama2c-to-ggml/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/embedding/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/embedding/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/embedding/embedding.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/export-lora/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/export-lora/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/export-lora/export-lora.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/finetune/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/finetune/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/finetune/convert-finetune-checkpoint-to-gguf.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/finetune/finetune.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/finetune/finetune.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/gguf/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/gguf/gguf.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/gpt4all.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/infill/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/infill/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/infill/infill.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/jeopardy/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/jeopardy/graph.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/jeopardy/jeopardy.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/jeopardy/qasheet.csv +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/jeopardy/questions.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/json-schema-to-grammar.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llama-bench/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llama-bench/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llama-bench/llama-bench.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llama.vim +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llama2-13b.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llama2.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llava/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llava/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llava/clip.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llava/clip.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llava/convert-image-encoder-to-gguf.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llava/llava-cli.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llava/llava-surgery.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llava/llava.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llava/llava.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/llm.vim +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/main/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/main/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/main/main.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/main-cmake-pkg/.gitignore +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/main-cmake-pkg/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/main-cmake-pkg/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/make-ggml.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/metal/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/metal/metal.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/parallel/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/parallel/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/parallel/parallel.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/perplexity/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/perplexity/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/perplexity/perplexity.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/quantize/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/quantize/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/quantize/quantize.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/quantize-stats/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/quantize-stats/quantize-stats.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/reason-act.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/save-load-state/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/save-load-state/save-load-state.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/api_like_OAI.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/chat-llama2.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/chat.mjs +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/chat.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/completion.js.hpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/deps.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/httplib.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/index.js.hpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/json-schema-to-grammar.mjs.hpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/json.hpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/public/completion.js +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/public/index.js +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server/public/json-schema-to-grammar.mjs +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/server-llama2-13B.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/simple/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/simple/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/simple/simple.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/speculative/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/speculative/speculative.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/train-text-from-scratch/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/train-text-from-scratch/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/train-text-from-scratch/convert-train-checkpoint-to-gguf.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/examples/train-text-from-scratch/train-text-from-scratch.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/flake.lock +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/flake.nix +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-alloc.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-backend.c +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-backend.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-cuda.cu +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-cuda.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-impl.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-metal.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-metal.m +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-metal.metal +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-mpi.c +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-mpi.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-opencl.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-opencl.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-quants.c +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml-quants.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml.c +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/ggml.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/gguf-py/LICENSE +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/gguf-py/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/gguf-py/gguf/__init__.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/gguf-py/gguf/gguf.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/gguf-py/gguf/py.typed +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/gguf-py/pyproject.toml +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/gguf-py/tests/test_gguf.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/grammars/README.md +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/grammars/arithmetic.gbnf +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/grammars/c.gbnf +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/grammars/chess.gbnf +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/grammars/japanese.gbnf +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/grammars/json.gbnf +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/grammars/json_arr.gbnf +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/grammars/list.gbnf +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/llama.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/llama.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/media/llama-leader.jpeg +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/media/llama0-banner.png +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/media/llama0-logo.png +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/media/llama1-banner.png +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/media/llama1-logo.png +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/pocs/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/pocs/vdot/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/pocs/vdot/q8dot.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/pocs/vdot/vdot.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/prompts/LLM-questions.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/prompts/alpaca.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/prompts/assistant.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/prompts/chat-with-baichuan.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/prompts/chat-with-bob.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/prompts/chat-with-vicuna-v0.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/prompts/chat-with-vicuna-v1.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/prompts/chat.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/prompts/dan-modified.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/prompts/dan.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/prompts/mnemonics.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/prompts/parallel-questions.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/prompts/reason-act.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/requirements.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/run_with_preset.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/scripts/LlamaConfig.cmake.in +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/scripts/build-info.cmake +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/scripts/build-info.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/scripts/convert-gg.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/scripts/get-wikitext-2.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/scripts/qnt-all.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/scripts/run-all-perf.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/scripts/run-all-ppl.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/scripts/server-llm.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/scripts/sync-ggml.sh +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/scripts/verify-checksum-models.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/spm-headers/ggml.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/spm-headers/llama.h +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/CMakeLists.txt +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-c.c +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-double-float.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-grad0.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-grammar-parser.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-llama-grammar.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-opt.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-quantize-fns.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-quantize-perf.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-rope.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-sampling.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-tokenizer-0-falcon.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-tokenizer-0-falcon.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-tokenizer-0-llama.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-tokenizer-0-llama.py +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-tokenizer-1-bpe.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/tests/test-tokenizer-1-llama.cpp +0 -0
- {llama_cpp_python-0.2.15 → llama_cpp_python-0.2.16}/vendor/llama.cpp/unicode.h +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b7e60b66f47950e385980a1329af9dfb14da6906 'b7e60b66f47950e385980a1329af9dfb14da6906' of https://github.com/abetlen/llama-cpp-python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b7e60b66f47950e385980a1329af9dfb14da6906
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[gc]
|
|
10
10
|
auto = 0
|
|
11
11
|
[http "https://github.com/"]
|
|
12
|
-
extraheader = AUTHORIZATION: basic
|
|
12
|
+
extraheader = AUTHORIZATION: basic eC1hY2Nlc3MtdG9rZW46Z2hzXzJBc3h5aUVKQkZ1Q3M5bjVaWU1ZTk9za3hoSzh0VDFMeVdwRw==
|
|
13
13
|
[submodule "vendor/llama.cpp"]
|
|
14
14
|
active = true
|
|
15
15
|
url = https://github.com/ggerganov/llama.cpp.git
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0000000000000000000000000000000000000000 b7e60b66f47950e385980a1329af9dfb14da6906 runner <runner@fv-az711-229.kxtiaivj4gxuxgxjt4etq45iac.phxx.internal.cloudapp.net> 1699615337 +0000 checkout: moving from master to refs/tags/v0.2.16
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a75fa576abba9d37f463580c379e4bbf1e1ad03c
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
[gc]
|
|
14
14
|
auto = 0
|
|
15
15
|
[http "https://github.com/"]
|
|
16
|
-
extraheader = AUTHORIZATION: basic
|
|
16
|
+
extraheader = AUTHORIZATION: basic eC1hY2Nlc3MtdG9rZW46Z2hzXzJBc3h5aUVKQkZ1Q3M5bjVaWU1ZTk9za3hoSzh0VDFMeVdwRw==
|
|
17
17
|
[url "https://github.com/"]
|
|
18
18
|
insteadOf = git@github.com:
|
|
19
19
|
insteadOf = org-6826477@github.com:
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
0000000000000000000000000000000000000000 a75fa576abba9d37f463580c379e4bbf1e1ad03c runner <runner@fv-az711-229.kxtiaivj4gxuxgxjt4etq45iac.phxx.internal.cloudapp.net> 1699615338 +0000 clone: from https://github.com/ggerganov/llama.cpp.git
|
|
2
|
+
a75fa576abba9d37f463580c379e4bbf1e1ad03c a75fa576abba9d37f463580c379e4bbf1e1ad03c runner <runner@fv-az711-229.kxtiaivj4gxuxgxjt4etq45iac.phxx.internal.cloudapp.net> 1699615338 +0000 checkout: moving from master to a75fa576abba9d37f463580c379e4bbf1e1ad03c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0000000000000000000000000000000000000000 a75fa576abba9d37f463580c379e4bbf1e1ad03c runner <runner@fv-az711-229.kxtiaivj4gxuxgxjt4etq45iac.phxx.internal.cloudapp.net> 1699615338 +0000 clone: from https://github.com/ggerganov/llama.cpp.git
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0000000000000000000000000000000000000000 a75fa576abba9d37f463580c379e4bbf1e1ad03c runner <runner@fv-az711-229.kxtiaivj4gxuxgxjt4etq45iac.phxx.internal.cloudapp.net> 1699615338 +0000 clone: from https://github.com/ggerganov/llama.cpp.git
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a75fa576abba9d37f463580c379e4bbf1e1ad03c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a75fa576abba9d37f463580c379e4bbf1e1ad03c
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b7e60b66f47950e385980a1329af9dfb14da6906
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b7e60b66f47950e385980a1329af9dfb14da6906
|
|
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.16]
|
|
11
|
+
|
|
12
|
+
- Update llama.cpp to ggerganov/llama.cp@a75fa576abba9d37f463580c379e4bbf1e1ad03c
|
|
13
|
+
- Add `set_seed` to `Llama` class by @abetlen in fd41ed3a908761d286102a019a34c2938a15118d
|
|
14
|
+
- Fix server doc arguments by @kjunggithub in #892
|
|
15
|
+
- Fix response_format handler in llava chat handler by @abetlen in b62c44983921197ed10a7d29dc4ba920e9979380
|
|
16
|
+
- Fix default max_tokens, chat completion is now unlimited (to context length) and completion is 16 tokens to match OpenAI defaults by @abetlen in e7962d2c733cbbeec5a37392c81f64185a9a39e8
|
|
17
|
+
- Fix json_schema_to_gbnf helper so that it takes a json schema string as input instead by @abetlen in faeae181b1e868643c0dc28fcf039f077baf0829
|
|
18
|
+
- Add support for $ref and $def in json_schema_to_gbnf to handle more complex function schemas by @abetlen in 770df344369c0630df1be14be9f9e301e7c56d24
|
|
19
|
+
- Update functionary chat handler for new OpenAI api by abetlen in 1b376c62b775b401653facf25a519d116aafe99a
|
|
20
|
+
- Fix add default stop sequence to chatml chat format by @abetlen in b84d76a844149216d511cfd8cdb9827148a1853c
|
|
21
|
+
- Fix sampling bug when logits_all=False by @abetlen in 6f0b0b1b840af846938ed74d0e8170a91c40e617
|
|
22
|
+
|
|
10
23
|
## [0.2.15]
|
|
11
24
|
|
|
12
25
|
- Update llama.cpp to ggerganov/llama.cpp@0a7c980b6f94a049cb804573df2d8092a34df8e4
|
|
@@ -34,6 +34,35 @@ NOTE: All server options are also available as environment variables. For exampl
|
|
|
34
34
|
|
|
35
35
|
## Guides
|
|
36
36
|
|
|
37
|
+
### Code Completion
|
|
38
|
+
|
|
39
|
+
`llama-cpp-python` supports code completion via GitHub Copilot.
|
|
40
|
+
|
|
41
|
+
*NOTE*: Without GPU acceleration this is unlikely to be fast enough to be usable.
|
|
42
|
+
|
|
43
|
+
You'll first need to download one of the available code completion models in GGUF format:
|
|
44
|
+
|
|
45
|
+
- [replit-code-v1_5-GGUF](https://huggingface.co/abetlen/replit-code-v1_5-3b-GGUF)
|
|
46
|
+
|
|
47
|
+
Then you'll need to run the OpenAI compatible web server with a increased context size substantially for GitHub Copilot requests:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
python3 -m llama_cpp.server --model <model_path> --n_ctx 16192
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Then just update your settings in `.vscode/settings.json` to point to your code completion server:
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
{
|
|
57
|
+
// ...
|
|
58
|
+
"github.copilot.advanced": {
|
|
59
|
+
"debug.testOverrideProxyUrl": "http://<host>:<port>",
|
|
60
|
+
"debug.overrideProxyUrl": "http://<host>:<port>"
|
|
61
|
+
}
|
|
62
|
+
// ...
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
37
66
|
### Function Calling
|
|
38
67
|
|
|
39
68
|
`llama-cpp-python` supports structured function calling based on a JSON schema.
|
|
@@ -45,7 +74,7 @@ You'll first need to download one of the available function calling models in GG
|
|
|
45
74
|
Then when you run the server you'll need to also specify the `functionary-7b-v1` chat_format
|
|
46
75
|
|
|
47
76
|
```bash
|
|
48
|
-
python3 -m llama_cpp.server --model <model_path> --
|
|
77
|
+
python3 -m llama_cpp.server --model <model_path> --chat_format functionary
|
|
49
78
|
```
|
|
50
79
|
|
|
51
80
|
### Multimodal Models
|
|
@@ -57,11 +86,12 @@ You'll first need to download one of the available multi-modal models in GGUF fo
|
|
|
57
86
|
|
|
58
87
|
- [llava-v1.5-7b](https://huggingface.co/mys/ggml_llava-v1.5-7b)
|
|
59
88
|
- [llava-v1.5-13b](https://huggingface.co/mys/ggml_llava-v1.5-13b)
|
|
89
|
+
- [bakllava-1-7b](https://huggingface.co/mys/ggml_bakllava-1)
|
|
60
90
|
|
|
61
91
|
Then when you run the server you'll need to also specify the path to the clip model used for image embedding and the `llava-1-5` chat_format
|
|
62
92
|
|
|
63
93
|
```bash
|
|
64
|
-
python3 -m llama_cpp.server --model <model_path> --
|
|
94
|
+
python3 -m llama_cpp.server --model <model_path> --clip_model_path <clip_model_path> --chat_format llava-1-5
|
|
65
95
|
```
|
|
66
96
|
|
|
67
97
|
Then you can just use the OpenAI API as normal
|
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cells": [
|
|
3
|
+
{
|
|
4
|
+
"cell_type": "code",
|
|
5
|
+
"execution_count": 29,
|
|
6
|
+
"metadata": {},
|
|
7
|
+
"outputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "stdout",
|
|
10
|
+
"output_type": "stream",
|
|
11
|
+
"text": [
|
|
12
|
+
"ChatCompletion(id='chatcmpl-b6dcbb47-1120-4761-8cd9-83542c97647b', choices=[Choice(finish_reason='stop', index=0, message=ChatCompletionMessage(content=\"The current temperature in San Francisco is 72 degrees Fahrenheit. It's a sunny day with clear skies, making it perfect for outdoor activities.\\n \", role='assistant', function_call=None, tool_calls=None))], created=1699602158, model='gpt-3.5-turbo-1106', object='chat.completion', system_fingerprint=None, usage=CompletionUsage(completion_tokens=38, prompt_tokens=135, total_tokens=173))\n"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"source": [
|
|
17
|
+
"import openai\n",
|
|
18
|
+
"import json\n",
|
|
19
|
+
"\n",
|
|
20
|
+
"\n",
|
|
21
|
+
"client = openai.OpenAI(\n",
|
|
22
|
+
" api_key = \"sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\", # can be anything\n",
|
|
23
|
+
" base_url = \"http://100.64.159.73:8000/v1\"\n",
|
|
24
|
+
")\n",
|
|
25
|
+
"\n",
|
|
26
|
+
"# Example dummy function hard coded to return the same weather\n",
|
|
27
|
+
"# In production, this could be your backend API or an external API\n",
|
|
28
|
+
"def get_current_weather(location, unit=\"fahrenheit\"):\n",
|
|
29
|
+
" \"\"\"Get the current weather in a given location\"\"\"\n",
|
|
30
|
+
" if \"tokyo\" in location.lower():\n",
|
|
31
|
+
" return json.dumps({\"location\": \"Tokyo\", \"temperature\": \"10\", \"unit\": \"celsius\"})\n",
|
|
32
|
+
" elif \"san francisco\" in location.lower():\n",
|
|
33
|
+
" return json.dumps({\"location\": \"San Francisco\", \"temperature\": \"72\", \"unit\": \"fahrenheit\"})\n",
|
|
34
|
+
" elif \"paris\" in location.lower():\n",
|
|
35
|
+
" return json.dumps({\"location\": \"Paris\", \"temperature\": \"22\", \"unit\": \"celsius\"})\n",
|
|
36
|
+
" else:\n",
|
|
37
|
+
" return json.dumps({\"location\": location, \"temperature\": \"unknown\"})\n",
|
|
38
|
+
"\n",
|
|
39
|
+
"def run_conversation():\n",
|
|
40
|
+
" # Step 1: send the conversation and available functions to the model\n",
|
|
41
|
+
" messages = [{\"role\": \"user\", \"content\": \"What's the weather like in San Francisco, Tokyo, and Paris?\"}]\n",
|
|
42
|
+
" tools = [\n",
|
|
43
|
+
" {\n",
|
|
44
|
+
" \"type\": \"function\",\n",
|
|
45
|
+
" \"function\": {\n",
|
|
46
|
+
" \"name\": \"get_current_weather\",\n",
|
|
47
|
+
" \"description\": \"Get the current weather in a given location\",\n",
|
|
48
|
+
" \"parameters\": {\n",
|
|
49
|
+
" \"type\": \"object\",\n",
|
|
50
|
+
" \"properties\": {\n",
|
|
51
|
+
" \"location\": {\n",
|
|
52
|
+
" \"type\": \"string\",\n",
|
|
53
|
+
" \"description\": \"The city and state, e.g. San Francisco, CA\",\n",
|
|
54
|
+
" },\n",
|
|
55
|
+
" \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]},\n",
|
|
56
|
+
" },\n",
|
|
57
|
+
" \"required\": [\"location\"],\n",
|
|
58
|
+
" },\n",
|
|
59
|
+
" },\n",
|
|
60
|
+
" }\n",
|
|
61
|
+
" ]\n",
|
|
62
|
+
" response = client.chat.completions.create(\n",
|
|
63
|
+
" model=\"gpt-3.5-turbo-1106\",\n",
|
|
64
|
+
" messages=messages,\n",
|
|
65
|
+
" tools=tools,\n",
|
|
66
|
+
" tool_choice=\"auto\", # auto is default, but we'll be explicit\n",
|
|
67
|
+
" )\n",
|
|
68
|
+
" response_message = response.choices[0].message\n",
|
|
69
|
+
" tool_calls = response_message.tool_calls\n",
|
|
70
|
+
" # Step 2: check if the model wanted to call a function\n",
|
|
71
|
+
" if tool_calls:\n",
|
|
72
|
+
" # Step 3: call the function\n",
|
|
73
|
+
" # Note: the JSON response may not always be valid; be sure to handle errors\n",
|
|
74
|
+
" available_functions = {\n",
|
|
75
|
+
" \"get_current_weather\": get_current_weather,\n",
|
|
76
|
+
" } # only one function in this example, but you can have multiple\n",
|
|
77
|
+
" messages.append(response_message) # extend conversation with assistant's reply\n",
|
|
78
|
+
" # Step 4: send the info for each function call and function response to the model\n",
|
|
79
|
+
" for tool_call in tool_calls:\n",
|
|
80
|
+
" function_name = tool_call.function.name\n",
|
|
81
|
+
" function_to_call = available_functions[function_name]\n",
|
|
82
|
+
" function_args = json.loads(tool_call.function.arguments)\n",
|
|
83
|
+
" function_response = function_to_call(\n",
|
|
84
|
+
" location=function_args.get(\"location\"),\n",
|
|
85
|
+
" unit=function_args.get(\"unit\"),\n",
|
|
86
|
+
" )\n",
|
|
87
|
+
" messages.append(\n",
|
|
88
|
+
" {\n",
|
|
89
|
+
" \"tool_call_id\": tool_call.id,\n",
|
|
90
|
+
" \"role\": \"tool\",\n",
|
|
91
|
+
" \"name\": function_name,\n",
|
|
92
|
+
" \"content\": function_response,\n",
|
|
93
|
+
" }\n",
|
|
94
|
+
" ) # extend conversation with function response\n",
|
|
95
|
+
" second_response = client.chat.completions.create(\n",
|
|
96
|
+
" model=\"gpt-3.5-turbo-1106\",\n",
|
|
97
|
+
" messages=messages,\n",
|
|
98
|
+
" ) # get a new response from the model where it can see the function response\n",
|
|
99
|
+
" return second_response\n",
|
|
100
|
+
"print(run_conversation())"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"cell_type": "code",
|
|
105
|
+
"execution_count": 30,
|
|
106
|
+
"metadata": {},
|
|
107
|
+
"outputs": [
|
|
108
|
+
{
|
|
109
|
+
"name": "stdout",
|
|
110
|
+
"output_type": "stream",
|
|
111
|
+
"text": [
|
|
112
|
+
"name='Jason' age=25\n"
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"source": [
|
|
117
|
+
"import instructor\n",
|
|
118
|
+
"from pydantic import BaseModel\n",
|
|
119
|
+
"\n",
|
|
120
|
+
"# Enables `response_model`\n",
|
|
121
|
+
"client = instructor.patch(client=client)\n",
|
|
122
|
+
"\n",
|
|
123
|
+
"class UserDetail(BaseModel):\n",
|
|
124
|
+
" name: str\n",
|
|
125
|
+
" age: int\n",
|
|
126
|
+
"\n",
|
|
127
|
+
"user = client.chat.completions.create(\n",
|
|
128
|
+
" model=\"gpt-3.5-turbo\",\n",
|
|
129
|
+
" response_model=UserDetail,\n",
|
|
130
|
+
" messages=[\n",
|
|
131
|
+
" {\"role\": \"user\", \"content\": \"Extract Jason is 25 years old\"},\n",
|
|
132
|
+
" ]\n",
|
|
133
|
+
")\n",
|
|
134
|
+
"\n",
|
|
135
|
+
"assert isinstance(user, UserDetail)\n",
|
|
136
|
+
"assert user.name == \"Jason\"\n",
|
|
137
|
+
"assert user.age == 25\n",
|
|
138
|
+
"\n",
|
|
139
|
+
"print(user)"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"cell_type": "code",
|
|
144
|
+
"execution_count": 31,
|
|
145
|
+
"metadata": {},
|
|
146
|
+
"outputs": [],
|
|
147
|
+
"source": [
|
|
148
|
+
"import enum\n",
|
|
149
|
+
"\n",
|
|
150
|
+
"class Labels(str, enum.Enum):\n",
|
|
151
|
+
" \"\"\"Enumeration for single-label text classification.\"\"\"\n",
|
|
152
|
+
" SPAM = \"spam\"\n",
|
|
153
|
+
" NOT_SPAM = \"not_spam\"\n",
|
|
154
|
+
"\n",
|
|
155
|
+
"class SinglePrediction(BaseModel):\n",
|
|
156
|
+
" \"\"\"\n",
|
|
157
|
+
" Class for a single class label prediction.\n",
|
|
158
|
+
" \"\"\"\n",
|
|
159
|
+
" class_label: Labels\n",
|
|
160
|
+
"\n",
|
|
161
|
+
"def classify(data: str) -> SinglePrediction:\n",
|
|
162
|
+
" \"\"\"Perform single-label classification on the input text.\"\"\"\n",
|
|
163
|
+
" return client.chat.completions.create(\n",
|
|
164
|
+
" model=\"gpt-3.5-turbo-0613\",\n",
|
|
165
|
+
" response_model=SinglePrediction,\n",
|
|
166
|
+
" messages=[\n",
|
|
167
|
+
" {\n",
|
|
168
|
+
" \"role\": \"user\",\n",
|
|
169
|
+
" \"content\": f\"Classify the following text: {data}\",\n",
|
|
170
|
+
" },\n",
|
|
171
|
+
" ],\n",
|
|
172
|
+
" ) # type: ignore\n",
|
|
173
|
+
"\n",
|
|
174
|
+
"prediction = classify(\"Hello there I'm a Nigerian prince and I want to give you money\")\n",
|
|
175
|
+
"assert prediction.class_label == Labels.SPAM"
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"cell_type": "code",
|
|
180
|
+
"execution_count": 32,
|
|
181
|
+
"metadata": {},
|
|
182
|
+
"outputs": [
|
|
183
|
+
{
|
|
184
|
+
"name": "stdout",
|
|
185
|
+
"output_type": "stream",
|
|
186
|
+
"text": [
|
|
187
|
+
"class_labels=[<MultiLabels.BILLING: 'billing'>, <MultiLabels.TECH_ISSUE: 'tech_issue'>]\n"
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"source": [
|
|
192
|
+
"from typing import List\n",
|
|
193
|
+
"\n",
|
|
194
|
+
"# Define Enum class for multiple labels\n",
|
|
195
|
+
"class MultiLabels(str, enum.Enum):\n",
|
|
196
|
+
" TECH_ISSUE = \"tech_issue\"\n",
|
|
197
|
+
" BILLING = \"billing\"\n",
|
|
198
|
+
" GENERAL_QUERY = \"general_query\"\n",
|
|
199
|
+
"\n",
|
|
200
|
+
"# Define the multi-class prediction model\n",
|
|
201
|
+
"class MultiClassPrediction(BaseModel):\n",
|
|
202
|
+
" \"\"\"\n",
|
|
203
|
+
" Class for a multi-class label prediction.\n",
|
|
204
|
+
" \"\"\"\n",
|
|
205
|
+
" class_labels: List[MultiLabels]\n",
|
|
206
|
+
"\n",
|
|
207
|
+
"def multi_classify(data: str) -> MultiClassPrediction:\n",
|
|
208
|
+
" \"\"\"Perform multi-label classification on the input text.\"\"\"\n",
|
|
209
|
+
" return client.chat.completions.create(\n",
|
|
210
|
+
" model=\"gpt-3.5-turbo-0613\",\n",
|
|
211
|
+
" response_model=MultiClassPrediction,\n",
|
|
212
|
+
" messages=[\n",
|
|
213
|
+
" {\n",
|
|
214
|
+
" \"role\": \"user\",\n",
|
|
215
|
+
" \"content\": f\"Classify the following support ticket: {data}\",\n",
|
|
216
|
+
" },\n",
|
|
217
|
+
" ],\n",
|
|
218
|
+
" ) # type: ignore\n",
|
|
219
|
+
"\n",
|
|
220
|
+
"# Test multi-label classification\n",
|
|
221
|
+
"ticket = \"My account is locked and I can't access my billing info.\"\n",
|
|
222
|
+
"prediction = multi_classify(ticket)\n",
|
|
223
|
+
"print(prediction)"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"cell_type": "code",
|
|
228
|
+
"execution_count": 33,
|
|
229
|
+
"metadata": {},
|
|
230
|
+
"outputs": [
|
|
231
|
+
{
|
|
232
|
+
"name": "stdout",
|
|
233
|
+
"output_type": "stream",
|
|
234
|
+
"text": [
|
|
235
|
+
"question='What is the meaning of life?' answer='The meaning of life, according to the Devil, is to live a life of sin and debauchery.'\n"
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"source": [
|
|
240
|
+
"from typing_extensions import Annotated\n",
|
|
241
|
+
"from pydantic import BaseModel, BeforeValidator\n",
|
|
242
|
+
"\n",
|
|
243
|
+
"from instructor import llm_validator\n",
|
|
244
|
+
"\n",
|
|
245
|
+
"\n",
|
|
246
|
+
"question = \"What is the meaning of life?\"\n",
|
|
247
|
+
"context = \"The according to the devil the meaning of live is to live a life of sin and debauchery.\"\n",
|
|
248
|
+
"\n",
|
|
249
|
+
"class QuestionAnswer(BaseModel):\n",
|
|
250
|
+
" question: str\n",
|
|
251
|
+
" answer: str\n",
|
|
252
|
+
"\n",
|
|
253
|
+
"qa: QuestionAnswer = client.chat.completions.create(\n",
|
|
254
|
+
" model=\"gpt-3.5-turbo\",\n",
|
|
255
|
+
" response_model=QuestionAnswer,\n",
|
|
256
|
+
" messages=[\n",
|
|
257
|
+
" {\n",
|
|
258
|
+
" \"role\": \"system\",\n",
|
|
259
|
+
" \"content\": \"You are a system that answers questions based on the context. answer exactly what the question asks using the context.\",\n",
|
|
260
|
+
" },\n",
|
|
261
|
+
" {\n",
|
|
262
|
+
" \"role\": \"user\",\n",
|
|
263
|
+
" \"content\": f\"using the context: {context}\\n\\nAnswer the following question: {question}\",\n",
|
|
264
|
+
" },\n",
|
|
265
|
+
" ],\n",
|
|
266
|
+
")\n",
|
|
267
|
+
"print(qa)\n",
|
|
268
|
+
"\n",
|
|
269
|
+
"class QuestionAnswerNoEvil(BaseModel):\n",
|
|
270
|
+
" question: str\n",
|
|
271
|
+
" answer: Annotated[\n",
|
|
272
|
+
" str,\n",
|
|
273
|
+
" BeforeValidator(\n",
|
|
274
|
+
" llm_validator(\"don't say objectionable things\", allow_override=True)\n",
|
|
275
|
+
" ),\n",
|
|
276
|
+
" ]\n",
|
|
277
|
+
"\n",
|
|
278
|
+
"try:\n",
|
|
279
|
+
" qa: QuestionAnswerNoEvil = client.chat.completions.create(\n",
|
|
280
|
+
" model=\"gpt-3.5-turbo\",\n",
|
|
281
|
+
" response_model=QuestionAnswerNoEvil,\n",
|
|
282
|
+
" messages=[\n",
|
|
283
|
+
" {\n",
|
|
284
|
+
" \"role\": \"system\",\n",
|
|
285
|
+
" \"content\": \"You are a system that answers questions based on the context. answer exactly what the question asks using the context.\",\n",
|
|
286
|
+
" },\n",
|
|
287
|
+
" {\n",
|
|
288
|
+
" \"role\": \"user\",\n",
|
|
289
|
+
" \"content\": f\"using the context: {context}\\n\\nAnswer the following question: {question}\",\n",
|
|
290
|
+
" },\n",
|
|
291
|
+
" ],\n",
|
|
292
|
+
" )\n",
|
|
293
|
+
"except Exception as e:\n",
|
|
294
|
+
" print(e)"
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"cell_type": "code",
|
|
299
|
+
"execution_count": 42,
|
|
300
|
+
"metadata": {},
|
|
301
|
+
"outputs": [
|
|
302
|
+
{
|
|
303
|
+
"name": "stdout",
|
|
304
|
+
"output_type": "stream",
|
|
305
|
+
"text": [
|
|
306
|
+
"question='What did the author do during college?' answer=[Fact(fact='The author, Jason Liu, studied Computational Mathematics and Physics in university.', substring_quote=['Computational Mathematics'])]\n"
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"source": [
|
|
311
|
+
"import re\n",
|
|
312
|
+
"from typing import List\n",
|
|
313
|
+
"\n",
|
|
314
|
+
"from pydantic import Field, BaseModel, model_validator, FieldValidationInfo\n",
|
|
315
|
+
"\n",
|
|
316
|
+
"class Fact(BaseModel):\n",
|
|
317
|
+
" fact: str = Field(...)\n",
|
|
318
|
+
" substring_quote: List[str] = Field(...)\n",
|
|
319
|
+
"\n",
|
|
320
|
+
" @model_validator(mode=\"after\")\n",
|
|
321
|
+
" def validate_sources(self, info: FieldValidationInfo) -> \"Fact\":\n",
|
|
322
|
+
" text_chunks = info.context.get(\"text_chunk\", None)\n",
|
|
323
|
+
" spans = list(self.get_spans(text_chunks))\n",
|
|
324
|
+
" self.substring_quote = [text_chunks[span[0] : span[1]] for span in spans]\n",
|
|
325
|
+
" return self\n",
|
|
326
|
+
"\n",
|
|
327
|
+
" def get_spans(self, context):\n",
|
|
328
|
+
" for quote in self.substring_quote:\n",
|
|
329
|
+
" yield from self._get_span(quote, context)\n",
|
|
330
|
+
"\n",
|
|
331
|
+
" def _get_span(self, quote, context):\n",
|
|
332
|
+
" for match in re.finditer(re.escape(quote), context):\n",
|
|
333
|
+
" yield match.span()\n",
|
|
334
|
+
"\n",
|
|
335
|
+
"class QuestionAnswer(BaseModel):\n",
|
|
336
|
+
" question: str = Field(...)\n",
|
|
337
|
+
" answer: List[Fact] = Field(...)\n",
|
|
338
|
+
"\n",
|
|
339
|
+
" @model_validator(mode=\"after\")\n",
|
|
340
|
+
" def validate_sources(self) -> \"QuestionAnswer\":\n",
|
|
341
|
+
" self.answer = [fact for fact in self.answer if len(fact.substring_quote) > 0]\n",
|
|
342
|
+
" return self\n",
|
|
343
|
+
"\n",
|
|
344
|
+
"\n",
|
|
345
|
+
"def ask_ai(question: str, context: str) -> QuestionAnswer:\n",
|
|
346
|
+
" return client.chat.completions.create(\n",
|
|
347
|
+
" model=\"gpt-3.5-turbo-0613\",\n",
|
|
348
|
+
" temperature=0.0,\n",
|
|
349
|
+
" response_model=QuestionAnswer,\n",
|
|
350
|
+
" messages=[\n",
|
|
351
|
+
" {\"role\": \"system\", \"content\": \"You are a world class algorithm to answer questions with correct and exact citations.\"},\n",
|
|
352
|
+
" {\"role\": \"user\", \"content\": f\"{context}\"},\n",
|
|
353
|
+
" {\"role\": \"user\", \"content\": f\"Question: {question}\"}\n",
|
|
354
|
+
" ],\n",
|
|
355
|
+
" validation_context={\"text_chunk\": context},\n",
|
|
356
|
+
" )\n",
|
|
357
|
+
"\n",
|
|
358
|
+
"question = \"What did the author do during college?\"\n",
|
|
359
|
+
"context = \"\"\"\n",
|
|
360
|
+
"My name is Jason Liu, and I grew up in Toronto Canada but I was born in China.\n",
|
|
361
|
+
"I went to an arts high school but in university I studied Computational Mathematics and physics.\n",
|
|
362
|
+
"As part of coop I worked at many companies including Stitchfix, Facebook.\n",
|
|
363
|
+
"I also started the Data Science club at the University of Waterloo and I was the president of the club for 2 years.\n",
|
|
364
|
+
"\"\"\"\n",
|
|
365
|
+
"\n",
|
|
366
|
+
"qa = ask_ai(question, context)\n",
|
|
367
|
+
"print(qa)"
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"cell_type": "code",
|
|
372
|
+
"execution_count": null,
|
|
373
|
+
"metadata": {},
|
|
374
|
+
"outputs": [],
|
|
375
|
+
"source": []
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"metadata": {
|
|
379
|
+
"kernelspec": {
|
|
380
|
+
"display_name": "python-3.8.10",
|
|
381
|
+
"language": "python",
|
|
382
|
+
"name": "python3"
|
|
383
|
+
},
|
|
384
|
+
"language_info": {
|
|
385
|
+
"codemirror_mode": {
|
|
386
|
+
"name": "ipython",
|
|
387
|
+
"version": 3
|
|
388
|
+
},
|
|
389
|
+
"file_extension": ".py",
|
|
390
|
+
"mimetype": "text/x-python",
|
|
391
|
+
"name": "python",
|
|
392
|
+
"nbconvert_exporter": "python",
|
|
393
|
+
"pygments_lexer": "ipython3",
|
|
394
|
+
"version": "3.11.5+"
|
|
395
|
+
},
|
|
396
|
+
"orig_nbformat": 4
|
|
397
|
+
},
|
|
398
|
+
"nbformat": 4,
|
|
399
|
+
"nbformat_minor": 2
|
|
400
|
+
}
|