Skip to content

[Enhancement] Officially supported/provided python bindings #1156

Closed as not planned
@dmahurin

Description

@dmahurin

Would the project accept a PR for providing directly supported python bindings.

I know the README mentions llama-cpp-python. And there are these and perhaps others...
pip install llama-cpp-python
pip install llamacpp
pip install pyllamacpp
pip install llamacpypy

Instead, perhaps it would be better to expose at least the low level interface as python directly in this repo.

Perhaps rwkv.cpp can be used as an example. It does the following:

  • allow building as shared library
  • create python bindings that just expose functions in the shared library as is
  • (optional) create a higher level model that that builds on the basic bindings
  • examples in python, rather than bash scripts

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions