Skip to main content

Run language models on consumer hardware.

Project description

A headless Oobabooga wrapper.


pip install oba
import oba

path = oba.download("https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF/blob/main/mistral-7b-instruct-v0.1.Q3_K_S.gguf")

llm = oba.llm(path)
messages = {"role": "user", "content": "Hi Mistral."}

for token in llm.chat(messages):
    print(token)

https://github.com/KillianLucas/oba/assets/63927363/2ed6949a-d63b-40d4-b085-e0463b569d01

Project details


Download files

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

Source Distribution

ooba-0.0.1.tar.gz (13.0 kB view hashes)

Uploaded Source

Built Distribution

ooba-0.0.1-py3-none-any.whl (13.3 kB view hashes)

Uploaded Python 3

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