minimaxir/aitextgen
A robust Python tool for text-based AI training and generation using GPT-2. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2439
- days_rel: n/a
- days_push: 1146
- n_releases_24m: 0
Adoption not part of the score
1838 stars · 214 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
aitextgen is a Python library for training and generating text with GPT-2 and GPT Neo models, built on PyTorch, Hugging Face Transformers, and PyTorch Lightning. It supports finetuning pretrained models or training from scratch, with efficient dataset encoding, merging, and multi-GPU training.
Use cases
- finetune gpt-2 on my own text dataset
- generate text with a custom-trained language model
- train a small gpt model from scratch
- merge multiple text datasets for language model training
- run gpt-2 text generation on a gpu or colab notebook
When to choose
- you want a simple, high-level API for GPT-2/GPT Neo finetuning and text generation
- you need compatibility with Hugging Face Transformers for downstream NLP tasks
- you want to train on CPU, single GPU, or multiple GPUs with PyTorch Lightning
When to avoid
- you need modern LLM architectures like Llama or Mistral, which it does not support
- you need large-scale distributed training or the latest training techniques
- you want actively developed features; the project has seen limited recent updates
Facets
library · maturity maintenance
llm-training nlp machine-learning large-language-models machine-learning python cross-platform gpt-2 text-generation pytorch huggingface-transformers finetuning pytorch-lightning natural-language-processing gpu
2 sources
- readme: https://github.com/minimaxir/aitextgen · fetched 2026-08-28 · dddf06fd95d4
- registry_pypi: https://pypi.org/pypi/aitextgen/json · fetched 2026-08-29 · 8fb173d5d297
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| minimaxir/aitextgen | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="minimaxir/aitextgen")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem