Metadata-Version: 2.1
Name: ooba
Version: 0.0.1
Summary: Run language models on consumer hardware.
License: AGPL
Author: Killian Lucas
Author-email: killian@openinterpreter.com
Requires-Python: >=3.11,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown

A headless [**Oobabooga**](https://github.com/oobabooga/text-generation-webui) wrapper.

<br>

```shell
pip install oba
```

```python
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)
```

```python
messages = {"role": "user", "content": "Hi Mistral."}

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

<br>

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

