Leore42/tiny-transformer-trainer
1
Tiny Transformer Trainer ๐ง
Train small GPT-style transformers from your own text data โ directly in the browser.
How to Use
- Upload data:
.txtโ plain text files.csvโ Q&A pairs with named columns.jsonโ Q&A pairs as a list of objects
- Set column names (for CSV/JSON): specify which columns hold questions/prompts and answers/responses.
- Configure model: pick hidden size, layers, heads, vocab size, and max sequence length.
- Train: click ๐ Start Training and watch live logs.
- Download: grab the
.zipwith model weights + tokenizer.
Output Files
Local Usage
from transformers import GPT2LMHeadModel, PreTrainedTokenizerFast
model = GPT2LMHeadModel.from_pretrained("trained_model_output/model")
tokenizer = PreTrainedTokenizerFast.from_pretrained("trained_model_output/tokenizer")