Skip to content

Replace your friends with machines, easily train lora for llama on telegram chat logs

License

Notifications You must be signed in to change notification settings

KukumavMozolo/telegramGpt

Repository files navigation

telegramGpt

Replace your friends with machines, easily train llama on you telegram data

Based on https://github.com/tloen/alpaca-lora

release

Installation

Requirements:

python3.10
pipenv

Install deps:

pipenv install --ignore-pipfile

Features

Training

copy your telegram data message*.html's into data/your-dataset-name

start training with

python -d your-dataset-name -e 1 --create_dataset

Specify modelname with -m modelname for models other than decapoda-research/llama-7b-hf

resume from checkpoint via -re path/to/checkpoint

number of epochs -e float

--create_dataset to create the dataset at first run or --no-create_dataset to use the old dataset from previous run

Inference

start server with

python inference.py --cp logs/your-checkpoint-dir

Telegram Bot

start bot with

python tele_bot.py --cp logs/your-checkpoint-dir -bt your-bot-token

About

Replace your friends with machines, easily train lora for llama on telegram chat logs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages