KukumavMozolo / telegramGpt

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:Python 100.0%