KillianLucas / ooba

Run language models on consumer hardware.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open In Colab

A headless Oobabooga wrapper.


pip install ooba
import ooba

path = ooba.download("https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF")

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

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

ooba.product.demo.mp4

About

Run language models on consumer hardware.

License:GNU Affero General Public License v3.0


Languages

Language:Python 100.0%