KaQuMiQ / bielik

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chat

Example of chat using Bielik running locally with mistralrs.

Built using draive and based on chat example from draive examples.

Setup

To setup the project please use make venv command. Python 3.12+ is required, you can specify path tu it by using additional argument make venv PYTHON_ALIAS=path/to/python. Default setup requires running Bielik using ollama. Make sure to activate virtual environment by using . ./.venv/bin/activate.

Alternatively you can use mistralrs to run the model. To do so you can install it manually or use additional INSTALL_OPTIONS parameter when preparing the environment make venv INSTALL_OPTIONS=".[dev,mistralrs]". This setup requires to have rust compiler installed. You can install it by using curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh command.

Run

When the environment is ready you can use make run command to run the chat. Make sure to provide all environment variables before running.

Speedup

Instead of using dependency to mistralrs use one one of its flavors depending on your machine capabilities. Default version uses CPU to run models.

About

License:MIT License


Languages

Language:Python 90.5%Language:Makefile 7.1%Language:Dockerfile 2.4%