this post was submitted on 31 May 2024
9 points (84.6% liked)

Python

1970 readers
1 users here now

A community for talking about the Python programming language.

founded 2 years ago
MODERATORS
 

Simple Python bindings for @ggerganov's llama.cpp library. This package provides:

Low-level access to C API via ctypes interface.
High-level Python API for text completion
    OpenAI-like API
    LangChain compatibility
    LlamaIndex compatibility
OpenAI compatible web server
    Local Copilot replacement
    Function Calling support
    Vision API support
    Multiple Models

Documentation is available at https://llama-cpp-python.readthedocs.io/en/latest.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 3 weeks ago

I always appreciate it when people build friendly Python wrappers around C code, but I suggest that if you're going to share an example in the documentation, the answer the LLM gives should at least be correct:

Q: Name the planets in the solar system? A: Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune and Pluto.