Skip to main content

Python binding for llama.cpp using cffi

Project description

llama-cpp-cffi

Python binding for llama.cpp using cffi

Build

#
# setup venv
#
python -m venv venv
source venv/bin/activate
pip install poetry

poetry run cibuildwheel --output-dir wheelhouse --platform linux .
poetry run cibuildwheel --output-dir wheelhouse --platform pyodide .

#
# run demos
#
python -B examples/demo_cffi.py
python -B examples/demo_ctypes.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

llama_cpp_cffi-0.0.2-cp312-cp312-musllinux_1_2_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

llama_cpp_cffi-0.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

llama_cpp_cffi-0.0.2-cp311-cp311-musllinux_1_2_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

llama_cpp_cffi-0.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

llama_cpp_cffi-0.0.2-cp310-cp310-musllinux_1_2_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

llama_cpp_cffi-0.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page