An open API service indexing awesome lists of open source software.

https://github.com/odynvolk/jensen

A LLaMA 2 powered Telegram chatbot.
https://github.com/odynvolk/jensen

chatbot llama2 llamacpp llm telegram

Last synced: about 1 year ago
JSON representation

A LLaMA 2 powered Telegram chatbot.

Awesome Lists containing this project

README

          

# jensen

A LLM powered Telegram bot.

## Prerequisites:

### Telegram bot

First you need to create a Telegram bot to interact with. See instructions [here](https://core.telegram.org/bots).

### LLM model

You need a LLM in GGUF format. You can find quite a few through [TheBloke on HuggingFace](https://huggingface.co/TheBloke)
who has done an enormous service to the community by converting different models to GGUF and quantized them. Pick one that suits your
needs and hardware requirements.

### Python

You need Python 3 on your machine.

- Micromamba (optional)

For handling the packages needed for different enivronments. Easy to install with asdf.

```bash
$ asdf install
$ micromamba create -n jensen python=3.13
$ micromamba activate jensen
```

- LLMs, Telegram etc

For using LLM models, Telegram API etc

```bash
$ pip install -r requirements.txt
```

## Configuration

Create a `.env` file with the following properties.

```
# LLM
MODEL_PATH= (mandatory)
MAX_TOKENS=
N_CTX=
N_GPU_LAYERS
N_THREADS=
USE_MLOCK=

# Telegram
API_KEY= (mandatory)
POLL_INTERVAL=
```

## Usage

Start the application:

```bash
python ./jensen/app.py
```